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

UIElement3D

The abstract UIElement3D class and its subclasses take a step beyond the Visual3D class in bringing 2D framework principles to the world of WPF 3D. WPF’s 2D UIElements are often said to have LIFE (layout, input, focus, and eventing) support. Although there is no 3D layout, UIElement3D does have IFE (input, focus, and eventing). This dramatically simplifies tasks such as attaching mouse event handlers to 3D elements of a scene. Rather than being forced to process every mouse click event on your Viewport3D and then tease out exactly which of your 3D models was hit, you can simply add the event handlers directly to your individual UIElement3Ds.

There are two UIElement3D-derived classes in WPF: ModelUIElement3D and ContainerUIElement3D ...

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