Change color of expanded dgml node - visual-studio

In a dgml file, an expanded Node can have the Background color set which changes the background of the border and title bar. The Foreground color sets the color of the title text.
The body currently seems to be filled with a color that depends on the current color theme selected in the Visual Studio options dialog. This means some people end up with white backgrounds and some black. This causes issues, especially when trying to export as xps to print the diagram. A massive block of black ink is a waste of ink!
How can the color of the body of the expanded Node be specified?

Related

White background on font icon on copying, but blue in text

When I try to copy the text along with font icons, the background changes to blue, but the background of the icons remains white. It feels like I'm not selecting the icons. How do I change the icon background color on copying?
The background of the icons is being selected, and it is blue. The issue is that your icons have opaque backgrounds themselves, which obscures the blue selection indicator.
Unless the icons are SVG and you can modify their properties with CSS, you can't change this. Even then I'm not sure that the :selected property applies for that type of selection.

wpf print element background color

I am using a PrintDocument to print a canvas with usercontrols on it. I am setting the background color of some of the controls. When I print the background color isn't printed (I've tried various shades of grey to black and only black actually prints).
Note: when I add the user control to a canvas for viewing on a regular form and change the background color (and/or add a visual brush) it displays correctly. The problem is with the printing.
Thanks for any help!

How do I change the text color of the inline breakpoint settings?

I use a dark theme, and I have my code "peek" background set to a dark color as well.
In VS2017, instead of the older dialog window you'd get when modifying a breakpoint, you get the settings inline instead, similar to how the "peek" bits look.
However, I can't find a way to change the text color of this area, so now I am trying to squint at dark grey text on a dark purple background. It seems as though the "peek" background color is shared with the breakpoint settings.
Is it possible to change this color?
Here's an image to show you what I mean:

Can we set the foreground color on TileTemplateType.TileWideImageAndText01 to a colour of my choosing

Just wondering if there is any way to set the foreground colour of the text on a TileWideAndText01 tile template or are we limited to dark or light only?
You are limited to dark or light only. From here:
Only two text colors are available—default dark and default light—and
are set by Windows. Choose the text color that will look best with
your choice of background color and the opacity of your logo image.

How to overlay white text on a white background in WPF so that it is viewable

My WPF VS 2008 application is working with many different images that are assembled and displayed at runtime. I would like to display some white text on top of those images. My problem is that some images contain a white or light color background.
My question is - is it possible to somehow specify a property or specify a setting in the image object, BitmapImage object (where the image is loaded from), or some other WPF object such that when white pixels from one image overlap white pixels from the other image - they turn a different color so the text will be viewable?
I think it depends on how you 'draw' your text on the images. If you use e.g. a Label, you can try out the 'DropShadowEffect', see: http://msdn.microsoft.com/en-us/library/ms748273.aspx
This effect should work with all WPF objects and you can try out some transparent black soft shadows surrounding the text (a little bit like a glow).
This will only be visible in bright environments if you adjust the opacity right.
Decided to use a dark background color for the text that is only partially (.35) opaque. This means that the background color of the image comes through for the most part, but for lighter colors it yields enough contrast so that the text is viewable.

Resources