O'Reilly logo

XAML Unleashed by Adam Nathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

ModelVisual3D

To set the content of a ModelVisual3D, you use its Content property:

<Viewport3D><Viewport3D.Camera>  <OrthographicCamera Position="5,5,5" LookDirection="-1,-1,-1" Width="5"/></Viewport3D.Camera><Viewport3D.Children>  <ModelVisual3D Content="{StaticResource CubeModel}" /></Viewport3D.Children></Viewport3D>

ModelVisual3D also has a Children property. Therefore, you use ModelVisual3Ds to compose multiple models into a scene inside your Viewport3D:

<Viewport3D><Viewport3D.Camera>  <OrthographicCamera Position="5,5,5" LookDirection="-1,-1,-1" Width="5"/></Viewport3D.Camera><Viewport3D.Children>  <ModelVisual3D Transform="{DynamicResource SquadronTransform}">     <ModelVisual3D ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required