Export (0) Print
Expand All

ModelUIElement3D Class

Renders a 3-D model that supports input, focus, and events.

Namespace:  System.Windows.Media.Media3D
Assembly:  PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

[ContentPropertyAttribute("Model")]
public sealed class ModelUIElement3D : UIElement3D
<ModelUIElement3D>
  Model
</ModelUIElement3D>

The ModelUIElement3D type exposes the following members.

  NameDescription
Public methodModelUIElement3DInitializes a new instance of the ContainerUIElement3D class.
Top

  NameDescription
Public propertyAllowDropGets or sets a value indicating whether this element can be used as the target of a drag-and-drop operation. (Inherited from UIElement3D.)
Public propertyAreAnyTouchesCapturedGets a value that indicates whether at least one touch is captured to this element. (Inherited from UIElement3D.)
Public propertyAreAnyTouchesCapturedWithinGets a value that indicates whether at least one touch is captured to this element or to any child elements in its visual tree. (Inherited from UIElement3D.)
Public propertyAreAnyTouchesDirectlyOverGets a value that indicates whether at least one touch is pressed over this element. (Inherited from UIElement3D.)
Public propertyAreAnyTouchesOverGets a value that indicates whether at least one touch is pressed over this element or any child elements in its visual tree. (Inherited from UIElement3D.)
Public propertyCommandBindingsGets a collection of CommandBinding objects associated with this element. (Inherited from UIElement3D.)
Public propertyDependencyObjectTypeGets the DependencyObjectType that wraps the CLR type of this instance.  (Inherited from DependencyObject.)
Public propertyDispatcherGets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.)
Public propertyFocusableGets or sets a value that indicates whether the element can receive focus. (Inherited from UIElement3D.)
Public propertyHasAnimatedPropertiesGets a value that indicates whether this Visual3D has any animated properties. (Inherited from Visual3D.)
Public propertyInputBindings Gets the collection of input bindings associated with this element. (Inherited from UIElement3D.)
Public propertyIsEnabledGets or sets a value indicating whether this element is enabled in the user interface (UI). (Inherited from UIElement3D.)
Public propertyIsFocusedGets a value that determines whether this element has logical focus. (Inherited from UIElement3D.)
Public propertyIsHitTestVisibleGets or sets a value that declares whether this element can possibly be returned as a hit test result from some portion of its rendered content. (Inherited from UIElement3D.)
Public propertyIsInputMethodEnabledGets a value indicating whether an input method system, such as an Input Method Editor (IME), is enabled for processing the input to this element. (Inherited from UIElement3D.)
Public propertyIsKeyboardFocusedGets a value indicating whether this element has keyboard focus. (Inherited from UIElement3D.)
Public propertyIsKeyboardFocusWithinGets a value indicating whether keyboard focus is anywhere within the element or its visual tree child elements. (Inherited from UIElement3D.)
Public propertyIsMouseCapturedGets a value indicating whether the mouse is captured to this element. (Inherited from UIElement3D.)
Public propertyIsMouseCaptureWithinGets a value that determines whether mouse capture is held by this element or by child elements in its visual tree. (Inherited from UIElement3D.)
Public propertyIsMouseDirectlyOverGets a value that indicates whether the position of the mouse pointer corresponds to hit test results, which take element compositing into account. (Inherited from UIElement3D.)
Public propertyIsMouseOverGets a value indicating whether the mouse pointer is located over this element (including child elements in the visual tree). (Inherited from UIElement3D.)
Public propertyIsSealedGets a value that indicates whether this instance is currently sealed (read-only). (Inherited from DependencyObject.)
Public propertyIsStylusCapturedGets a value indicating whether the stylus is captured by this element. (Inherited from UIElement3D.)
Public propertyIsStylusCaptureWithinGets a value that determines whether stylus capture is held by this element, or an element within the element bounds and its visual tree. (Inherited from UIElement3D.)
Public propertyIsStylusDirectlyOverGets a value that indicates whether the stylus position corresponds to hit test results, which take element compositing into account. (Inherited from UIElement3D.)
Public propertyIsStylusOver Gets a value indicating whether the stylus cursor is located over this element (including visual child elements). (Inherited from UIElement3D.)
Public propertyIsVisibleGets a value indicating whether this element is visible in the user interface (UI). (Inherited from UIElement3D.)
Public propertyModelGets or sets the Model3D to render.
Public propertyTouchesCapturedGets all touch devices that are captured to this element. (Inherited from UIElement3D.)
Public propertyTouchesCapturedWithinGets all touch devices that are captured to this element or any child elements in its visual tree. (Inherited from UIElement3D.)
Public propertyTouchesDirectlyOverGets all touch devices that are over this element. (Inherited from UIElement3D.)
Public propertyTouchesOverGets all touch devices that are over this element or any child elements in its visual tree. (Inherited from UIElement3D.)
Public propertyTransformGets or sets the transformation that is applied to the 3-D object. (Inherited from Visual3D.)
Public propertyVisibilityGets or sets the user interface (UI) visibility of this element. (Inherited from UIElement3D.)
Top

  NameDescription
Public methodAddHandler(RoutedEvent, Delegate)Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element. (Inherited from UIElement3D.)
Public methodAddHandler(RoutedEvent, Delegate, Boolean)Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element. Specify handledEventsToo as true to have the provided handler be invoked for routed event that had already been marked as handled by another element along the event route. (Inherited from UIElement3D.)
Public methodAddToEventRouteAdds handlers to the specified EventRoute for the current UIElement3D event handler collection. (Inherited from UIElement3D.)
Public methodApplyAnimationClock(DependencyProperty, AnimationClock)Applies the effect of a given AnimationClock to a given dependency property. (Inherited from Visual3D.)
Public methodApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior)Applies the effect of a given AnimationClock to a given dependency property. The effect of the new AnimationClock on any current animations is determined by the value of the handoffBehavior parameter. (Inherited from Visual3D.)
Public methodBeginAnimation(DependencyProperty, AnimationTimeline)Initiates an animation sequence for the DependencyProperty object, based on the specified AnimationTimeline. (Inherited from Visual3D.)
Public methodBeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior)Initiates an animation sequence for the DependencyProperty object, based on both the specified AnimationTimeline and HandoffBehavior. (Inherited from Visual3D.)
Public methodCaptureMouseAttempts to force capture of the mouse to this element. (Inherited from UIElement3D.)
Public methodCaptureStylus Attempts to force capture of the stylus to this element. (Inherited from UIElement3D.)
Public methodCaptureTouchAttempts to force capture of a touch to this element. (Inherited from UIElement3D.)
Public methodCheckAccessDetermines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Public methodClearValue(DependencyProperty)Clears the local value of a property. The property to be cleared is specified by a DependencyProperty identifier. (Inherited from DependencyObject.)
Public methodClearValue(DependencyPropertyKey)Clears the local value of a read-only property. The property to be cleared is specified by a DependencyPropertyKey. (Inherited from DependencyObject.)
Public methodCoerceValueCoerces the value of the specified dependency property. This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject. (Inherited from DependencyObject.)
Public methodEqualsDetermines whether a provided DependencyObject is equivalent to the current DependencyObject. (Inherited from DependencyObject.)
Public methodFindCommonVisualAncestorReturns the common ancestor of the visual object and another specified visual object. (Inherited from Visual3D.)
Public methodFocus Attempts to set the logical focus on this element. (Inherited from UIElement3D.)
Public methodGetAnimationBaseValueRetrieves the base value of the specified DependencyProperty object. (Inherited from Visual3D.)
Public methodGetHashCodeGets a hash code for this DependencyObject. (Inherited from DependencyObject.)
Public methodGetLocalValueEnumeratorCreates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject. (Inherited from DependencyObject.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodGetUIParentCoreWhen overridden in a derived class, returns an alternative user interface (UI) parent for this element if no visual parent exists. (Inherited from UIElement3D.)
Public methodGetValueReturns the current effective value of a dependency property on this instance of a DependencyObject. (Inherited from DependencyObject.)
Public methodInvalidateModelInvalidates the model that represents the element. (Inherited from UIElement3D.)
Public methodInvalidatePropertyRe-evaluates the effective value for the specified dependency property (Inherited from DependencyObject.)
Public methodIsAncestorOfDetermines whether the visual object is an ancestor of the descendant visual object. (Inherited from Visual3D.)
Public methodIsDescendantOfDetermines whether the visual object is a descendant of the ancestor visual object. (Inherited from Visual3D.)
Public methodMoveFocusAttempts to move focus from this element to another element. The direction to move focus is specified by a guidance direction, which is interpreted within the organization of the visual parent for this element. (Inherited from UIElement3D.)
Protected methodOnDragEnterInvoked when an unhandled DragDrop.DragEnter attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnDragLeaveInvoked when an unhandled DragDrop.DragLeave attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnDragOverInvoked when an unhandled DragDrop.DragOver attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnDropInvoked when an unhandled DragDrop.Drop attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnGiveFeedbackInvoked when an unhandled DragDrop.GiveFeedback attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnGotKeyboardFocusInvoked when an unhandled Keyboard.GotKeyboardFocus attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnGotMouseCaptureInvoked when an unhandled Mouse.GotMouseCapture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnGotStylusCaptureInvoked when an unhandled Stylus.GotStylusCapture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnGotTouchCaptureProvides class handling for the GotTouchCapture routed event that occurs when a touch is captured to this element. (Inherited from UIElement3D.)
Protected methodOnKeyDownInvoked when an unhandled Keyboard.KeyDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnKeyUpInvoked when an unhandled Keyboard.KeyUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnLostKeyboardFocusInvoked when an unhandled Keyboard.LostKeyboardFocus attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnLostMouseCaptureInvoked when an unhandled Mouse.LostMouseCapture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnLostStylusCaptureInvoked when an unhandled Stylus.LostStylusCapture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnLostTouchCaptureProvides class handling for the LostTouchCapture routed event that occurs when this element loses a touch capture. (Inherited from UIElement3D.)
Protected methodOnMouseDownInvoked when an unhandled Mouse.MouseDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnMouseEnterInvoked when an unhandled Mouse.MouseEnter attached event is raised on this element. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnMouseLeaveInvoked when an unhandled Mouse.MouseLeave attached event is raised on this element. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnMouseLeftButtonDownInvoked when an unhandled MouseLeftButtonDown routed event is raised on this element. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnMouseLeftButtonUpInvoked when an unhandled MouseLeftButtonUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnMouseMoveInvoked when an unhandled Mouse.MouseMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnMouseRightButtonDownInvoked when an unhandled MouseRightButtonDown routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnMouseRightButtonUpInvoked when an unhandled MouseRightButtonUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnMouseUpInvoked when an unhandled Mouse.MouseUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnMouseWheelInvoked when an unhandled Mouse.MouseWheel attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewDragEnterInvoked when an unhandled DragDrop.PreviewDragEnter attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewDragLeaveInvoked when an unhandled DragDrop.PreviewDragLeave attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewDragOverInvoked when an unhandled DragDrop.PreviewDragOver attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewDropInvoked when an unhandled DragDrop.PreviewDrop attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewGiveFeedbackInvoked when an unhandled DragDrop.PreviewGiveFeedback attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewGotKeyboardFocusInvoked when an unhandled Keyboard.PreviewGotKeyboardFocus attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewKeyDownInvoked when an unhandled Keyboard.PreviewKeyDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewKeyUpInvoked when an unhandled Keyboard.PreviewKeyUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewLostKeyboardFocusInvoked when an unhandled Keyboard.PreviewLostKeyboardFocus attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewMouseDownInvoked when an unhandled Mouse.PreviewMouseDown attached routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewMouseLeftButtonDownInvoked when an unhandled PreviewMouseLeftButtonDown routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewMouseLeftButtonUpInvoked when an unhandled PreviewMouseLeftButtonUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewMouseMoveInvoked when an unhandled Mouse.PreviewMouseMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewMouseRightButtonDownInvoked when an unhandled PreviewMouseRightButtonDown routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewMouseRightButtonUpInvoked when an unhandled PreviewMouseRightButtonUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewMouseUpInvoked when an unhandled Mouse.PreviewMouseUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewMouseWheelInvoked when an unhandled Mouse.PreviewMouseWheel attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewQueryContinueDragInvoked when an unhandled DragDrop.PreviewQueryContinueDrag attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewStylusButtonDownInvoked when an unhandled Stylus.PreviewStylusButtonDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewStylusButtonUpInvoked when an unhandled Stylus.PreviewStylusButtonUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewStylusDownInvoked when an unhandled Stylus.PreviewStylusDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewStylusInAirMoveInvoked when an unhandled Stylus.PreviewStylusInAirMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewStylusInRangeInvoked when an unhandled Stylus.PreviewStylusInRange attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewStylusMoveInvoked when an unhandled Stylus.PreviewStylusMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewStylusOutOfRangeInvoked when an unhandled Stylus.PreviewStylusOutOfRange attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewStylusSystemGestureInvoked when an unhandled Stylus.PreviewStylusSystemGesture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewStylusUpInvoked when an unhandled Stylus.PreviewStylusUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewTextInputInvoked when an unhandled TextCompositionManager.PreviewTextInput attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnPreviewTouchDownProvides class handling for the PreviewTouchDown routed event that occurs when a touch presses this element. (Inherited from UIElement3D.)
Protected methodOnPreviewTouchMoveProvides class handling for the PreviewTouchMove routed event that occurs when a touch moves while inside this element. (Inherited from UIElement3D.)
Protected methodOnPreviewTouchUpProvides class handling for the PreviewTouchUp routed event that occurs when a touch is released inside this element. (Inherited from UIElement3D.)
Protected methodOnQueryContinueDragInvoked when an unhandled DragDrop.QueryContinueDrag attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnQueryCursorInvoked when an unhandled Mouse.QueryCursor attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnStylusButtonDownInvoked when an unhandled Stylus.StylusButtonDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnStylusButtonUpInvoked when an unhandled Stylus.StylusButtonUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnStylusDownInvoked when an unhandled Stylus.StylusDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnStylusEnterInvoked when an unhandled Stylus.StylusEnter attached event is raised by this element. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnStylusInAirMoveInvoked when an unhandled Stylus.StylusInAirMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnStylusInRangeInvoked when an unhandled Stylus.StylusInRange attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnStylusLeaveInvoked when an unhandled Stylus.StylusLeave attached event is raised by this element. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnStylusMoveInvoked when an unhandled Stylus.StylusMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnStylusOutOfRangeInvoked when an unhandled Stylus.StylusOutOfRange attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnStylusSystemGestureInvoked when an unhandled Stylus.StylusSystemGesture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnStylusUpInvoked when an unhandled Stylus.StylusUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnTextInputInvoked when an unhandled TextCompositionManager.TextInput attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement3D.)
Protected methodOnTouchDownProvides class handling for the TouchDown routed event that occurs when a touch presses inside this element. (Inherited from UIElement3D.)
Protected methodOnTouchEnterProvides class handling for the TouchEnter routed event that occurs when a touch moves from outside to inside the bounds of this element. (Inherited from UIElement3D.)
Protected methodOnTouchLeaveProvides class handling for the TouchLeave routed event that occurs when a touch moves from inside to outside the bounds of this element. (Inherited from UIElement3D.)
Protected methodOnTouchMoveProvides class handling for the TouchMove routed event that occurs when a touch moves while inside this element. (Inherited from UIElement3D.)
Protected methodOnTouchUpProvides class handling for the TouchUp routed event that occurs when a touch is released inside this element. (Inherited from UIElement3D.)
Protected methodOnVisualChildrenChangedCalled when the Visual3DCollection of the visual object is modified. (Inherited from Visual3D.)
Protected methodOnVisualParentChangedInvoked when the parent element of this UIElement3D reports a change to its underlying visual parent. (Inherited from UIElement3D.)
Public methodPredictFocusWhen overridden in a derived class, returns the element that would receive focus for a specified focus traversal direction, without actually moving focus to that element. (Inherited from UIElement3D.)
Public methodRaiseEventRaises a specific routed event. The RoutedEvent to be raised is identified within the RoutedEventArgs instance that is provided (as the RoutedEvent property of that event data). (Inherited from UIElement3D.)
Public methodReadLocalValueReturns the local value of a dependency property, if it exists. (Inherited from DependencyObject.)
Public methodReleaseAllTouchCapturesReleases all captured touch devices from this element. (Inherited from UIElement3D.)
Public methodReleaseMouseCapture Releases the mouse capture, if this element held the capture. (Inherited from UIElement3D.)
Public methodReleaseStylusCapture Releases the stylus device capture, if this element held the capture. (Inherited from UIElement3D.)
Public methodReleaseTouchCaptureAttempts to release the specified touch device from this element. (Inherited from UIElement3D.)
Public methodRemoveHandler Removes the specified routed event handler from this element. (Inherited from UIElement3D.)
Public methodSetCurrentValueSets the value of a dependency property without changing its value source. (Inherited from DependencyObject.)
Public methodSetValue(DependencyProperty, Object)Sets the local value of a dependency property, specified by its dependency property identifier. (Inherited from DependencyObject.)
Public methodSetValue(DependencyPropertyKey, Object)Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property. (Inherited from DependencyObject.)
Public methodShouldSerializeCommandBindingsReturns whether serialization processes should serialize the contents of the CommandBindings property on instances of this class. (Inherited from UIElement3D.)
Public methodShouldSerializeInputBindingsReturns whether serialization processes should serialize the contents of the InputBindings property on instances of this class. (Inherited from UIElement3D.)
Protected methodShouldSerializePropertyReturns a value that indicates whether serialization processes should serialize the value for the provided dependency property. (Inherited from DependencyObject.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodTransformToAncestor(Visual)Returns a transform that can be used to transform coordinates from this Visual3D object to the specified Visual ancestor of the object. (Inherited from Visual3D.)
Public methodTransformToAncestor(Visual3D)Returns a transform that can be used to transform coordinates from this Visual3D object to the specified Visual3D ancestor of the object. (Inherited from Visual3D.)
Public methodTransformToDescendantReturns a transform that can be used to transform coordinates from this Visual3D object to the specified Visual3D descent object. (Inherited from Visual3D.)
Public methodVerifyAccessEnforces that the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Top

  NameDescription
Public eventDragEnterOccurs when the input system reports an underlying drag event with this element as the drag target. (Inherited from UIElement3D.)
Public eventDragLeaveOccurs when the input system reports an underlying drag event with this element as the drag origin. (Inherited from UIElement3D.)
Public eventDragOverOccurs when the input system reports an underlying drag event with this element as the potential drop target. (Inherited from UIElement3D.)
Public eventDropOccurs when the input system reports an underlying drop event with this element as the drop target. (Inherited from UIElement3D.)
Public eventFocusableChangedOccurs when the value of the Focusable property changes. (Inherited from UIElement3D.)
Public eventGiveFeedbackOccurs when the input system reports an underlying drag-and-drop event that involves this element. (Inherited from UIElement3D.)
Public eventGotFocusOccurs when this element gets logical focus. (Inherited from UIElement3D.)
Public eventGotKeyboardFocusOccurs when the keyboard is focused on this element. (Inherited from UIElement3D.)
Public eventGotMouseCaptureOccurs when this element captures the mouse. (Inherited from UIElement3D.)
Public eventGotStylusCaptureOccurs when this element captures the stylus. (Inherited from UIElement3D.)
Public eventGotTouchCaptureOccurs when a touch is captured to this element. (Inherited from UIElement3D.)
Public eventIsEnabledChangedOccurs when the value of the IsEnabled property on this element changes. (Inherited from UIElement3D.)
Public eventIsHitTestVisibleChangedOccurs when the value of the IsHitTestVisible dependency property changes on this element. (Inherited from UIElement3D.)
Public eventIsKeyboardFocusedChangedOccurs when the value of the IsKeyboardFocused property changes on this element. (Inherited from UIElement3D.)
Public eventIsKeyboardFocusWithinChangedOccurs when the value of the IsKeyboardFocusWithin property changes on this element. (Inherited from UIElement3D.)
Public eventIsMouseCapturedChangedOccurs when the value of the IsMouseCaptured property changes on this element. (Inherited from UIElement3D.)
Public eventIsMouseCaptureWithinChangedOccurs when the value of the IsMouseCaptureWithin property changes on this element. (Inherited from UIElement3D.)
Public eventIsMouseDirectlyOverChangedOccurs when the value of the IsMouseDirectlyOver property changes on this element. (Inherited from UIElement3D.)
Public eventIsStylusCapturedChangedOccurs when the value of the IsStylusCaptured property changes on this element. (Inherited from UIElement3D.)
Public eventIsStylusCaptureWithinChangedOccurs when the value of the IsStylusCaptureWithin property changes on this element. (Inherited from UIElement3D.)
Public eventIsStylusDirectlyOverChangedOccurs when the value of the IsStylusDirectlyOver property changes on this element. (Inherited from UIElement3D.)
Public eventIsVisibleChangedOccurs when the value of the IsVisible property changes on this element. (Inherited from UIElement3D.)
Public eventKeyDownOccurs when a key is pressed while the keyboard is focused on this element. (Inherited from UIElement3D.)
Public eventKeyUpOccurs when a key is released while the keyboard is focused on this element. (Inherited from UIElement3D.)
Public eventLostFocusOccurs when this element loses logical focus. (Inherited from UIElement3D.)
Public eventLostKeyboardFocusOccurs when the keyboard is no longer focused on this element. (Inherited from UIElement3D.)
Public eventLostMouseCaptureOccurs when this element loses mouse capture. (Inherited from UIElement3D.)
Public eventLostStylusCaptureOccurs when this element loses stylus capture. (Inherited from UIElement3D.)
Public eventLostTouchCaptureOccurs when this element loses a touch capture. (Inherited from UIElement3D.)
Public eventMouseDownOccurs when any mouse button is pressed while the pointer is over this element. (Inherited from UIElement3D.)
Public eventMouseEnterOccurs when the mouse pointer enters the bounds of this element. (Inherited from UIElement3D.)
Public eventMouseLeaveOccurs when the mouse pointer leaves the bounds of this element. (Inherited from UIElement3D.)
Public eventMouseLeftButtonDownOccurs when the left mouse button is pressed while the mouse pointer is over this element. (Inherited from UIElement3D.)
Public eventMouseLeftButtonUpOccurs when the left mouse button is released while the mouse pointer is over this element. (Inherited from UIElement3D.)
Public eventMouseMoveOccurs when the mouse pointer moves while over this element. (Inherited from UIElement3D.)
Public eventMouseRightButtonDownOccurs when the right mouse button is pressed while the mouse pointer is over this element. (Inherited from UIElement3D.)
Public eventMouseRightButtonUpOccurs when the right mouse button is released while the mouse pointer is over this element. (Inherited from UIElement3D.)
Public eventMouseUpOccurs when any mouse button is released over this element. (Inherited from UIElement3D.)
Public eventMouseWheelOccurs when the user rotates the mouse wheel while the mouse pointer is over this element. (Inherited from UIElement3D.)
Public eventPreviewDragEnterOccurs when the input system reports an underlying drag event with this element as the drag target. (Inherited from UIElement3D.)
Public eventPreviewDragLeaveOccurs when the input system reports an underlying drag event with this element as the drag origin. (Inherited from UIElement3D.)
Public eventPreviewDragOverOccurs when the input system reports an underlying drag event with this element as the potential drop target. (Inherited from UIElement3D.)
Public eventPreviewDropOccurs when the input system reports an underlying drop event with this element as the drop target. (Inherited from UIElement3D.)
Public eventPreviewGiveFeedbackOccurs when a drag-and-drop operation is started. (Inherited from UIElement3D.)
Public eventPreviewGotKeyboardFocusOccurs when the keyboard is focused on this element. (Inherited from UIElement3D.)
Public eventPreviewKeyDownOccurs when a key is pressed while the keyboard is focused on this element. (Inherited from UIElement3D.)
Public eventPreviewKeyUpOccurs when a key is released while the keyboard is focused on this element. (Inherited from UIElement3D.)
Public eventPreviewLostKeyboardFocusOccurs when the keyboard is no longer focused on this element. (Inherited from UIElement3D.)
Public eventPreviewMouseDownOccurs when any mouse button is pressed while the pointer is over this element. (Inherited from UIElement3D.)
Public eventPreviewMouseLeftButtonDownOccurs when the left mouse button is pressed while the mouse pointer is over this element. (Inherited from UIElement3D.)
Public eventPreviewMouseLeftButtonUpOccurs when the left mouse button is released while the mouse pointer is over this element. (Inherited from UIElement3D.)
Public eventPreviewMouseMoveOccurs when the mouse pointer moves while the mouse pointer is over this element. (Inherited from UIElement3D.)
Public eventPreviewMouseRightButtonDownOccurs when the right mouse button is pressed while the mouse pointer is over this element. (Inherited from UIElement3D.)
Public eventPreviewMouseRightButtonUpOccurs when the right mouse button is released while the mouse pointer is over this element. (Inherited from UIElement3D.)
Public eventPreviewMouseUpOccurs when any mouse button is released while the mouse pointer is over this element. (Inherited from UIElement3D.)
Public eventPreviewMouseWheelOccurs when the user rotates the mouse wheel while the mouse pointer is over this element. (Inherited from UIElement3D.)
Public eventPreviewQueryContinueDragOccurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation. (Inherited from UIElement3D.)
Public eventPreviewStylusButtonDownOccurs when the stylus button is pressed while the pointer is over this element. (Inherited from UIElement3D.)
Public eventPreviewStylusButtonUpOccurs when the stylus button is released while the pointer is over this element. (Inherited from UIElement3D.)
Public eventPreviewStylusDownOccurs when the stylus touches the digitizer while it is over this element. (Inherited from UIElement3D.)
Public eventPreviewStylusInAirMoveOccurs when the stylus moves over an element without actually touching the digitizer. (Inherited from UIElement3D.)
Public eventPreviewStylusInRangeOccurs when the stylus is close enough to the digitizer to be detected, while over this element. (Inherited from UIElement3D.)
Public eventPreviewStylusMoveOccurs when the stylus moves while over the element. The stylus must move while being detected by the digitizer to raise this event, otherwise, PreviewStylusInAirMove is raised instead. (Inherited from UIElement3D.)
Public eventPreviewStylusOutOfRangeOccurs when the stylus is too far from the digitizer to be detected. (Inherited from UIElement3D.)
Public eventPreviewStylusSystemGestureOccurs when a user performs one of several stylus gestures. (Inherited from UIElement3D.)
Public eventPreviewStylusUpOccurs when the user raises the stylus off the digitizer while the stylus is over this element. (Inherited from UIElement3D.)
Public eventPreviewTextInputOccurs when this element gets text in a device-independent manner. (Inherited from UIElement3D.)
Public eventPreviewTouchDownOccurs when a finger touches the screen while the finger is over this element. (Inherited from UIElement3D.)
Public eventPreviewTouchMoveOccurs when a finger moves on the screen while the finger is over this element. (Inherited from UIElement3D.)
Public eventPreviewTouchUpOccurs when a finger is raised off of the screen while the finger is over this element. (Inherited from UIElement3D.)
Public eventQueryContinueDragOccurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation. (Inherited from UIElement3D.)
Public eventQueryCursorOccurs when the cursor is requested to display. This event is raised on an element each time that the mouse pointer moves to a new location, which means the cursor object might need to be changed based on its new position. (Inherited from UIElement3D.)
Public eventStylusButtonDownOccurs when the stylus button is pressed while the pointer is over this element. (Inherited from UIElement3D.)
Public eventStylusButtonUpOccurs when the stylus button is released while the pointer is over this element. (Inherited from UIElement3D.)
Public eventStylusDownOccurs when the stylus touches the digitizer while the stylus is over this element. (Inherited from UIElement3D.)
Public eventStylusEnterOccurs when the stylus enters the bounds of this element. (Inherited from UIElement3D.)
Public eventStylusInAirMoveOccurs when the stylus moves over an element without actually touching the digitizer. (Inherited from UIElement3D.)
Public eventStylusInRangeOccurs when the stylus is close enough to the digitizer to be detected, while over this element. (Inherited from UIElement3D.)
Public eventStylusLeaveOccurs when the stylus leaves the bounds of the element. (Inherited from UIElement3D.)
Public eventStylusMoveOccurs when the stylus moves over this element. The stylus must move while on the digitizer to raise this event. Otherwise, StylusInAirMove is raised instead. (Inherited from UIElement3D.)
Public eventStylusOutOfRangeOccurs when the stylus is too far from the digitizer to be detected, while over this element. (Inherited from UIElement3D.)
Public eventStylusSystemGestureOccurs when a user performs one of several stylus gestures. (Inherited from UIElement3D.)
Public eventStylusUpOccurs when the user raises the stylus off the digitizer while it is over this element. (Inherited from UIElement3D.)
Public eventTextInputOccurs when this element gets text in a device-independent manner. (Inherited from UIElement3D.)
Public eventTouchDownOccurs when a finger touches the screen while the finger is over this element. (Inherited from UIElement3D.)
Public eventTouchEnterOccurs when a touch moves from outside to inside the bounds of this element. (Inherited from UIElement3D.)
Public eventTouchLeaveOccurs when a touch moves from inside to outside the bounds of this element. (Inherited from UIElement3D.)
Public eventTouchMoveOccurs when a finger moves on the screen while the finger is over this element. (Inherited from UIElement3D.)
Public eventTouchUpOccurs when a finger is raised off of the screen while the finger is over this element. (Inherited from UIElement3D.)
Top

  NameDescription
Public fieldStatic memberModelPropertyIdentifies the Model dependency property.
Top

ModelUIElement3D is introduced in the .NET Framework version 3.5. For more information, see .NET Framework Versions and Dependencies.

The following example shows how to create two cubes using the ModelUIElement3D class:

<Viewport3D>
    <Viewport3D.Camera>
        <PerspectiveCamera Position="8,3,0" LookDirection="-8,-3,0" />
    </Viewport3D.Camera>

    <!-- The container has the two cubes as its children -->
    <ContainerUIElement3D MouseDown="ContainerMouseDown">
        <ContainerUIElement3D.Transform>
            <RotateTransform3D>
                <RotateTransform3D.Rotation>
                    <AxisAngleRotation3D x:Name="containerRotation" Axis="0, 1, 0" Angle="0" />
                </RotateTransform3D.Rotation>
            </RotateTransform3D>
        </ContainerUIElement3D.Transform>

        <!-- Cube 1 -->
        <ModelUIElement3D MouseDown="Cube1MouseDown">
            <ModelUIElement3D.Transform>
                <TranslateTransform3D OffsetZ="1.5" />
            </ModelUIElement3D.Transform>

            <ModelUIElement3D.Model>
                <GeometryModel3D Geometry="{StaticResource CubeMesh}">
                    <GeometryModel3D.Material>
                        <DiffuseMaterial x:Name="cube1Material" Brush="Blue" />
                    </GeometryModel3D.Material>
                </GeometryModel3D>
            </ModelUIElement3D.Model>
        </ModelUIElement3D>

        <!-- Cube 2 -->
        <ModelUIElement3D MouseDown="Cube2MouseDown">
            <ModelUIElement3D.Transform>
                <TranslateTransform3D OffsetZ="-1.5" />
            </ModelUIElement3D.Transform>

            <ModelUIElement3D.Model>
                <GeometryModel3D Geometry="{StaticResource CubeMesh}">
                    <GeometryModel3D.Material>
                        <DiffuseMaterial x:Name="cube2Material" Brush="Green" />
                    </GeometryModel3D.Material>
                </GeometryModel3D>
            </ModelUIElement3D.Model>
        </ModelUIElement3D>                
    </ContainerUIElement3D>

    <!-- Lights -->
    <ModelVisual3D>
        <ModelVisual3D.Content>
            <PointLight Color="White" Position="3, 10, 4" />
        </ModelVisual3D.Content>
    </ModelVisual3D>
</Viewport3D>

The cubes respond to the mouse down event through the following event handlers:

For the complete sample, see Handling Events in 3-D Sample .

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1, 3.0 SP1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft