Background color of VS Package Addin?
this may be a pretty simple question.
I've created a VS Package and it has a nice little GUI. The background of the GUI should be System.Colors.ControlBrush:
<Grid Background="{x:Static SystemColors.ControlBrush}">
Now I have the problem, that it changes the color of the Grid, but not of the rest of the window. -> Screenshot
I thought I could change the background of the UserControl the 开发者_StackOverflow社区same way, but somehow it doesn't work. Now it doesn't really look that great, if a part of the window is grey and the rest is white.
Any idea?
Your UserControl is probably not covering the entire window.
Remove any Width
or Height
attributes and make sure that the Horizontal/Vertical Alignments are both Stretch
.
精彩评论