質問

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