StylusPlugIn.Element Propiedad

Definición

Obtiene el objeto UIElement al que se adjunta StylusPlugIn.

public:
 property System::Windows::UIElement ^ Element { System::Windows::UIElement ^ get(); };
public System.Windows.UIElement Element { get; }
member this.Element : System.Windows.UIElement
Public ReadOnly Property Element As UIElement

Valor de propiedad

UIElement

El objeto UIElement al que se adjunta StylusPlugIn.

Ejemplos

En el ejemplo siguiente se muestra el Element de cuando StylusPlugIn se agrega a la StylusPlugIns colección.

protected override void OnAdded()
{
    base.OnAdded();
     
    MessageBox.Show(this.Element.ToString());
}
Protected Overrides Sub OnAdded()

    MyBase.OnAdded()

    MessageBox.Show(Me.Element.ToString())

End Sub

Se aplica a