|  | |
| Wpf | |
 Inheritance Hierarchy
Inheritance Hierarchy Syntax
Syntaxpublic class WpfUIElement3DNode : BaseWpfObjectNode
The WpfUIElement3DNode type exposes the following members.
 Constructors
Constructors| Name | Description | |
|---|---|---|
|  | WpfUIElement3DNode(UIElement3D) | Initializes a new instance of the WpfUIElement3DNode class. | 
|  | WpfUIElement3DNode(UIElement3D, DictionaryObject, String, String, Effect) | Initializes a new instance of the WpfUIElement3DNode class. | 
|  | WpfUIElement3DNode(UIElement3D, DictionaryString, Object, String, Effect) | Initializes a new instance of the WpfUIElement3DNode class. | 
 Properties
Properties| Name | Description | |
|---|---|---|
|  | MaterialEffect | Gets or sets the Effect that will render this WpfGeometryModel3DNode. If null, a standard effect will be used (effect set in EffectsManager as standard effect) | 
|  | UIElement3D | Gets the WPF's UIElement3D that is used to initialize this WpfUIElement3DNode | 
 Methods
Methods| Name | Description | |
|---|---|---|
|  | CollectRenderableObjects | The task of the CollectRenderableObjects method is to create objects derived from RenderablePrimitiveBase
            and add them to the appropriate RenderingQueue.
            This method is called at the beginning of RenderScene method call
            but only when the scene was significantly changed (number of SceneNodes is changed, material is significantly changed, etc.) (Overrides ObjectNodeCollectRenderableObjects) | 
|  | Refresh | Refresh regenerates the SceneNodes that are created from UIElement3D. | 
|  | Update | Update method is called on each update phase (before render phase) (Overrides SceneNodeUpdate) | 
 Extension Methods
Extension Methods| Name | Description | |
|---|---|---|
|  | GetGeometryModel3D | Returns a WPF's GeometryModel3D that was used to create the specified sceneNode.
            If the sceneNode does not define a GeometryModel3D object, then null is returned. (Defined by Extensions) | 
|  | GetModel3D | Returns a WPF's Model3D that was used to create the specified sceneNode.
            If the sceneNode does not define a Model3D object, then null is returned. (Defined by Extensions) | 
|  | GetModelVisual3D | Returns a WPF's ModelVisual3D that was used to create the specified sceneNode or any parent SceneNode (in case searchParentSceneNodes is true).
            If a SceneNode that defines a ModelVisual3D is not found, then null is returned. (Defined by Extensions) | 
|  | GetVisual3D | Returns a WPF's Visual3D that was used to create the specified sceneNode or any parent SceneNode (in case searchParentSceneNodes is true).
            If a SceneNode that defines a Visual3D is not found, then null is returned. (Defined by Extensions) | 
 Remarks
RemarksWpfUIElement3DNode represents a WPF's UIElement2D as a SceneNode and can render its Model3D with DXEngine.
            IMPORTANT:
            WpfUIElement3DNode can only show 3D models but does not support the input events on the UIElement3D (MouseEnter, MouseMove, etc.).
            Those events cannot be supported because Viewport3D control is not visible and does not provide the events to the UIElement3D.
            
Instead of using events on UIElement3D, you can use EventManager3D from Ab3d.PowerToys library. The events in EventManager3D are fully supported in Ab3d.DXEngine. If this is not an option, then you will need to use WPF 3D rendering instead of DirectX rendering.
 See Also
See Also