c# - How to change ViewPort3D background color in WPF? -


i have viewport3d , want change background color.

i new wpf. didnt understand other posts. ask here.

i changed brush property viewport3d nothing

<window x:class="w3dtinker.mainwindow"     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     title="mainwindow" height="800" width="1200"> <grid horizontalalignment="left" height="780" margin="10,10,0,-21" verticalalignment="top" width="1180">     <viewport3d grid.row="0" grid.column="0" x:name="viewport" margin="350,10,10,10" opacitymask="{dynamicresource {x:static systemcolors.appworkspacebrushkey}}" /> </grid> 

viewport3d control creates 3d scene render things into. not display itself. if want background color behind it, set background color on parent control, in case grid contains it.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -