How to set background viewbox?

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

How can I fix this problem?

+6
source share
2 answers

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

 <Border Background="Red"> <ViewBox /> </Border> 
+10
source

Put it in Border and set it to Background .

+4
source

Source: https://habr.com/ru/post/957737/


All Articles