开发者

Background color of VS Package Addin?

开发者 https://www.devze.com 2023-02-13 00:13 出处:网络
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:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消