materialDesign:BundledTheme Foreground remains black in dark theme - wpf

I am using the materialDesign:BundledTheme.
<materialDesign:BundledTheme
BaseTheme="Dark"
PrimaryColor="LightBlue"
SecondaryColor="Lime" />
The text in the ListViews turns from black to white when the theme switches from 'Light' to 'Dark'. The borders of my TextBoxes turns from black to white as well. The text inside of my TextBox remains black though. It is difficult to see the text due to this.
I have attempted to track down the Setter of the Foreground via the Live Visual Tree.
It says it comes from a BindingExpression. I looked online to see if I could find the source in a more definitive way. I came upon the 'DependencyPropertyHelper.GetValueSource' method. It says that the Foreground property is Inherited. I cannot figure out why this text remains black when it should turn white like the border does.

Related

Why is the Designer in Codename one not reporting the attributes I set?

I started a Codename One project with the "Hello World bare bones". I used to define the styles in the Theme tab from the Designer but now it is becoming tedious.
Actually for some selectors, even if I override (unchecking the Derive box) some properties the style is not changed in the Designer (see below) or in the app itself.
However, in the list of selectors, the color is not the one I selected but the alignment seems to be it.
It seems that the theme is locked somewhere. Do I make a mistake, or should I set a constant to "unlock" the theme, or even should I clear some directories?
Please note that I am using NetBeans with designer V 1.1
.
Edit March 1st 2017
Following #Diamond's great tips, I was able to change the foreground color by setting the Border to empty (instead of NULL). However now the alignment is still not what I expect (see below). How can I do for this property ?
Any help appreciated,
In the Designer, Border is superior to background color and background image. Which means if the border image is set, a background color will have no effect unless the border is just a stroke or line.
Always solve this with these few steps:
Go to the Border tab and uncheck the override.
Click the ... button next to Border Help and a new Dialog will show.
Change the Type (First line) to Empty and click Ok.
Your background color will now have an effect.

Setting colors for the overflow menu

I'm trying to set the colors of the menu items for the overflow menu. The unselected style works just fine, but the first item shows up pre-selected, which means I get white text with a white icon on a white background. I can make it legible by setting the text color to black, but I still lose the icon, and anyway, I don't want a white background. I'm setting these in the resource editor using the Command UIID, but it seems to be ignoring my settings for selected and/or pressed styles. Am I doing something wrong? Or is this a bug in the code? (I'm using a modified version of the Blue theme.)
In the illustration, I have set a padding of 1 mm top and bottom, and a margin of 0 all the way around.
Try setting the bgTransparency of the CommandFocus UIID to 0.

Change border brush from skyblue in wizard control of extended wpf toolkit

I'm using Wizard control of Extended wpf toolkit package.
I would like to change color of the border. See sky blue in image below:
I tried set broder brush\background to wizard\wizard page\window controls, but it failed.
Anybody know how to change it?
Your assistance is appreciated!
Now that you have provided more info, I can see that your question title does not match what you asking to change. You are not asking to change the color of the border of the Wizard Control, you are asking to change the color of the WPF Window.
It takes some time to get things right, and I highly discourage doing this if you app will be used by people with disabilities, who need high contrast, who customized their desktop to a certain color because of color blindness, and the list goes on...Microsoft has worked very hard to address such issues with the defaults.
BUT...you can change this by restyling your Window Style. You can find plenty of code examples.
Here are two:
Can i set the window border color in WPF?
How can I style the border and title bar of a window in WPF?

Dark Background of new WPF Ribbon becomes gradient?

I am using the new Version of MS WPF Ribbon (Version MS WPF Ribbon 3.5.40729.1) with Windows 7 and I am trying to change the Background of the Ribbon. Everything looks fine if I use light background colors.
But e.g. if I choose "Black" a white gradient is shown with the black. It does not seem to be possible to remove the white and simply have a black background. And it looks ugly, especially when every Textcolor normally is white. (Tabheaders get white background and are not readable anymore)
In the samples, (I leave everything as is) if I set Background=Black directly in the ribbon's property, the effect is the same.
What do I have to set or do to get rid of the white gradient color?
There's a hard-coded gloss effect in the RibbonGroup template. It's lame, but the only way to get rid of it is to override the temlate for RibbonGroup. If you have Blend, just extract the template and rip out the offending LinearGradientBrush.

WPF FlowDocument - Fonts only black and white

Our app has a WPF FlowDocumentScrollViewer that shows a flowdocument with text in three font colors: Lavender, #FFFFFFE8, and Orange. The background of the Viewer is set to transparent, with the window behind it having a Black background. This works fine for everybody except for one customer. For him, the Lavender colored text shows up as white, and the text that should be the other two colors shows up as black. Black text is hard to read against a black background.
I imagine there is some windows setting that is causing the font colors to be displayed in black and white on his computer. Can anyone please point me to the correct setting? And is there anyway to override this behavior in the xaml or code behind?

Resources