The Viewport3D and Its Constituents
You generally define a whole 3D scene inside a Viewport3D element. Like TextBlock, Image, Page, Panel, and Control, Viewport3D derives from FrameworkElement, which means that it can be a part of a larger layout of elements, and it can receive mouse, keyboard, and stylus input. Although most 3D classes are defined in the System.Windows.Media.Media3D namespace, Viewport3D appears in the System.Windows.Controls namespace along with other common elements and controls. (It is also possible to define a 3D scene using the Viewport3DVisual class, which derives from Visual and is found in the System.Windows.Media.Media3D namespace, but this class is generally used when defining a 3D visual to be used on the surface of ...
Get 3D Programming for Windows® now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.