How to set ViewBox background?

依然范特西╮ 提交于 2019-12-01 02:41:18

问题


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

How can I fix this problem?


回答1:


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

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



回答2:


Put it in a Border and set its Background.



来源:https://stackoverflow.com/questions/19875898/how-to-set-viewbox-background

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!