MahApps.Metro DynamicResource colours not being applied - mahapps.metro

I am using MahApps styles in an Excel document pane. They work fine on my Excel 2013 and on Excel 2010 on a standalone machine. However we have a virtual machine which seems to have a group policy applied that is causing some issues.
Looking at the styles in the master branch, I see references to NormalForegroundBrush but I can't find this in the Colours.xaml file. A search on the MahApps GitHub shows it was added over a year ago, but now appears to be missing from the master branch. I am wondering if this and maybe other missing styles are what is causing my problems.
A combobox whose dropdowns have a white background, appear with a black background. I tried setting the background using DynamicResource WhiteBrush but this had no effect. If I specifically set it to "White" then that works. I'm puzzled.
Regards
Alan

MahApps has heavily changed lately. Especially the errors with wrong color declarations are gone. Try either to use the new version from NuGet or clone the newest build from github

Related

Devexpress report designer version conflicts

I'm trying to add a DevExpress Report Desginer Wizard to my WPF project but I keep getting an error about versions. I've posted a screenshot to simplify things
This project already contains references to DevExpress controls of a different version.
The current version is 15.2.4.
Incorrect reference: DevExpress.Data.v14.1 14.1.8
I've updated the project files per the DevExpress Upgrade notes but this hasn't changed anything.
You can try to execute "upgrade tool" from the visual studio menu
DevExpress -> Upgrade tool,
run this tool on the current solution/project, close the wpf window designer, rebuild solution/project, open your wpf window again in the designer, check that the toolbox contains WPF ReportDesigner v15.2 control and add it to the wpf window.
I resolved the error by removing all references to DevExpress components with a different version than the 15.2 that it was trying to use.
I had to clean and build my solution after doing this because they obstinately kept coming back and causing trouble so if you're here looking for a solution, be aware of that.

SSRS VS2015 SSDT Report Wizard Style Selection Screen Not Showing

I am stumped on this one. I am not sure if others are having the same issue.
In past versions, when I use the report wizard, one of the screens lets me choose the style (Slate, Forest...)
With my new setup the screen never appears and on the summary screen it says 'Style:Modern'
I tracked down the StyleTemplate.Xml, made a copy and changed 'Modern' to 'ModernTest'. Both in the Styles folder and the en folder. I have searched my c drive and these are the only two places this file exists.
EDIT: I had to change the label to 'ModernTest' not the name. Now 'ModernTest' is showing up in the summary. I still however do not get the chance to change styles.
I added a new style to see if the page only shows up if more than one is present but maybe since that one was from an older version it still only thinks there is one valid style so skips the selection page... I will try to replicate modern...
I am using VS2015 Version 14.0.25123.00 Update 2, SSDT Version 14.0.1601.5
Anyone else have the same issue?
EDIT: I copied an xml file from a previous version and now slate appears as the style. I guess the only problem is that the screen to select the style no longer shows up.

Editing the standard WPF Aero theme

I want to look into the default styles that are used for the default WPF application so that I can experiment/tweak them. (I believe this to be the standard AERO theme)
So I downloaded the default themes from Microsoft, and manually applied the AERO theme.
I added the "Aero.NormalColor.xaml" file into my project
I then added "PresentationUI.dll" and "PresentationFramework.Aero.dll"
I then modified the namespace from "xmlns:theme="clr-namespace:Microsoft.Windows.Themes;" to "xmlns:theme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" (It was throwing errors otherwise)
Finally I add it into the Apps resource dictionary
But it ends up looking slightly different, in particular, menus seem to look different. So I guess I'm running the wrong theme.
This is using VS 2010 and the default new .net4 WPF application project
Those default themes you downloaded could be god knows what. Probably not what is shipped with the actual .NET framework and Windows.
I don't know what your end goal is, but I would suggest looking at the XAML of a specific control you are interested in Blend. It was a pretty simple action, something like right click -> edit control template, although I can't remember the exact steps (like where to click exactly etc). I'm sure you can google that information very quickly...

Visual Studio design view contains yellow warning icons?

I have created a WPF project in Visual Studio which contains a MainWindow. This "imports" other user controls via XAML. The MainWindow is shown with warning icons and the following text. Unfortunately I don't have the English translation but it means something like this:
This document contains one or more controls which have been changed.
Rebuild the project to show the changes in the design view.
Rebuilding the complete solution does not help. However these warnings do not have any effect.
How can I get rid of these warnings?
I have tried Asryaels solution which is as follows:
Cleaning
Rebuilding
Saving all documents
Closing Visual Studio
Starting Visual Studio
Cleaning
Rebuilding
When encountering the same problem, closing the solution, deleting the Debug and the Release folders in /bin and restarting the solution seems to have helped.
I tried Asryaels solution, but it did not work for me.
Did you switch your platform target? This happened to me when I had project under Platform target: Any CPU and switched to x64. When I switch back to Any CPU warning does not show anymore and control works properly.
If you did switch platform target go to Configuration manager and create a new Active solution platform and for your project set Debug/Release to your project's current platform target. Worked for me.
This happens when the control within the ContentControl changes. You have to rebuild the solution to "update" the content within ContentControl.
<ContentControl Grid.Row="0">
<view:View_UserControl_TitleBar/>
</ContentControl>
In my case I had a User Control Library project that had errors during compilation.
But those error didn't showed up because I was in Release mode.
So changed to Debug mode and the errors were visible, so I could correct them.
After that, the project built correctly and the yellow marks dissapeared.

Unable to drag and drop telerik components on windows forms

I am trying to drag and drop Telerik RadGridView on my windows form. But instead of showing on the form(in designer view), it shows the control just below the designer i.e. the area where some of the controls like DataSet, Binding Source, FileDialog controls are shown when added to the form from the toolbox.
The same problem happens for any rad control like RadButton, RadLabel etc. I can work on the control by using the controls added to the form, but the problem is that in case of some controls like RadGridView, the smart tag is not available that makes a lot of things easier.
I think I am missing something, so that I am unable to drag-drop the controls. Can any one help me out?
Can also be caused by a version mismatch. I had the latest version installed but code base referenced previous version (specifically 2011 Q2).
An uninstall of latest and install of 20011.Q2 fixed it for me.
This is caused by missing design time assembly in your GAC. Uninstall the all telerik controls from your computer, reinstall them and then update your project references. This should solve the problem.
More info at this link.
you must ReInstall your telerik product then open your project and reload your toolbox.
this sometime happen like you update your visual studio or you install a new package of telerik.

Resources