I need to set the background of my System.Windows.Controls.Viewbox, but the property is missing.

How can I fix this problem?

有帮助吗?

解决方案

Put your viewbox inside a control that supports the background property:

<Border Background="Red">
   <ViewBox />
</Border>

其他提示

Put it in a Border and set its Background.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top