UIElement3D is an abstract base class from which you can derive classes to represent specific 3D elements.
Much of the input, focusing, and eventing behavior for 3D elements in general is defined in the UIElement3D class. This includes the events for keyboard, mouse, and stylus input, and related status properties. Many of these events are routed events, and many of the input-related events have both a bubbling routing version as well as a tunneling version of the event. These paired events are typically the events of greatest interest to control authors.
UIElement3D also includes API that relate to the WPF event model, including methods that can raise specified routed events that are sourced from an element instance.
A UIElement3D has the following capabilities that are specifically defined by the UIElement3D class:
重要说明: |
|---|
Visibility state affects all input handling by that element. Elements that are not visible do not participate in hit testing and do not receive input events, even if the mouse is over the bounds of where the element would be if were visible. |
Unlike the UIElement class, the UIElement3D class does not include layout. Therefore, the UIElement3D class does not include Measure or Arrange methods.
A class that derives from UIElement3D and maintains its own collection of Visual3D objects by overriding GetVisual3DChild and Visual3DChildrenCount must still pass new Visual3D objects to AddVisual3DChild.
UIElement3D is introduced in the .NET Framework version 3.5. For more information, see .NET Framework 3.5 体系结构.