Friday, September 16, 2011 3:00 PM
How do you change the background color of the WPF designer in Visual Studio 11?
In VS 2010 it was tied to Windows window color. On VS 11 it no longer is. I never liked that it was tied to the window color, but hopefully it is not hard coded now? Many of us have pages with transparent backgrounds that are added over a dark common background at runtime. Text and other objects are a light color and aren’t viewable with the default off white designer background.
Monday, September 19, 2011 8:14 AM
http://msdn.microsoft.com/en-us/library/dd547188(v=vs.110).aspx#BKMK_VSIDE this link contains information about some of the important enhancements in Visual Studio 11 Developer Preview . is it helpful?
Monday, September 19, 2011 12:40 PM
Unfortunately I can’t find any reference to changing the designer background color there. I would think with Microsoft changing from inheriting the Windows window color to something internal they would allow it to be changed. There just doesn’t seem to be any UI to do this.
Tuesday, September 20, 2011 8:07 AMModerator
I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
Thank you for your understanding and support.
Lucy Liu [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Tuesday, September 20, 2011 12:18 PMThank you
Friday, September 23, 2011 10:07 AM
Could you please try the below code?
txt1.Background = Brushes.Black;
txt1.Foreground = Brushes.Red;
Same will be for panel\img\table etc...
Friday, September 23, 2011 12:23 PM
Sorry, you misunderstand. It doesn’t have anything to do with XAML or code. This is the actual designer background in the Visual Studio 11 IDE.
Wednesday, September 28, 2011 6:30 AM
I did test and found the the background color of the WPF designer in VS 11 Developer Preview is still tied to Windows Window color. The color may not change at once when the Windows window color is changed. But if you close the solution and reopen it in Visual Studio, you will see the new backgroud color.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.