UIElement3D UIElement3D UIElement3D UIElement3D Class

Definition

UIElement3D is a base class for WPF core level implementations building on Windows Presentation Foundation (WPF) elements and basic presentation characteristics.

public ref class UIElement3D abstract : System::Windows::Media::Media3D::Visual3D, System::Windows::IInputElement
public abstract class UIElement3D : System.Windows.Media.Media3D.Visual3D, System.Windows.IInputElement
type UIElement3D = class
    inherit Visual3D
    interface IInputElement
Public MustInherit Class UIElement3D
Inherits Visual3D
Implements IInputElement
Inheritance
Derived
Implements

Examples

The following example shows how to derive from the UIElement3D class to create a Sphere class:

public class Sphere : UIElement3D
{
    // OnUpdateModel is called in response to InvalidateModel and provides
    // a place to set the Visual3DModel property.
    // 
    // Setting Visual3DModel does not provide parenting information, which
    // is needed for data binding, styling, and other features. Similarly, creating render data
    // in 2-D does not provide the connections either.
    // 
    // To get around this, we create a Model dependency property which
    // sets this value.  The Model DP then causes the correct connections to occur
    // and the above features to work correctly.
    // 
    // In this update model we retessellate the sphere based on the current
    // dependency property values, and then set it as the model.  The brush
    // color is blue by default, but the code can easily be updated to let
    // this be set by the user.

    protected override void OnUpdateModel()
    {
        GeometryModel3D model = new GeometryModel3D();

        model.Geometry = Tessellate(ThetaDiv, PhiDiv, Radius);
        model.Material = new DiffuseMaterial(System.Windows.Media.Brushes.Blue);

        Model = model;
    }

    // The Model property for the sphere
    private static readonly DependencyProperty ModelProperty =
        DependencyProperty.Register("Model",
                                    typeof(Model3D),
                                    typeof(Sphere),
                                    new PropertyMetadata(ModelPropertyChanged));

    private static void ModelPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
    {
        Sphere s = (Sphere)d;
        s.Visual3DModel = s.Model;
    }

    private Model3D Model
    {
        get
        {
            return (Model3D)GetValue(ModelProperty);
        }

        set
        {
            SetValue(ModelProperty, value);
        }
    }

    // The number of divisions to make in the theta direction on the sphere
    public static readonly DependencyProperty ThetaDivProperty =
        DependencyProperty.Register("ThetaDiv",
                                    typeof(int),
                                    typeof(Sphere),
                                    new PropertyMetadata(15, ThetaDivPropertyChanged));

    private static void ThetaDivPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
    {
        Sphere s = (Sphere)d;
        s.InvalidateModel();
    }

    public int ThetaDiv
    {
        get
        {
            return (int)GetValue(ThetaDivProperty);
        }

        set
        {
            SetValue(ThetaDivProperty, value);
        }
    }

    // The number of divisions to make in the phi direction on the sphere
    public static readonly DependencyProperty PhiDivProperty =
        DependencyProperty.Register("PhiDiv",
                                    typeof(int),
                                    typeof(Sphere),
                                    new PropertyMetadata(15, PhiDivPropertyChanged));

    private static void PhiDivPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
    {
        Sphere s = (Sphere)d;
        s.InvalidateModel();
    }

    public int PhiDiv
    {
        get
        {
            return (int)GetValue(PhiDivProperty);
        }

        set
        {
            SetValue(PhiDivProperty, value);
        }
    }

    // The radius of the sphere
    public static readonly DependencyProperty RadiusProperty =
        DependencyProperty.Register("Radius",
                                    typeof(double),
                                    typeof(Sphere),
                                    new PropertyMetadata(1.0, RadiusPropertyChanged));

    private static void RadiusPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
    {
        Sphere s = (Sphere)d;
        s.InvalidateModel();
    }

    public double Radius
    {
        get
        {
            return (double)GetValue(RadiusProperty);
        }

        set
        {
            SetValue(RadiusProperty, value);
        }
    }

    // Private helper methods
    private static Point3D GetPosition(double theta, double phi, double radius)
    {
        double x = radius * Math.Sin(theta) * Math.Sin(phi);
        double y = radius * Math.Cos(phi);
        double z = radius * Math.Cos(theta) * Math.Sin(phi);

        return new Point3D(x, y, z);
    }

    private static Vector3D GetNormal(double theta, double phi)
    {
        return (Vector3D)GetPosition(theta, phi, 1.0);
    }

    private static double DegToRad(double degrees)
    {
        return (degrees / 180.0) * Math.PI;
    }

    private static System.Windows.Point GetTextureCoordinate(double theta, double phi)
    {
        System.Windows.Point p = new System.Windows.Point(theta / (2 * Math.PI),
                            phi / (Math.PI));

        return p;
    }

    // Tesselates the sphere and returns a MeshGeometry3D representing the 
    // tessellation based on the given parameters
    internal static MeshGeometry3D Tessellate(int tDiv, int pDiv, double radius)
    {            
        double dt = DegToRad(360.0) / tDiv;
        double dp = DegToRad(180.0) / pDiv;

        MeshGeometry3D mesh = new MeshGeometry3D();

        for (int pi = 0; pi <= pDiv; pi++)
        {
            double phi = pi * dp;

            for (int ti = 0; ti <= tDiv; ti++)
            {
                // we want to start the mesh on the x axis
                double theta = ti * dt;

                mesh.Positions.Add(GetPosition(theta, phi, radius));
                mesh.Normals.Add(GetNormal(theta, phi));
                mesh.TextureCoordinates.Add(GetTextureCoordinate(theta, phi));
            }
        }

        for (int pi = 0; pi < pDiv; pi++)
        {
            for (int ti = 0; ti < tDiv; ti++)
            {
                int x0 = ti;
                int x1 = (ti + 1);
                int y0 = pi * (tDiv + 1);
                int y1 = (pi + 1) * (tDiv + 1);

                mesh.TriangleIndices.Add(x0 + y0);
                mesh.TriangleIndices.Add(x0 + y1);
                mesh.TriangleIndices.Add(x1 + y0);

                mesh.TriangleIndices.Add(x1 + y0);
                mesh.TriangleIndices.Add(x0 + y1);
                mesh.TriangleIndices.Add(x1 + y1);
            }
        }

        mesh.Freeze();
        return mesh;
    }
}
Public Class Sphere
	Inherits UIElement3D
	' OnUpdateModel is called in response to InvalidateModel and provides
	' a place to set the Visual3DModel property.
	' 
	' Setting Visual3DModel does not provide parenting information, which
	' is needed for data binding, styling, and other features. Similarly, creating render data
	' in 2-D does not provide the connections either.
	' 
	' To get around this, we create a Model dependency property which
	' sets this value.  The Model DP then causes the correct connections to occur
	' and the above features to work correctly.
	' 
	' In this update model we retessellate the sphere based on the current
	' dependency property values, and then set it as the model.  The brush
	' color is blue by default, but the code can easily be updated to let
	' this be set by the user.

	Protected Overrides Sub OnUpdateModel()
		Dim model As New GeometryModel3D()

		model.Geometry = Tessellate(ThetaDiv, PhiDiv, Radius)
		model.Material = New DiffuseMaterial(System.Windows.Media.Brushes.Blue)

		Me.Model = model
	End Sub

	' The Model property for the sphere
	Private Shared ReadOnly ModelProperty As DependencyProperty = DependencyProperty.Register("Model", GetType(Model3D), GetType(Sphere), New PropertyMetadata(AddressOf ModelPropertyChanged))

	Private Shared Sub ModelPropertyChanged(ByVal d As DependencyObject, ByVal e As DependencyPropertyChangedEventArgs)
		Dim s As Sphere = CType(d, Sphere)
		s.Visual3DModel = s.Model
	End Sub

	Private Property Model() As Model3D
		Get
			Return CType(GetValue(ModelProperty), Model3D)
		End Get

		Set(ByVal value As Model3D)
			SetValue(ModelProperty, value)
		End Set
	End Property

	' The number of divisions to make in the theta direction on the sphere
	Public Shared ReadOnly ThetaDivProperty As DependencyProperty = DependencyProperty.Register("ThetaDiv", GetType(Integer), GetType(Sphere), New PropertyMetadata(15, AddressOf ThetaDivPropertyChanged))

	Private Shared Sub ThetaDivPropertyChanged(ByVal d As DependencyObject, ByVal e As DependencyPropertyChangedEventArgs)
		Dim s As Sphere = CType(d, Sphere)
		s.InvalidateModel()
	End Sub

	Public Property ThetaDiv() As Integer
		Get
               Return CInt(GetValue(ThetaDivProperty))
		End Get

		Set(ByVal value As Integer)
			SetValue(ThetaDivProperty, value)
		End Set
	End Property

	' The number of divisions to make in the phi direction on the sphere
	Public Shared ReadOnly PhiDivProperty As DependencyProperty = DependencyProperty.Register("PhiDiv", GetType(Integer), GetType(Sphere), New PropertyMetadata(15, AddressOf PhiDivPropertyChanged))

	Private Shared Sub PhiDivPropertyChanged(ByVal d As DependencyObject, ByVal e As DependencyPropertyChangedEventArgs)
		Dim s As Sphere = CType(d, Sphere)
		s.InvalidateModel()
	End Sub

	Public Property PhiDiv() As Integer
		Get
               Return CInt(GetValue(PhiDivProperty))
		End Get

		Set(ByVal value As Integer)
			SetValue(PhiDivProperty, value)
		End Set
	End Property

	' The radius of the sphere
	Public Shared ReadOnly RadiusProperty As DependencyProperty = DependencyProperty.Register("Radius", GetType(Double), GetType(Sphere), New PropertyMetadata(1.0, AddressOf RadiusPropertyChanged))

	Private Shared Sub RadiusPropertyChanged(ByVal d As DependencyObject, ByVal e As DependencyPropertyChangedEventArgs)
		Dim s As Sphere = CType(d, Sphere)
		s.InvalidateModel()
	End Sub

	Public Property Radius() As Double
		Get
			Return CDbl(GetValue(RadiusProperty))
		End Get

		Set(ByVal value As Double)
			SetValue(RadiusProperty, value)
		End Set
	End Property

	' Private helper methods
	Private Shared Function GetPosition(ByVal theta As Double, ByVal phi As Double, ByVal radius As Double) As Point3D
		Dim x As Double = radius * Math.Sin(theta) * Math.Sin(phi)
		Dim y As Double = radius * Math.Cos(phi)
		Dim z As Double = radius * Math.Cos(theta) * Math.Sin(phi)

		Return New Point3D(x, y, z)
	End Function

	Private Shared Function GetNormal(ByVal theta As Double, ByVal phi As Double) As Vector3D
		Return CType(GetPosition(theta, phi, 1.0), Vector3D)
	End Function

	Private Shared Function DegToRad(ByVal degrees As Double) As Double
		Return (degrees / 180.0) * Math.PI
	End Function

	Private Shared Function GetTextureCoordinate(ByVal theta As Double, ByVal phi As Double) As System.Windows.Point
		Dim p As New System.Windows.Point(theta / (2 * Math.PI), phi / (Math.PI))

		Return p
	End Function

	' Tesselates the sphere and returns a MeshGeometry3D representing the 
	' tessellation based on the given parameters
	Friend Shared Function Tessellate(ByVal tDiv As Integer, ByVal pDiv As Integer, ByVal radius As Double) As MeshGeometry3D
		Dim dt As Double = DegToRad(360.0) / tDiv
		Dim dp As Double = DegToRad(180.0) / pDiv

		Dim mesh As New MeshGeometry3D()

		For pi As Integer = 0 To pDiv
			Dim phi As Double = pi * dp

			For ti As Integer = 0 To tDiv
				' we want to start the mesh on the x axis
				Dim theta As Double = ti * dt

				mesh.Positions.Add(GetPosition(theta, phi, radius))
				mesh.Normals.Add(GetNormal(theta, phi))
				mesh.TextureCoordinates.Add(GetTextureCoordinate(theta, phi))
			Next ti
		Next pi

		For pi As Integer = 0 To pDiv - 1
			For ti As Integer = 0 To tDiv - 1
				Dim x0 As Integer = ti
				Dim x1 As Integer = (ti + 1)
				Dim y0 As Integer = pi * (tDiv + 1)
				Dim y1 As Integer = (pi + 1) * (tDiv + 1)

				mesh.TriangleIndices.Add(x0 + y0)
				mesh.TriangleIndices.Add(x0 + y1)
				mesh.TriangleIndices.Add(x1 + y0)

				mesh.TriangleIndices.Add(x1 + y0)
				mesh.TriangleIndices.Add(x0 + y1)
				mesh.TriangleIndices.Add(x1 + y1)
			Next ti
		Next pi

		mesh.Freeze()
		Return mesh
	End Function
End Class

For the complete sample, see UIElement3D Sphere Sample.

Remarks

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 APIs 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:

  • Can respond to user input (including control of where input is sent via handling of event routing or routing of commands).

  • Can raise routed events that travel a route through the logical element tree.

Important

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 Versions and Dependencies.

Constructors

UIElement3D() UIElement3D() UIElement3D() UIElement3D()

Initializes a new instance of the UIElement3D class.

Fields

AllowDropProperty AllowDropProperty AllowDropProperty AllowDropProperty

Identifies the AllowDrop dependency property.

AreAnyTouchesCapturedProperty AreAnyTouchesCapturedProperty AreAnyTouchesCapturedProperty AreAnyTouchesCapturedProperty

Identifies the AreAnyTouchesCaptured dependency property.

AreAnyTouchesCapturedWithinProperty AreAnyTouchesCapturedWithinProperty AreAnyTouchesCapturedWithinProperty AreAnyTouchesCapturedWithinProperty

Identifies the AreAnyTouchesCapturedWithin dependency property.

AreAnyTouchesDirectlyOverProperty AreAnyTouchesDirectlyOverProperty AreAnyTouchesDirectlyOverProperty AreAnyTouchesDirectlyOverProperty

Identifies the AreAnyTouchesDirectlyOver dependency property.

AreAnyTouchesOverProperty AreAnyTouchesOverProperty AreAnyTouchesOverProperty AreAnyTouchesOverProperty

Identifies the AreAnyTouchesOver dependency property.

DragEnterEvent DragEnterEvent DragEnterEvent DragEnterEvent

Identifies the DragEnter routed event.

DragLeaveEvent DragLeaveEvent DragLeaveEvent DragLeaveEvent

Identifies the DragLeave routed event.

DragOverEvent DragOverEvent DragOverEvent DragOverEvent

Identifies the DragOver routed event.

DropEvent DropEvent DropEvent DropEvent

Identifies the Drop routed event.

FocusableProperty FocusableProperty FocusableProperty FocusableProperty

Identifies the Focusable dependency property.

GiveFeedbackEvent GiveFeedbackEvent GiveFeedbackEvent GiveFeedbackEvent

Identifies the GiveFeedback routed event.

GotFocusEvent GotFocusEvent GotFocusEvent GotFocusEvent

Identifies the GotFocus routed event.

GotKeyboardFocusEvent GotKeyboardFocusEvent GotKeyboardFocusEvent GotKeyboardFocusEvent

Identifies the GotKeyboardFocus routed event.

GotMouseCaptureEvent GotMouseCaptureEvent GotMouseCaptureEvent GotMouseCaptureEvent

Identifies the GotMouseCapture routed event.

GotStylusCaptureEvent GotStylusCaptureEvent GotStylusCaptureEvent GotStylusCaptureEvent

Identifies the GotStylusCapture routed event.

GotTouchCaptureEvent GotTouchCaptureEvent GotTouchCaptureEvent GotTouchCaptureEvent

Identifies the GotTouchCapture routed event.

IsEnabledProperty IsEnabledProperty IsEnabledProperty IsEnabledProperty

Identifies the IsEnabled dependency property.

IsFocusedProperty IsFocusedProperty IsFocusedProperty IsFocusedProperty

Identifies the IsFocused dependency property.

IsHitTestVisibleProperty IsHitTestVisibleProperty IsHitTestVisibleProperty IsHitTestVisibleProperty

Identifies the IsHitTestVisible dependency property.

IsKeyboardFocusedProperty IsKeyboardFocusedProperty IsKeyboardFocusedProperty IsKeyboardFocusedProperty

Identifies the IsKeyboardFocused dependency property.

IsKeyboardFocusWithinProperty IsKeyboardFocusWithinProperty IsKeyboardFocusWithinProperty IsKeyboardFocusWithinProperty

Identifies the IsKeyboardFocusWithin dependency property.

IsMouseCapturedProperty IsMouseCapturedProperty IsMouseCapturedProperty IsMouseCapturedProperty

Identifies the IsMouseCaptured dependency property.

IsMouseCaptureWithinProperty IsMouseCaptureWithinProperty IsMouseCaptureWithinProperty IsMouseCaptureWithinProperty

Identifies the IsMouseCaptureWithin dependency property.

IsMouseDirectlyOverProperty IsMouseDirectlyOverProperty IsMouseDirectlyOverProperty IsMouseDirectlyOverProperty

Identifies the IsMouseDirectlyOver dependency property.

IsMouseOverProperty IsMouseOverProperty IsMouseOverProperty IsMouseOverProperty

Identifies the IsMouseOver dependency property.

IsStylusCapturedProperty IsStylusCapturedProperty IsStylusCapturedProperty IsStylusCapturedProperty

Identifies the IsStylusCaptured dependency property.

IsStylusCaptureWithinProperty IsStylusCaptureWithinProperty IsStylusCaptureWithinProperty IsStylusCaptureWithinProperty

Identifies the IsStylusCaptureWithin dependency property.

IsStylusDirectlyOverProperty IsStylusDirectlyOverProperty IsStylusDirectlyOverProperty IsStylusDirectlyOverProperty

Identifies the IsStylusDirectlyOver dependency property.

IsStylusOverProperty IsStylusOverProperty IsStylusOverProperty IsStylusOverProperty

Identifies the IsStylusOver dependency property.

IsVisibleProperty IsVisibleProperty IsVisibleProperty IsVisibleProperty

Identifies the IsVisible dependency property.

KeyDownEvent KeyDownEvent KeyDownEvent KeyDownEvent

Identifies the KeyDown routed event.

KeyUpEvent KeyUpEvent KeyUpEvent KeyUpEvent

Identifies the KeyUp routed event.

LostFocusEvent LostFocusEvent LostFocusEvent LostFocusEvent

Identifies the LostFocus routed event.

LostKeyboardFocusEvent LostKeyboardFocusEvent LostKeyboardFocusEvent LostKeyboardFocusEvent

Identifies the LostKeyboardFocus routed event.

LostMouseCaptureEvent LostMouseCaptureEvent LostMouseCaptureEvent LostMouseCaptureEvent

Identifies the LostMouseCapture routed event.

LostStylusCaptureEvent LostStylusCaptureEvent LostStylusCaptureEvent LostStylusCaptureEvent

Identifies the LostStylusCapture routed event.

LostTouchCaptureEvent LostTouchCaptureEvent LostTouchCaptureEvent LostTouchCaptureEvent

Identifies the LostTouchCapture routed event.

MouseDownEvent MouseDownEvent MouseDownEvent MouseDownEvent

Identifies the MouseDown routed event.

MouseEnterEvent MouseEnterEvent MouseEnterEvent MouseEnterEvent

Identifies the MouseEnter routed event.

MouseLeaveEvent MouseLeaveEvent MouseLeaveEvent MouseLeaveEvent

Identifies the MouseLeave routed event.

MouseLeftButtonDownEvent MouseLeftButtonDownEvent MouseLeftButtonDownEvent MouseLeftButtonDownEvent

Identifies the MouseLeftButtonDown routed event.

MouseLeftButtonUpEvent MouseLeftButtonUpEvent MouseLeftButtonUpEvent MouseLeftButtonUpEvent

Identifies the MouseLeftButtonUp routed event.

MouseMoveEvent MouseMoveEvent MouseMoveEvent MouseMoveEvent

Identifies the MouseMove routed event.

MouseRightButtonDownEvent MouseRightButtonDownEvent MouseRightButtonDownEvent MouseRightButtonDownEvent

Identifies the MouseRightButtonDown routed event.

MouseRightButtonUpEvent MouseRightButtonUpEvent MouseRightButtonUpEvent MouseRightButtonUpEvent

Identifies the MouseRightButtonUp routed event.

MouseUpEvent MouseUpEvent MouseUpEvent MouseUpEvent

Identifies the MouseUp routed event.

MouseWheelEvent MouseWheelEvent MouseWheelEvent MouseWheelEvent

Identifies the MouseWheel routed event.

PreviewDragEnterEvent PreviewDragEnterEvent PreviewDragEnterEvent PreviewDragEnterEvent

Identifies the PreviewDragEnter routed event.

PreviewDragLeaveEvent PreviewDragLeaveEvent PreviewDragLeaveEvent PreviewDragLeaveEvent

Identifies the PreviewDragLeave routed event.

PreviewDragOverEvent PreviewDragOverEvent PreviewDragOverEvent PreviewDragOverEvent

Identifies the PreviewDragOver routed event.

PreviewDropEvent PreviewDropEvent PreviewDropEvent PreviewDropEvent

Identifies the PreviewDrop routed event.

PreviewGiveFeedbackEvent PreviewGiveFeedbackEvent PreviewGiveFeedbackEvent PreviewGiveFeedbackEvent

Identifies the PreviewGiveFeedback routed event.

PreviewGotKeyboardFocusEvent PreviewGotKeyboardFocusEvent PreviewGotKeyboardFocusEvent PreviewGotKeyboardFocusEvent

Identifies the PreviewGotKeyboardFocus routed event.

PreviewKeyDownEvent PreviewKeyDownEvent PreviewKeyDownEvent PreviewKeyDownEvent

Identifies the PreviewKeyDown routed event.

PreviewKeyUpEvent PreviewKeyUpEvent PreviewKeyUpEvent PreviewKeyUpEvent

Identifies the PreviewKeyUp routed event.

PreviewLostKeyboardFocusEvent PreviewLostKeyboardFocusEvent PreviewLostKeyboardFocusEvent PreviewLostKeyboardFocusEvent

Identifies the PreviewLostKeyboardFocus routed event.

PreviewMouseDownEvent PreviewMouseDownEvent PreviewMouseDownEvent PreviewMouseDownEvent

Identifies the PreviewMouseDown routed event.

PreviewMouseLeftButtonDownEvent PreviewMouseLeftButtonDownEvent PreviewMouseLeftButtonDownEvent PreviewMouseLeftButtonDownEvent

Identifies the PreviewMouseLeftButtonDown routed event.

PreviewMouseLeftButtonUpEvent PreviewMouseLeftButtonUpEvent PreviewMouseLeftButtonUpEvent PreviewMouseLeftButtonUpEvent

Identifies the PreviewMouseLeftButtonUp routed event.

PreviewMouseMoveEvent PreviewMouseMoveEvent PreviewMouseMoveEvent PreviewMouseMoveEvent

Identifies the PreviewMouseMove routed event.

PreviewMouseRightButtonDownEvent PreviewMouseRightButtonDownEvent PreviewMouseRightButtonDownEvent PreviewMouseRightButtonDownEvent

Identifies the PreviewMouseRightButtonDown routed event.

PreviewMouseRightButtonUpEvent PreviewMouseRightButtonUpEvent PreviewMouseRightButtonUpEvent PreviewMouseRightButtonUpEvent

Identifies the PreviewMouseRightButtonUp routed event.

PreviewMouseUpEvent PreviewMouseUpEvent PreviewMouseUpEvent PreviewMouseUpEvent

Identifies the PreviewMouseUp routed event.

PreviewMouseWheelEvent PreviewMouseWheelEvent PreviewMouseWheelEvent PreviewMouseWheelEvent

Identifies the PreviewMouseWheel routed event.

PreviewQueryContinueDragEvent PreviewQueryContinueDragEvent PreviewQueryContinueDragEvent PreviewQueryContinueDragEvent

Identifies the PreviewQueryContinueDrag routed event.

PreviewStylusButtonDownEvent PreviewStylusButtonDownEvent PreviewStylusButtonDownEvent PreviewStylusButtonDownEvent

Identifies the PreviewStylusButtonDown routed event.

PreviewStylusButtonUpEvent PreviewStylusButtonUpEvent PreviewStylusButtonUpEvent PreviewStylusButtonUpEvent

Identifies the PreviewStylusButtonUp routed event.

PreviewStylusDownEvent PreviewStylusDownEvent PreviewStylusDownEvent PreviewStylusDownEvent

Identifies the PreviewStylusDown routed event.

PreviewStylusInAirMoveEvent PreviewStylusInAirMoveEvent PreviewStylusInAirMoveEvent PreviewStylusInAirMoveEvent

Identifies the PreviewStylusInAirMove routed event.

PreviewStylusInRangeEvent PreviewStylusInRangeEvent PreviewStylusInRangeEvent PreviewStylusInRangeEvent

Identifies the PreviewStylusInRange routed event.

PreviewStylusMoveEvent PreviewStylusMoveEvent PreviewStylusMoveEvent PreviewStylusMoveEvent

Identifies the PreviewStylusMove routed event.

PreviewStylusOutOfRangeEvent PreviewStylusOutOfRangeEvent PreviewStylusOutOfRangeEvent PreviewStylusOutOfRangeEvent

Identifies the PreviewStylusOutOfRange routed event.

PreviewStylusSystemGestureEvent PreviewStylusSystemGestureEvent PreviewStylusSystemGestureEvent PreviewStylusSystemGestureEvent

Identifies the PreviewStylusSystemGesture routed event.

PreviewStylusUpEvent PreviewStylusUpEvent PreviewStylusUpEvent PreviewStylusUpEvent

Identifies the PreviewStylusUp routed event.

PreviewTextInputEvent PreviewTextInputEvent PreviewTextInputEvent PreviewTextInputEvent

Identifies the PreviewTextInput routed event.

PreviewTouchDownEvent PreviewTouchDownEvent PreviewTouchDownEvent PreviewTouchDownEvent

Identifies the PreviewTouchDown routed event.

PreviewTouchMoveEvent PreviewTouchMoveEvent PreviewTouchMoveEvent PreviewTouchMoveEvent

Identifies the PreviewTouchMove routed event.

PreviewTouchUpEvent PreviewTouchUpEvent PreviewTouchUpEvent PreviewTouchUpEvent

Identifies the PreviewTouchUp routed event.

QueryContinueDragEvent QueryContinueDragEvent QueryContinueDragEvent QueryContinueDragEvent

Identifies the QueryContinueDrag routed event.

QueryCursorEvent QueryCursorEvent QueryCursorEvent QueryCursorEvent

Identifies the QueryCursor routed event.

StylusButtonDownEvent StylusButtonDownEvent StylusButtonDownEvent StylusButtonDownEvent

Identifies the StylusButtonDown routed event.

StylusButtonUpEvent StylusButtonUpEvent StylusButtonUpEvent StylusButtonUpEvent

Identifies the StylusButtonUp routed event.

StylusDownEvent StylusDownEvent StylusDownEvent StylusDownEvent

Identifies the StylusDown routed event.

StylusEnterEvent StylusEnterEvent StylusEnterEvent StylusEnterEvent

Identifies the StylusEnter routed event.

StylusInAirMoveEvent StylusInAirMoveEvent StylusInAirMoveEvent StylusInAirMoveEvent

Identifies the StylusInAirMove routed event.

StylusInRangeEvent StylusInRangeEvent StylusInRangeEvent StylusInRangeEvent

Identifies the StylusInRange routed event.

StylusLeaveEvent StylusLeaveEvent StylusLeaveEvent StylusLeaveEvent

Identifies the StylusLeave routed event.

StylusMoveEvent StylusMoveEvent StylusMoveEvent StylusMoveEvent

Identifies the StylusMove routed event.

StylusOutOfRangeEvent StylusOutOfRangeEvent StylusOutOfRangeEvent StylusOutOfRangeEvent

Identifies the StylusOutOfRange routed event.

StylusSystemGestureEvent StylusSystemGestureEvent StylusSystemGestureEvent StylusSystemGestureEvent

Identifies the StylusSystemGesture routed event.

StylusUpEvent StylusUpEvent StylusUpEvent StylusUpEvent

Identifies the StylusUp routed event.

TextInputEvent TextInputEvent TextInputEvent TextInputEvent

Identifies the TextInput routed event.

TouchDownEvent TouchDownEvent TouchDownEvent TouchDownEvent

Identifies the TouchDown routed event.

TouchEnterEvent TouchEnterEvent TouchEnterEvent TouchEnterEvent

Identifies the TouchEnter routed event.

TouchLeaveEvent TouchLeaveEvent TouchLeaveEvent TouchLeaveEvent

Identifies the TouchLeave routed event.

TouchMoveEvent TouchMoveEvent TouchMoveEvent TouchMoveEvent

Identifies the TouchMove routed event.

TouchUpEvent TouchUpEvent TouchUpEvent TouchUpEvent

Identifies the TouchUp routed event.

VisibilityProperty VisibilityProperty VisibilityProperty VisibilityProperty

Identifies the Visibility dependency property.

Properties

AllowDrop AllowDrop AllowDrop AllowDrop

Gets or sets a value indicating whether this element can be used as the target of a drag-and-drop operation.

AreAnyTouchesCaptured AreAnyTouchesCaptured AreAnyTouchesCaptured AreAnyTouchesCaptured

Gets a value that indicates whether at least one touch is captured to this element.

AreAnyTouchesCapturedWithin AreAnyTouchesCapturedWithin AreAnyTouchesCapturedWithin AreAnyTouchesCapturedWithin

Gets a value that indicates whether at least one touch is captured to this element or to any child elements in its visual tree.

AreAnyTouchesDirectlyOver AreAnyTouchesDirectlyOver AreAnyTouchesDirectlyOver AreAnyTouchesDirectlyOver

Gets a value that indicates whether at least one touch is pressed over this element.

AreAnyTouchesOver AreAnyTouchesOver AreAnyTouchesOver AreAnyTouchesOver

Gets a value that indicates whether at least one touch is pressed over this element or any child elements in its visual tree.

CommandBindings CommandBindings CommandBindings CommandBindings

Gets a collection of CommandBinding objects associated with this element.

DependencyObjectType DependencyObjectType DependencyObjectType DependencyObjectType

Gets the DependencyObjectType that wraps the CLR type of this instance.

(Inherited from DependencyObject)
Dispatcher Dispatcher Dispatcher Dispatcher

Gets the Dispatcher this DispatcherObject is associated with.

(Inherited from DispatcherObject)
Focusable Focusable Focusable Focusable

Gets or sets a value that indicates whether the element can receive focus.

HasAnimatedProperties HasAnimatedProperties HasAnimatedProperties HasAnimatedProperties

Gets a value that indicates whether this Visual3D has any animated properties.

(Inherited from Visual3D)
InputBindings InputBindings InputBindings InputBindings

Gets the collection of input bindings associated with this element.

IsEnabled IsEnabled IsEnabled IsEnabled

Gets or sets a value indicating whether this element is enabled in the user interface (UI).

IsEnabledCore IsEnabledCore IsEnabledCore IsEnabledCore

Gets a value that becomes the return value of IsEnabled in derived classes.

IsFocused IsFocused IsFocused IsFocused

Gets a value that determines whether this element has logical focus.

IsHitTestVisible IsHitTestVisible IsHitTestVisible IsHitTestVisible

Gets 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.

IsInputMethodEnabled IsInputMethodEnabled IsInputMethodEnabled IsInputMethodEnabled

Gets a value indicating whether an input method system, such as an Input Method Editor (IME), is enabled for processing the input to this element.

IsKeyboardFocused IsKeyboardFocused IsKeyboardFocused IsKeyboardFocused

Gets a value indicating whether this element has keyboard focus.

IsKeyboardFocusWithin IsKeyboardFocusWithin IsKeyboardFocusWithin IsKeyboardFocusWithin

Gets a value indicating whether keyboard focus is anywhere within the element or its visual tree child elements.

IsMouseCaptured IsMouseCaptured IsMouseCaptured IsMouseCaptured

Gets a value indicating whether the mouse is captured to this element.

IsMouseCaptureWithin IsMouseCaptureWithin IsMouseCaptureWithin IsMouseCaptureWithin

Gets a value that determines whether mouse capture is held by this element or by child elements in its visual tree.

IsMouseDirectlyOver IsMouseDirectlyOver IsMouseDirectlyOver IsMouseDirectlyOver

Gets a value that indicates whether the position of the mouse pointer corresponds to hit test results, which take element compositing into account.

IsMouseOver IsMouseOver IsMouseOver IsMouseOver

Gets a value indicating whether the mouse pointer is located over this element (including child elements in the visual tree).

IsSealed IsSealed IsSealed IsSealed

Gets a value that indicates whether this instance is currently sealed (read-only).

(Inherited from DependencyObject)
IsStylusCaptured IsStylusCaptured IsStylusCaptured IsStylusCaptured

Gets a value indicating whether the stylus is captured by this element.

IsStylusCaptureWithin IsStylusCaptureWithin IsStylusCaptureWithin IsStylusCaptureWithin

Gets a value that determines whether stylus capture is held by this element, or an element within the element bounds and its visual tree.

IsStylusDirectlyOver IsStylusDirectlyOver IsStylusDirectlyOver IsStylusDirectlyOver

Gets a value that indicates whether the stylus position corresponds to hit test results, which take element compositing into account.

IsStylusOver IsStylusOver IsStylusOver IsStylusOver

Gets a value indicating whether the stylus cursor is located over this element (including visual child elements).

IsVisible IsVisible IsVisible IsVisible

Gets a value indicating whether this element is visible in the user interface (UI).

TouchesCaptured TouchesCaptured TouchesCaptured TouchesCaptured

Gets all touch devices that are captured to this element.

TouchesCapturedWithin TouchesCapturedWithin TouchesCapturedWithin TouchesCapturedWithin

Gets all touch devices that are captured to this element or any child elements in its visual tree.

TouchesDirectlyOver TouchesDirectlyOver TouchesDirectlyOver TouchesDirectlyOver

Gets all touch devices that are over this element.

TouchesOver TouchesOver TouchesOver TouchesOver

Gets all touch devices that are over this element or any child elements in its visual tree.

Transform Transform Transform Transform

Gets or sets the transformation that is applied to the 3-D object.

(Inherited from Visual3D)
Visibility Visibility Visibility Visibility

Gets or sets the user interface (UI) visibility of this element.

Visual3DChildrenCount Visual3DChildrenCount Visual3DChildrenCount Visual3DChildrenCount

Gets the number of child elements for the Visual3D object.

(Inherited from Visual3D)
Visual3DModel Visual3DModel Visual3DModel Visual3DModel

Gets or sets the Model3D object to render.

(Inherited from Visual3D)

Methods

AddHandler(RoutedEvent, Delegate) AddHandler(RoutedEvent, Delegate) AddHandler(RoutedEvent, Delegate) AddHandler(RoutedEvent, Delegate)

Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element.

AddHandler(RoutedEvent, Delegate, Boolean) AddHandler(RoutedEvent, Delegate, Boolean) AddHandler(RoutedEvent, Delegate, Boolean) AddHandler(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.

AddToEventRoute(EventRoute, RoutedEventArgs) AddToEventRoute(EventRoute, RoutedEventArgs) AddToEventRoute(EventRoute, RoutedEventArgs) AddToEventRoute(EventRoute, RoutedEventArgs)

Adds handlers to the specified EventRoute for the current UIElement3D event handler collection.

AddVisual3DChild(Visual3D) AddVisual3DChild(Visual3D) AddVisual3DChild(Visual3D) AddVisual3DChild(Visual3D)

Defines the parent-child relationship between two 3-D visuals.

(Inherited from Visual3D)
ApplyAnimationClock(DependencyProperty, AnimationClock) ApplyAnimationClock(DependencyProperty, AnimationClock) ApplyAnimationClock(DependencyProperty, AnimationClock) ApplyAnimationClock(DependencyProperty, AnimationClock)

Applies the effect of a given AnimationClock to a given dependency property.

(Inherited from Visual3D)
ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior) ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior) ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior) ApplyAnimationClock(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)
BeginAnimation(DependencyProperty, AnimationTimeline) BeginAnimation(DependencyProperty, AnimationTimeline) BeginAnimation(DependencyProperty, AnimationTimeline) BeginAnimation(DependencyProperty, AnimationTimeline)

Initiates an animation sequence for the DependencyProperty object, based on the specified AnimationTimeline.

(Inherited from Visual3D)
BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior) BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior) BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior) BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior)

Initiates an animation sequence for the DependencyProperty object, based on both the specified AnimationTimeline and HandoffBehavior.

(Inherited from Visual3D)
CaptureMouse() CaptureMouse() CaptureMouse() CaptureMouse()

Attempts to force capture of the mouse to this element.

CaptureStylus() CaptureStylus() CaptureStylus() CaptureStylus()

Attempts to force capture of the stylus to this element.

CaptureTouch(TouchDevice) CaptureTouch(TouchDevice) CaptureTouch(TouchDevice) CaptureTouch(TouchDevice)

Attempts to force capture of a touch to this element.

CheckAccess() CheckAccess() CheckAccess() CheckAccess()

Determines whether the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)
ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty)

Clears the local value of a property. The property to be cleared is specified by a DependencyProperty identifier.

(Inherited from DependencyObject)
ClearValue(DependencyPropertyKey) ClearValue(DependencyPropertyKey) ClearValue(DependencyPropertyKey) ClearValue(DependencyPropertyKey)

Clears the local value of a read-only property. The property to be cleared is specified by a DependencyPropertyKey.

(Inherited from DependencyObject)
CoerceValue(DependencyProperty) CoerceValue(DependencyProperty) CoerceValue(DependencyProperty) CoerceValue(DependencyProperty)

Coerces 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)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether a provided DependencyObject is equivalent to the current DependencyObject.

(Inherited from DependencyObject)
FindCommonVisualAncestor(DependencyObject) FindCommonVisualAncestor(DependencyObject) FindCommonVisualAncestor(DependencyObject) FindCommonVisualAncestor(DependencyObject)

Returns the common ancestor of the visual object and another specified visual object.

(Inherited from Visual3D)
Focus() Focus() Focus() Focus()

Attempts to set the logical focus on this element.

GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty)

Retrieves the base value of the specified DependencyProperty object.

(Inherited from Visual3D)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Gets a hash code for this DependencyObject.

(Inherited from DependencyObject)
GetLocalValueEnumerator() GetLocalValueEnumerator() GetLocalValueEnumerator() GetLocalValueEnumerator()

Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject.

(Inherited from DependencyObject)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetUIParentCore() GetUIParentCore() GetUIParentCore() GetUIParentCore()

When overridden in a derived class, returns an alternative user interface (UI) parent for this element if no visual parent exists.

GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty)

Returns the current effective value of a dependency property on this instance of a DependencyObject.

(Inherited from DependencyObject)
GetVisual3DChild(Int32) GetVisual3DChild(Int32) GetVisual3DChild(Int32) GetVisual3DChild(Int32)

Returns the specified Visual3D in the parent Visual3DCollection.

(Inherited from Visual3D)
InvalidateModel() InvalidateModel() InvalidateModel() InvalidateModel()

Invalidates the model that represents the element.

InvalidateProperty(DependencyProperty) InvalidateProperty(DependencyProperty) InvalidateProperty(DependencyProperty) InvalidateProperty(DependencyProperty)

Re-evaluates the effective value for the specified dependency property

(Inherited from DependencyObject)
IsAncestorOf(DependencyObject) IsAncestorOf(DependencyObject) IsAncestorOf(DependencyObject) IsAncestorOf(DependencyObject)

Determines whether the visual object is an ancestor of the descendant visual object.

(Inherited from Visual3D)
IsDescendantOf(DependencyObject) IsDescendantOf(DependencyObject) IsDescendantOf(DependencyObject) IsDescendantOf(DependencyObject)

Determines whether the visual object is a descendant of the ancestor visual object.

(Inherited from Visual3D)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MoveFocus(TraversalRequest) MoveFocus(TraversalRequest) MoveFocus(TraversalRequest) MoveFocus(TraversalRequest)

Attempts 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.

OnAccessKey(AccessKeyEventArgs) OnAccessKey(AccessKeyEventArgs) OnAccessKey(AccessKeyEventArgs) OnAccessKey(AccessKeyEventArgs)

Provides class handling for when an access key that is meaningful for this element is invoked.

OnCreateAutomationPeer() OnCreateAutomationPeer() OnCreateAutomationPeer() OnCreateAutomationPeer()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

OnDragEnter(DragEventArgs) OnDragEnter(DragEventArgs) OnDragEnter(DragEventArgs) OnDragEnter(DragEventArgs)

Invoked when an unhandled 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.

OnDragLeave(DragEventArgs) OnDragLeave(DragEventArgs) OnDragLeave(DragEventArgs) OnDragLeave(DragEventArgs)

Invoked when an unhandled 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.

OnDragOver(DragEventArgs) OnDragOver(DragEventArgs) OnDragOver(DragEventArgs) OnDragOver(DragEventArgs)

Invoked when an unhandled 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.

OnDrop(DragEventArgs) OnDrop(DragEventArgs) OnDrop(DragEventArgs) OnDrop(DragEventArgs)

Invoked when an unhandled 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.

OnGiveFeedback(GiveFeedbackEventArgs) OnGiveFeedback(GiveFeedbackEventArgs) OnGiveFeedback(GiveFeedbackEventArgs) OnGiveFeedback(GiveFeedbackEventArgs)

Invoked when an unhandled 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.

OnGotFocus(RoutedEventArgs) OnGotFocus(RoutedEventArgs) OnGotFocus(RoutedEventArgs) OnGotFocus(RoutedEventArgs)

Raises the GotFocus routed event by using the event data provided.

OnGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)

Invoked when an unhandled 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.

OnGotMouseCapture(MouseEventArgs) OnGotMouseCapture(MouseEventArgs) OnGotMouseCapture(MouseEventArgs) OnGotMouseCapture(MouseEventArgs)

Invoked when an unhandled 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.

OnGotStylusCapture(StylusEventArgs) OnGotStylusCapture(StylusEventArgs) OnGotStylusCapture(StylusEventArgs) OnGotStylusCapture(StylusEventArgs)

Invoked when an unhandled 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.

OnGotTouchCapture(TouchEventArgs) OnGotTouchCapture(TouchEventArgs) OnGotTouchCapture(TouchEventArgs) OnGotTouchCapture(TouchEventArgs)

Provides class handling for the GotTouchCapture routed event that occurs when a touch is captured to this element.

OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs) OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs) OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs) OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs)

Invoked when an unhandled IsKeyboardFocusedChanged event is raised on this element. Implement this method to add class handling for this event.

OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs) OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs) OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs) OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)

Invoked just before the IsKeyboardFocusWithinChanged event is raised by this element. Implement this method to add class handling for this event.

OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs) OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs) OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs) OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs)

Invoked when an unhandled IsMouseCapturedChanged event is raised on this element. Implement this method to add class handling for this event.

OnIsMouseCaptureWithinChanged(DependencyPropertyChangedEventArgs) OnIsMouseCaptureWithinChanged(DependencyPropertyChangedEventArgs) OnIsMouseCaptureWithinChanged(DependencyPropertyChangedEventArgs) OnIsMouseCaptureWithinChanged(DependencyPropertyChangedEventArgs)

Invoked when an unhandled IsMouseCaptureWithinChanged event is raised on this element. Implement this method to add class handling for this event.

OnIsMouseDirectlyOverChanged(DependencyPropertyChangedEventArgs) OnIsMouseDirectlyOverChanged(DependencyPropertyChangedEventArgs) OnIsMouseDirectlyOverChanged(DependencyPropertyChangedEventArgs) OnIsMouseDirectlyOverChanged(DependencyPropertyChangedEventArgs)

Invoked when an unhandled IsMouseDirectlyOverChanged event is raised on this element. Implement this method to add class handling for this event.

OnIsStylusCapturedChanged(DependencyPropertyChangedEventArgs) OnIsStylusCapturedChanged(DependencyPropertyChangedEventArgs) OnIsStylusCapturedChanged(DependencyPropertyChangedEventArgs) OnIsStylusCapturedChanged(DependencyPropertyChangedEventArgs)

Invoked when an unhandled IsStylusCapturedChanged event is raised on this element. Implement this method to add class handling for this event.

OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs) OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs) OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs) OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs)

Invoked when an unhandled IsStylusCaptureWithinChanged event is raised on this element. Implement this method to add class handling for this event.

OnIsStylusDirectlyOverChanged(DependencyPropertyChangedEventArgs) OnIsStylusDirectlyOverChanged(DependencyPropertyChangedEventArgs) OnIsStylusDirectlyOverChanged(DependencyPropertyChangedEventArgs) OnIsStylusDirectlyOverChanged(DependencyPropertyChangedEventArgs)

Invoked when an unhandled IsStylusDirectlyOverChanged event is raised on this element. Implement this method to add class handling for this event.

OnKeyDown(KeyEventArgs) OnKeyDown(KeyEventArgs) OnKeyDown(KeyEventArgs) OnKeyDown(KeyEventArgs)

Invoked when an unhandled 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.

OnKeyUp(KeyEventArgs) OnKeyUp(KeyEventArgs) OnKeyUp(KeyEventArgs) OnKeyUp(KeyEventArgs)

Invoked when an unhandled 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.

OnLostFocus(RoutedEventArgs) OnLostFocus(RoutedEventArgs) OnLostFocus(RoutedEventArgs) OnLostFocus(RoutedEventArgs)

Raises the LostFocus routed event by using the event data that is provided.

OnLostKeyboardFocus(KeyboardFocusChangedEventArgs) OnLostKeyboardFocus(KeyboardFocusChangedEventArgs) OnLostKeyboardFocus(KeyboardFocusChangedEventArgs) OnLostKeyboardFocus(KeyboardFocusChangedEventArgs)

Invoked when an unhandled 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.

OnLostMouseCapture(MouseEventArgs) OnLostMouseCapture(MouseEventArgs) OnLostMouseCapture(MouseEventArgs) OnLostMouseCapture(MouseEventArgs)

Invoked when an unhandled 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.

OnLostStylusCapture(StylusEventArgs) OnLostStylusCapture(StylusEventArgs) OnLostStylusCapture(StylusEventArgs) OnLostStylusCapture(StylusEventArgs)

Invoked when an unhandled 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.

OnLostTouchCapture(TouchEventArgs) OnLostTouchCapture(TouchEventArgs) OnLostTouchCapture(TouchEventArgs) OnLostTouchCapture(TouchEventArgs)

Provides class handling for the LostTouchCapture routed event that occurs when this element loses a touch capture.

OnMouseDown(MouseButtonEventArgs) OnMouseDown(MouseButtonEventArgs) OnMouseDown(MouseButtonEventArgs) OnMouseDown(MouseButtonEventArgs)

Invoked when an unhandled 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.

OnMouseEnter(MouseEventArgs) OnMouseEnter(MouseEventArgs) OnMouseEnter(MouseEventArgs) OnMouseEnter(MouseEventArgs)

Invoked when an unhandled MouseEnter attached event is raised on this element. Implement this method to add class handling for this event.

OnMouseLeave(MouseEventArgs) OnMouseLeave(MouseEventArgs) OnMouseLeave(MouseEventArgs) OnMouseLeave(MouseEventArgs)

Invoked when an unhandled MouseLeave attached event is raised on this element. Implement this method to add class handling for this event.

OnMouseLeftButtonDown(MouseButtonEventArgs) OnMouseLeftButtonDown(MouseButtonEventArgs) OnMouseLeftButtonDown(MouseButtonEventArgs) OnMouseLeftButtonDown(MouseButtonEventArgs)

Invoked when an unhandled MouseLeftButtonDown routed event is raised on this element. Implement this method to add class handling for this event.

OnMouseLeftButtonUp(MouseButtonEventArgs) OnMouseLeftButtonUp(MouseButtonEventArgs) OnMouseLeftButtonUp(MouseButtonEventArgs) OnMouseLeftButtonUp(MouseButtonEventArgs)

Invoked 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.

OnMouseMove(MouseEventArgs) OnMouseMove(MouseEventArgs) OnMouseMove(MouseEventArgs) OnMouseMove(MouseEventArgs)

Invoked when an unhandled 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.

OnMouseRightButtonDown(MouseButtonEventArgs) OnMouseRightButtonDown(MouseButtonEventArgs) OnMouseRightButtonDown(MouseButtonEventArgs) OnMouseRightButtonDown(MouseButtonEventArgs)

Invoked 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.

OnMouseRightButtonUp(MouseButtonEventArgs) OnMouseRightButtonUp(MouseButtonEventArgs) OnMouseRightButtonUp(MouseButtonEventArgs) OnMouseRightButtonUp(MouseButtonEventArgs)

Invoked 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.

OnMouseUp(MouseButtonEventArgs) OnMouseUp(MouseButtonEventArgs) OnMouseUp(MouseButtonEventArgs) OnMouseUp(MouseButtonEventArgs)

Invoked when an unhandled 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.

OnMouseWheel(MouseWheelEventArgs) OnMouseWheel(MouseWheelEventArgs) OnMouseWheel(MouseWheelEventArgs) OnMouseWheel(MouseWheelEventArgs)

Invoked when an unhandled 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.

OnPreviewDragEnter(DragEventArgs) OnPreviewDragEnter(DragEventArgs) OnPreviewDragEnter(DragEventArgs) OnPreviewDragEnter(DragEventArgs)

Invoked when an unhandled 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.

OnPreviewDragLeave(DragEventArgs) OnPreviewDragLeave(DragEventArgs) OnPreviewDragLeave(DragEventArgs) OnPreviewDragLeave(DragEventArgs)

Invoked when an unhandled 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.

OnPreviewDragOver(DragEventArgs) OnPreviewDragOver(DragEventArgs) OnPreviewDragOver(DragEventArgs) OnPreviewDragOver(DragEventArgs)

Invoked when an unhandled 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.

OnPreviewDrop(DragEventArgs) OnPreviewDrop(DragEventArgs) OnPreviewDrop(DragEventArgs) OnPreviewDrop(DragEventArgs)

Invoked when an unhandled 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.

OnPreviewGiveFeedback(GiveFeedbackEventArgs) OnPreviewGiveFeedback(GiveFeedbackEventArgs) OnPreviewGiveFeedback(GiveFeedbackEventArgs) OnPreviewGiveFeedback(GiveFeedbackEventArgs)

Invoked when an unhandled 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.

OnPreviewGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnPreviewGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnPreviewGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnPreviewGotKeyboardFocus(KeyboardFocusChangedEventArgs)

Invoked when an unhandled 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.

OnPreviewKeyDown(KeyEventArgs) OnPreviewKeyDown(KeyEventArgs) OnPreviewKeyDown(KeyEventArgs) OnPreviewKeyDown(KeyEventArgs)

Invoked when an unhandled 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.

OnPreviewKeyUp(KeyEventArgs) OnPreviewKeyUp(KeyEventArgs) OnPreviewKeyUp(KeyEventArgs) OnPreviewKeyUp(KeyEventArgs)

Invoked when an unhandled 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.

OnPreviewLostKeyboardFocus(KeyboardFocusChangedEventArgs) OnPreviewLostKeyboardFocus(KeyboardFocusChangedEventArgs) OnPreviewLostKeyboardFocus(KeyboardFocusChangedEventArgs) OnPreviewLostKeyboardFocus(KeyboardFocusChangedEventArgs)

Invoked when an unhandled 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.

OnPreviewMouseDown(MouseButtonEventArgs) OnPreviewMouseDown(MouseButtonEventArgs) OnPreviewMouseDown(MouseButtonEventArgs) OnPreviewMouseDown(MouseButtonEventArgs)

Invoked when an unhandled 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.

OnPreviewMouseLeftButtonDown(MouseButtonEventArgs) OnPreviewMouseLeftButtonDown(MouseButtonEventArgs) OnPreviewMouseLeftButtonDown(MouseButtonEventArgs) OnPreviewMouseLeftButtonDown(MouseButtonEventArgs)

Invoked 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.

OnPreviewMouseLeftButtonUp(MouseButtonEventArgs) OnPreviewMouseLeftButtonUp(MouseButtonEventArgs) OnPreviewMouseLeftButtonUp(MouseButtonEventArgs) OnPreviewMouseLeftButtonUp(MouseButtonEventArgs)

Invoked 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.

OnPreviewMouseMove(MouseEventArgs) OnPreviewMouseMove(MouseEventArgs) OnPreviewMouseMove(MouseEventArgs) OnPreviewMouseMove(MouseEventArgs)

Invoked when an unhandled 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.

OnPreviewMouseRightButtonDown(MouseButtonEventArgs) OnPreviewMouseRightButtonDown(MouseButtonEventArgs) OnPreviewMouseRightButtonDown(MouseButtonEventArgs) OnPreviewMouseRightButtonDown(MouseButtonEventArgs)

Invoked 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.

OnPreviewMouseRightButtonUp(MouseButtonEventArgs) OnPreviewMouseRightButtonUp(MouseButtonEventArgs) OnPreviewMouseRightButtonUp(MouseButtonEventArgs) OnPreviewMouseRightButtonUp(MouseButtonEventArgs)

Invoked 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.

OnPreviewMouseUp(MouseButtonEventArgs) OnPreviewMouseUp(MouseButtonEventArgs) OnPreviewMouseUp(MouseButtonEventArgs) OnPreviewMouseUp(MouseButtonEventArgs)

Invoked when an unhandled 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.

OnPreviewMouseWheel(MouseWheelEventArgs) OnPreviewMouseWheel(MouseWheelEventArgs) OnPreviewMouseWheel(MouseWheelEventArgs) OnPreviewMouseWheel(MouseWheelEventArgs)

Invoked when an unhandled 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.

OnPreviewQueryContinueDrag(QueryContinueDragEventArgs) OnPreviewQueryContinueDrag(QueryContinueDragEventArgs) OnPreviewQueryContinueDrag(QueryContinueDragEventArgs) OnPreviewQueryContinueDrag(QueryContinueDragEventArgs)

Invoked when an unhandled 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.

OnPreviewStylusButtonDown(StylusButtonEventArgs) OnPreviewStylusButtonDown(StylusButtonEventArgs) OnPreviewStylusButtonDown(StylusButtonEventArgs) OnPreviewStylusButtonDown(StylusButtonEventArgs)

Invoked when an unhandled 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.

OnPreviewStylusButtonUp(StylusButtonEventArgs) OnPreviewStylusButtonUp(StylusButtonEventArgs) OnPreviewStylusButtonUp(StylusButtonEventArgs) OnPreviewStylusButtonUp(StylusButtonEventArgs)

Invoked when an unhandled 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.

OnPreviewStylusDown(StylusDownEventArgs) OnPreviewStylusDown(StylusDownEventArgs) OnPreviewStylusDown(StylusDownEventArgs) OnPreviewStylusDown(StylusDownEventArgs)

Invoked when an unhandled 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.

OnPreviewStylusInAirMove(StylusEventArgs) OnPreviewStylusInAirMove(StylusEventArgs) OnPreviewStylusInAirMove(StylusEventArgs) OnPreviewStylusInAirMove(StylusEventArgs)

Invoked when an unhandled 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.

OnPreviewStylusInRange(StylusEventArgs) OnPreviewStylusInRange(StylusEventArgs) OnPreviewStylusInRange(StylusEventArgs) OnPreviewStylusInRange(StylusEventArgs)

Invoked when an unhandled 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.

OnPreviewStylusMove(StylusEventArgs) OnPreviewStylusMove(StylusEventArgs) OnPreviewStylusMove(StylusEventArgs) OnPreviewStylusMove(StylusEventArgs)

Invoked when an unhandled 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.

OnPreviewStylusOutOfRange(StylusEventArgs) OnPreviewStylusOutOfRange(StylusEventArgs) OnPreviewStylusOutOfRange(StylusEventArgs) OnPreviewStylusOutOfRange(StylusEventArgs)

Invoked when an unhandled 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.

OnPreviewStylusSystemGesture(StylusSystemGestureEventArgs) OnPreviewStylusSystemGesture(StylusSystemGestureEventArgs) OnPreviewStylusSystemGesture(StylusSystemGestureEventArgs) OnPreviewStylusSystemGesture(StylusSystemGestureEventArgs)

Invoked when an unhandled 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.

OnPreviewStylusUp(StylusEventArgs) OnPreviewStylusUp(StylusEventArgs) OnPreviewStylusUp(StylusEventArgs) OnPreviewStylusUp(StylusEventArgs)

Invoked when an unhandled 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.

OnPreviewTextInput(TextCompositionEventArgs) OnPreviewTextInput(TextCompositionEventArgs) OnPreviewTextInput(TextCompositionEventArgs) OnPreviewTextInput(TextCompositionEventArgs)

Invoked when an unhandled 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.

OnPreviewTouchDown(TouchEventArgs) OnPreviewTouchDown(TouchEventArgs) OnPreviewTouchDown(TouchEventArgs) OnPreviewTouchDown(TouchEventArgs)

Provides class handling for the PreviewTouchDown routed event that occurs when a touch presses this element.

OnPreviewTouchMove(TouchEventArgs) OnPreviewTouchMove(TouchEventArgs) OnPreviewTouchMove(TouchEventArgs) OnPreviewTouchMove(TouchEventArgs)

Provides class handling for the PreviewTouchMove routed event that occurs when a touch moves while inside this element.

OnPreviewTouchUp(TouchEventArgs) OnPreviewTouchUp(TouchEventArgs) OnPreviewTouchUp(TouchEventArgs) OnPreviewTouchUp(TouchEventArgs)

Provides class handling for the PreviewTouchUp routed event that occurs when a touch is released inside this element.

OnPropertyChanged(DependencyPropertyChangedEventArgs) OnPropertyChanged(DependencyPropertyChangedEventArgs) OnPropertyChanged(DependencyPropertyChangedEventArgs) OnPropertyChanged(DependencyPropertyChangedEventArgs)

Invoked whenever the effective value of any dependency property on this DependencyObject has been updated. The specific dependency property that changed is reported in the event data.

(Inherited from DependencyObject)
OnQueryContinueDrag(QueryContinueDragEventArgs) OnQueryContinueDrag(QueryContinueDragEventArgs) OnQueryContinueDrag(QueryContinueDragEventArgs) OnQueryContinueDrag(QueryContinueDragEventArgs)

Invoked when an unhandled 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.

OnQueryCursor(QueryCursorEventArgs) OnQueryCursor(QueryCursorEventArgs) OnQueryCursor(QueryCursorEventArgs) OnQueryCursor(QueryCursorEventArgs)

Invoked when an unhandled 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.

OnStylusButtonDown(StylusButtonEventArgs) OnStylusButtonDown(StylusButtonEventArgs) OnStylusButtonDown(StylusButtonEventArgs) OnStylusButtonDown(StylusButtonEventArgs)

Invoked when an unhandled 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.

OnStylusButtonUp(StylusButtonEventArgs) OnStylusButtonUp(StylusButtonEventArgs) OnStylusButtonUp(StylusButtonEventArgs) OnStylusButtonUp(StylusButtonEventArgs)

Invoked when an unhandled 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.

OnStylusDown(StylusDownEventArgs) OnStylusDown(StylusDownEventArgs) OnStylusDown(StylusDownEventArgs) OnStylusDown(StylusDownEventArgs)

Invoked when an unhandled 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.

OnStylusEnter(StylusEventArgs) OnStylusEnter(StylusEventArgs) OnStylusEnter(StylusEventArgs) OnStylusEnter(StylusEventArgs)

Invoked when an unhandled StylusEnter attached event is raised by this element. Implement this method to add class handling for this event.

OnStylusInAirMove(StylusEventArgs) OnStylusInAirMove(StylusEventArgs) OnStylusInAirMove(StylusEventArgs) OnStylusInAirMove(StylusEventArgs)

Invoked when an unhandled 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.

OnStylusInRange(StylusEventArgs) OnStylusInRange(StylusEventArgs) OnStylusInRange(StylusEventArgs) OnStylusInRange(StylusEventArgs)

Invoked when an unhandled 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.

OnStylusLeave(StylusEventArgs) OnStylusLeave(StylusEventArgs) OnStylusLeave(StylusEventArgs) OnStylusLeave(StylusEventArgs)

Invoked when an unhandled StylusLeave attached event is raised by this element. Implement this method to add class handling for this event.

OnStylusMove(StylusEventArgs) OnStylusMove(StylusEventArgs) OnStylusMove(StylusEventArgs) OnStylusMove(StylusEventArgs)

Invoked when an unhandled 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.

OnStylusOutOfRange(StylusEventArgs) OnStylusOutOfRange(StylusEventArgs) OnStylusOutOfRange(StylusEventArgs) OnStylusOutOfRange(StylusEventArgs)

Invoked when an unhandled 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.

OnStylusSystemGesture(StylusSystemGestureEventArgs) OnStylusSystemGesture(StylusSystemGestureEventArgs) OnStylusSystemGesture(StylusSystemGestureEventArgs) OnStylusSystemGesture(StylusSystemGestureEventArgs)

Invoked when an unhandled 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.

OnStylusUp(StylusEventArgs) OnStylusUp(StylusEventArgs) OnStylusUp(StylusEventArgs) OnStylusUp(StylusEventArgs)

Invoked when an unhandled 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.

OnTextInput(TextCompositionEventArgs) OnTextInput(TextCompositionEventArgs) OnTextInput(TextCompositionEventArgs) OnTextInput(TextCompositionEventArgs)

Invoked when an unhandled 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.

OnTouchDown(TouchEventArgs) OnTouchDown(TouchEventArgs) OnTouchDown(TouchEventArgs) OnTouchDown(TouchEventArgs)

Provides class handling for the TouchDown routed event that occurs when a touch presses inside this element.

OnTouchEnter(TouchEventArgs) OnTouchEnter(TouchEventArgs) OnTouchEnter(TouchEventArgs) OnTouchEnter(TouchEventArgs)

Provides class handling for the TouchEnter routed event that occurs when a touch moves from outside to inside the bounds of this element.

OnTouchLeave(TouchEventArgs) OnTouchLeave(TouchEventArgs) OnTouchLeave(TouchEventArgs) OnTouchLeave(TouchEventArgs)

Provides class handling for the TouchLeave routed event that occurs when a touch moves from inside to outside the bounds of this element.

OnTouchMove(TouchEventArgs) OnTouchMove(TouchEventArgs) OnTouchMove(TouchEventArgs) OnTouchMove(TouchEventArgs)

Provides class handling for the TouchMove routed event that occurs when a touch moves while inside this element.

OnTouchUp(TouchEventArgs) OnTouchUp(TouchEventArgs) OnTouchUp(TouchEventArgs) OnTouchUp(TouchEventArgs)

Provides class handling for the TouchUp routed event that occurs when a touch is released inside this element.

OnUpdateModel() OnUpdateModel() OnUpdateModel() OnUpdateModel()

Participates in rendering operations when overridden in a derived class.

OnVisualChildrenChanged(DependencyObject, DependencyObject) OnVisualChildrenChanged(DependencyObject, DependencyObject) OnVisualChildrenChanged(DependencyObject, DependencyObject) OnVisualChildrenChanged(DependencyObject, DependencyObject)

Called when the Visual3DCollection of the visual object is modified.

(Inherited from Visual3D)
OnVisualParentChanged(DependencyObject) OnVisualParentChanged(DependencyObject) OnVisualParentChanged(DependencyObject) OnVisualParentChanged(DependencyObject)

Invoked when the parent element of this UIElement3D reports a change to its underlying visual parent.

PredictFocus(FocusNavigationDirection) PredictFocus(FocusNavigationDirection) PredictFocus(FocusNavigationDirection) PredictFocus(FocusNavigationDirection)

When 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.

RaiseEvent(RoutedEventArgs) RaiseEvent(RoutedEventArgs) RaiseEvent(RoutedEventArgs) RaiseEvent(RoutedEventArgs)

Raises 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).

ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty)

Returns the local value of a dependency property, if it exists.

(Inherited from DependencyObject)
ReleaseAllTouchCaptures() ReleaseAllTouchCaptures() ReleaseAllTouchCaptures() ReleaseAllTouchCaptures()

Releases all captured touch devices from this element.

ReleaseMouseCapture() ReleaseMouseCapture() ReleaseMouseCapture() ReleaseMouseCapture()

Releases the mouse capture, if this element held the capture.

ReleaseStylusCapture() ReleaseStylusCapture() ReleaseStylusCapture() ReleaseStylusCapture()

Releases the stylus device capture, if this element held the capture.

ReleaseTouchCapture(TouchDevice) ReleaseTouchCapture(TouchDevice) ReleaseTouchCapture(TouchDevice) ReleaseTouchCapture(TouchDevice)

Attempts to release the specified touch device from this element.

RemoveHandler(RoutedEvent, Delegate) RemoveHandler(RoutedEvent, Delegate) RemoveHandler(RoutedEvent, Delegate) RemoveHandler(RoutedEvent, Delegate)

Removes the specified routed event handler from this element.

RemoveVisual3DChild(Visual3D) RemoveVisual3DChild(Visual3D) RemoveVisual3DChild(Visual3D) RemoveVisual3DChild(Visual3D)

Removes the parent-child relationship between two 3-D visuals.

(Inherited from Visual3D)
SetCurrentValue(DependencyProperty, Object) SetCurrentValue(DependencyProperty, Object) SetCurrentValue(DependencyProperty, Object) SetCurrentValue(DependencyProperty, Object)

Sets the value of a dependency property without changing its value source.

(Inherited from DependencyObject)
SetValue(DependencyProperty, Object) SetValue(DependencyProperty, Object) SetValue(DependencyProperty, Object) SetValue(DependencyProperty, Object)

Sets the local value of a dependency property, specified by its dependency property identifier.

(Inherited from DependencyObject)
SetValue(DependencyPropertyKey, Object) SetValue(DependencyPropertyKey, Object) SetValue(DependencyPropertyKey, Object) SetValue(DependencyPropertyKey, Object)

Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property.

(Inherited from DependencyObject)
ShouldSerializeCommandBindings() ShouldSerializeCommandBindings() ShouldSerializeCommandBindings() ShouldSerializeCommandBindings()

Returns whether serialization processes should serialize the contents of the CommandBindings property on instances of this class.

ShouldSerializeInputBindings() ShouldSerializeInputBindings() ShouldSerializeInputBindings() ShouldSerializeInputBindings()

Returns whether serialization processes should serialize the contents of the InputBindings property on instances of this class.

ShouldSerializeProperty(DependencyProperty) ShouldSerializeProperty(DependencyProperty) ShouldSerializeProperty(DependencyProperty) ShouldSerializeProperty(DependencyProperty)

Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property.

(Inherited from DependencyObject)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
TransformToAncestor(Visual) TransformToAncestor(Visual) TransformToAncestor(Visual) TransformToAncestor(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)
TransformToAncestor(Visual3D) TransformToAncestor(Visual3D) TransformToAncestor(Visual3D) TransformToAncestor(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)
TransformToDescendant(Visual3D) TransformToDescendant(Visual3D) TransformToDescendant(Visual3D) TransformToDescendant(Visual3D)

Returns a transform that can be used to transform coordinates from this Visual3D object to the specified Visual3D descent object.

(Inherited from Visual3D)
VerifyAccess() VerifyAccess() VerifyAccess() VerifyAccess()

Enforces that the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)

Events

DragEnter DragEnter DragEnter DragEnter

Occurs when the input system reports an underlying drag event with this element as the drag target.

DragLeave DragLeave DragLeave DragLeave

Occurs when the input system reports an underlying drag event with this element as the drag origin.

DragOver DragOver DragOver DragOver

Occurs when the input system reports an underlying drag event with this element as the potential drop target.

Drop Drop Drop Drop

Occurs when the input system reports an underlying drop event with this element as the drop target.

FocusableChanged FocusableChanged FocusableChanged FocusableChanged

Occurs when the value of the Focusable property changes.

GiveFeedback GiveFeedback GiveFeedback GiveFeedback

Occurs when the input system reports an underlying drag-and-drop event that involves this element.

GotFocus GotFocus GotFocus GotFocus

Occurs when this element gets logical focus.

GotKeyboardFocus GotKeyboardFocus GotKeyboardFocus GotKeyboardFocus

Occurs when the keyboard is focused on this element.

GotMouseCapture GotMouseCapture GotMouseCapture GotMouseCapture

Occurs when this element captures the mouse.

GotStylusCapture GotStylusCapture GotStylusCapture GotStylusCapture

Occurs when this element captures the stylus.

GotTouchCapture GotTouchCapture GotTouchCapture GotTouchCapture

Occurs when a touch is captured to this element.

IsEnabledChanged IsEnabledChanged IsEnabledChanged IsEnabledChanged

Occurs when the value of the IsEnabled property on this element changes.

IsHitTestVisibleChanged IsHitTestVisibleChanged IsHitTestVisibleChanged IsHitTestVisibleChanged

Occurs when the value of the IsHitTestVisible dependency property changes on this element.

IsKeyboardFocusedChanged IsKeyboardFocusedChanged IsKeyboardFocusedChanged IsKeyboardFocusedChanged

Occurs when the value of the IsKeyboardFocused property changes on this element.

IsKeyboardFocusWithinChanged IsKeyboardFocusWithinChanged IsKeyboardFocusWithinChanged IsKeyboardFocusWithinChanged

Occurs when the value of the IsKeyboardFocusWithin property changes on this element.

IsMouseCapturedChanged IsMouseCapturedChanged IsMouseCapturedChanged IsMouseCapturedChanged

Occurs when the value of the IsMouseCaptured property changes on this element.

IsMouseCaptureWithinChanged IsMouseCaptureWithinChanged IsMouseCaptureWithinChanged IsMouseCaptureWithinChanged

Occurs when the value of the IsMouseCaptureWithin property changes on this element.

IsMouseDirectlyOverChanged IsMouseDirectlyOverChanged IsMouseDirectlyOverChanged IsMouseDirectlyOverChanged

Occurs when the value of the IsMouseDirectlyOver property changes on this element.

IsStylusCapturedChanged IsStylusCapturedChanged IsStylusCapturedChanged IsStylusCapturedChanged

Occurs when the value of the IsStylusCaptured property changes on this element.

IsStylusCaptureWithinChanged IsStylusCaptureWithinChanged IsStylusCaptureWithinChanged IsStylusCaptureWithinChanged

Occurs when the value of the IsStylusCaptureWithin property changes on this element.

IsStylusDirectlyOverChanged IsStylusDirectlyOverChanged IsStylusDirectlyOverChanged IsStylusDirectlyOverChanged

Occurs when the value of the IsStylusDirectlyOver property changes on this element.

IsVisibleChanged IsVisibleChanged IsVisibleChanged IsVisibleChanged

Occurs when the value of the IsVisible property changes on this element.

KeyDown KeyDown KeyDown KeyDown

Occurs when a key is pressed while the keyboard is focused on this element.

KeyUp KeyUp KeyUp KeyUp

Occurs when a key is released while the keyboard is focused on this element.

LostFocus LostFocus LostFocus LostFocus

Occurs when this element loses logical focus.

LostKeyboardFocus LostKeyboardFocus LostKeyboardFocus LostKeyboardFocus

Occurs when the keyboard is no longer focused on this element.

LostMouseCapture LostMouseCapture LostMouseCapture LostMouseCapture

Occurs when this element loses mouse capture.

LostStylusCapture LostStylusCapture LostStylusCapture LostStylusCapture

Occurs when this element loses stylus capture.

LostTouchCapture LostTouchCapture LostTouchCapture LostTouchCapture

Occurs when this element loses a touch capture.

MouseDown MouseDown MouseDown MouseDown

Occurs when any mouse button is pressed while the pointer is over this element.

MouseEnter MouseEnter MouseEnter MouseEnter

Occurs when the mouse pointer enters the bounds of this element.

MouseLeave MouseLeave MouseLeave MouseLeave

Occurs when the mouse pointer leaves the bounds of this element.

MouseLeftButtonDown MouseLeftButtonDown MouseLeftButtonDown MouseLeftButtonDown

Occurs when the left mouse button is pressed while the mouse pointer is over this element.

MouseLeftButtonUp MouseLeftButtonUp MouseLeftButtonUp MouseLeftButtonUp

Occurs when the left mouse button is released while the mouse pointer is over this element.

MouseMove MouseMove MouseMove MouseMove

Occurs when the mouse pointer moves while over this element.

MouseRightButtonDown MouseRightButtonDown MouseRightButtonDown MouseRightButtonDown

Occurs when the right mouse button is pressed while the mouse pointer is over this element.

MouseRightButtonUp MouseRightButtonUp MouseRightButtonUp MouseRightButtonUp

Occurs when the right mouse button is released while the mouse pointer is over this element.

MouseUp MouseUp MouseUp MouseUp

Occurs when any mouse button is released over this element.

MouseWheel MouseWheel MouseWheel MouseWheel

Occurs when the user rotates the mouse wheel while the mouse pointer is over this element.

PreviewDragEnter PreviewDragEnter PreviewDragEnter PreviewDragEnter

Occurs when the input system reports an underlying drag event with this element as the drag target.

PreviewDragLeave PreviewDragLeave PreviewDragLeave PreviewDragLeave

Occurs when the input system reports an underlying drag event with this element as the drag origin.

PreviewDragOver PreviewDragOver PreviewDragOver PreviewDragOver

Occurs when the input system reports an underlying drag event with this element as the potential drop target.

PreviewDrop PreviewDrop PreviewDrop PreviewDrop

Occurs when the input system reports an underlying drop event with this element as the drop target.

PreviewGiveFeedback PreviewGiveFeedback PreviewGiveFeedback PreviewGiveFeedback

Occurs when a drag-and-drop operation is started.

PreviewGotKeyboardFocus PreviewGotKeyboardFocus PreviewGotKeyboardFocus PreviewGotKeyboardFocus

Occurs when the keyboard is focused on this element.

PreviewKeyDown PreviewKeyDown PreviewKeyDown PreviewKeyDown

Occurs when a key is pressed while the keyboard is focused on this element.

PreviewKeyUp PreviewKeyUp PreviewKeyUp PreviewKeyUp

Occurs when a key is released while the keyboard is focused on this element.

PreviewLostKeyboardFocus PreviewLostKeyboardFocus PreviewLostKeyboardFocus PreviewLostKeyboardFocus

Occurs when the keyboard is no longer focused on this element.

PreviewMouseDown PreviewMouseDown PreviewMouseDown PreviewMouseDown

Occurs when any mouse button is pressed while the pointer is over this element.

PreviewMouseLeftButtonDown PreviewMouseLeftButtonDown PreviewMouseLeftButtonDown PreviewMouseLeftButtonDown

Occurs when the left mouse button is pressed while the mouse pointer is over this element.

PreviewMouseLeftButtonUp PreviewMouseLeftButtonUp PreviewMouseLeftButtonUp PreviewMouseLeftButtonUp

Occurs when the left mouse button is released while the mouse pointer is over this element.

PreviewMouseMove PreviewMouseMove PreviewMouseMove PreviewMouseMove

Occurs when the mouse pointer moves while the mouse pointer is over this element.

PreviewMouseRightButtonDown PreviewMouseRightButtonDown PreviewMouseRightButtonDown PreviewMouseRightButtonDown

Occurs when the right mouse button is pressed while the mouse pointer is over this element.

PreviewMouseRightButtonUp PreviewMouseRightButtonUp PreviewMouseRightButtonUp PreviewMouseRightButtonUp

Occurs when the right mouse button is released while the mouse pointer is over this element.

PreviewMouseUp PreviewMouseUp PreviewMouseUp PreviewMouseUp

Occurs when any mouse button is released while the mouse pointer is over this element.

PreviewMouseWheel PreviewMouseWheel PreviewMouseWheel PreviewMouseWheel

Occurs when the user rotates the mouse wheel while the mouse pointer is over this element.

PreviewQueryContinueDrag PreviewQueryContinueDrag PreviewQueryContinueDrag PreviewQueryContinueDrag

Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation.

PreviewStylusButtonDown PreviewStylusButtonDown PreviewStylusButtonDown PreviewStylusButtonDown

Occurs when the stylus button is pressed while the pointer is over this element.

PreviewStylusButtonUp PreviewStylusButtonUp PreviewStylusButtonUp PreviewStylusButtonUp

Occurs when the stylus button is released while the pointer is over this element.

PreviewStylusDown PreviewStylusDown PreviewStylusDown PreviewStylusDown

Occurs when the stylus touches the digitizer while it is over this element.

PreviewStylusInAirMove PreviewStylusInAirMove PreviewStylusInAirMove PreviewStylusInAirMove

Occurs when the stylus moves over an element without actually touching the digitizer.

PreviewStylusInRange PreviewStylusInRange PreviewStylusInRange PreviewStylusInRange

Occurs when the stylus is close enough to the digitizer to be detected, while over this element.

PreviewStylusMove PreviewStylusMove PreviewStylusMove PreviewStylusMove

Occurs 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.

PreviewStylusOutOfRange PreviewStylusOutOfRange PreviewStylusOutOfRange PreviewStylusOutOfRange

Occurs when the stylus is too far from the digitizer to be detected.

PreviewStylusSystemGesture PreviewStylusSystemGesture PreviewStylusSystemGesture PreviewStylusSystemGesture

Occurs when a user performs one of several stylus gestures.

PreviewStylusUp PreviewStylusUp PreviewStylusUp PreviewStylusUp

Occurs when the user raises the stylus off the digitizer while the stylus is over this element.

PreviewTextInput PreviewTextInput PreviewTextInput PreviewTextInput

Occurs when this element gets text in a device-independent manner.

PreviewTouchDown PreviewTouchDown PreviewTouchDown PreviewTouchDown

Occurs when a finger touches the screen while the finger is over this element.

PreviewTouchMove PreviewTouchMove PreviewTouchMove PreviewTouchMove

Occurs when a finger moves on the screen while the finger is over this element.

PreviewTouchUp PreviewTouchUp PreviewTouchUp PreviewTouchUp

Occurs when a finger is raised off of the screen while the finger is over this element.

QueryContinueDrag QueryContinueDrag QueryContinueDrag QueryContinueDrag

Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation.

QueryCursor QueryCursor QueryCursor QueryCursor

Occurs 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.

StylusButtonDown StylusButtonDown StylusButtonDown StylusButtonDown

Occurs when the stylus button is pressed while the pointer is over this element.

StylusButtonUp StylusButtonUp StylusButtonUp StylusButtonUp

Occurs when the stylus button is released while the pointer is over this element.

StylusDown StylusDown StylusDown StylusDown

Occurs when the stylus touches the digitizer while the stylus is over this element.

StylusEnter StylusEnter StylusEnter StylusEnter

Occurs when the stylus enters the bounds of this element.

StylusInAirMove StylusInAirMove StylusInAirMove StylusInAirMove

Occurs when the stylus moves over an element without actually touching the digitizer.

StylusInRange StylusInRange StylusInRange StylusInRange

Occurs when the stylus is close enough to the digitizer to be detected, while over this element.

StylusLeave StylusLeave StylusLeave StylusLeave

Occurs when the stylus leaves the bounds of the element.

StylusMove StylusMove StylusMove StylusMove

Occurs when the stylus moves over this element. The stylus must move while on the digitizer to raise this event. Otherwise, StylusInAirMove is raised instead.

StylusOutOfRange StylusOutOfRange StylusOutOfRange StylusOutOfRange

Occurs when the stylus is too far from the digitizer to be detected, while over this element.

StylusSystemGesture StylusSystemGesture StylusSystemGesture StylusSystemGesture

Occurs when a user performs one of several stylus gestures.

StylusUp StylusUp StylusUp StylusUp

Occurs when the user raises the stylus off the digitizer while it is over this element.

TextInput TextInput TextInput TextInput

Occurs when this element gets text in a device-independent manner.

TouchDown TouchDown TouchDown TouchDown

Occurs when a finger touches the screen while the finger is over this element.

TouchEnter TouchEnter TouchEnter TouchEnter

Occurs when a touch moves from outside to inside the bounds of this element.

TouchLeave TouchLeave TouchLeave TouchLeave

Occurs when a touch moves from inside to outside the bounds of this element.

TouchMove TouchMove TouchMove TouchMove

Occurs when a finger moves on the screen while the finger is over this element.

TouchUp TouchUp TouchUp TouchUp

Occurs when a finger is raised off of the screen while the finger is over this element.

Applies to