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

Viewport3D

Viewport3D provides the opposite functionality of Viewport2DVisual3D. Whereas Viewport2DVisual3D is a Visual3D that enables 2D elements to be embedded inside 3D, Viewport3D is the 2D FrameworkElement that enables 3D elements to be embedded inside 2D.

The parent of a Viewport3D is always a 2D element such as a Grid. The children of the Viewport3D are Visual3Ds. The 3D scene described by the Visual3D children is rendered inside the rectangular layout bounds of the Viewport3D. The Camera property on the Viewport3D controls the view of the 3D scene you see inside the Viewport3D.

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