Skip to Main Content
Programming WPF, 2nd Edition
book

Programming WPF, 2nd Edition

by Chris Sells, Ian Griffiths
August 2007
Intermediate to advanced content levelIntermediate to advanced
864 pages
25h 52m
English
O'Reilly Media, Inc.
Content preview from Programming WPF, 2nd Edition

Visual3D

System.Object
    System.Windows.Threading.DispatcherObject
        System.Windows.DependencyObject
            System.Windows.Media.Media3D.Visual3D

The abstract Visual3D class fulfills the same role for 3D content as Visual does in 2D. All 3D elements in the visual tree derive from Visual3D, which provides transformation and hit testing services.

In the current version of WPF, only one type is derived from Visual3D: ModelVisual3D. As with the 2D Visual class, you cannot usefully derive directly from Visual3D because the mechanisms by which content is rendered are internal. Nonetheless, you need to be aware of the class because it crops up in certain APIs, including the 3D hit testing APIs. We describe 3D hit testing in Chapter 17, along with the Visual3D and ModelVisual3D types.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming C#, 4th Edition

Programming C#, 4th Edition

Jesse Liberty
Programming C# 10

Programming C# 10

Ian Griffiths

Publisher Resources

ISBN: 9780596510374Supplemental ContentErrata Page