Domanda

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

How can I fix this problem?

È stato utile?

Soluzione

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

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

Altri suggerimenti

Put it in a Border and set its Background.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top