O'Reilly logo

3D Programming for Windows® by Charles Petzold

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

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 ...

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