StylusPlugIn.Element Propriété

Définition

Obtient le UIElement auquel le StylusPlugIn est attaché.

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

Valeur de propriété

UIElement

Le UIElement auquel le StylusPlugIn est lié.

Exemples

L’exemple suivant montre le Element StylusPlugIn moment où il est ajouté à la StylusPlugIns collection.

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

    MyBase.OnAdded()

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

End Sub

S’applique à