StylusPlugIn.Element Propriedade

Definição

Obtém o UIElement ao qual o StylusPlugIn está anexo.

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 da propriedade

UIElement

O UIElement ao qual a origem StylusPlugIn está anexada.

Exemplos

O exemplo a seguir mostra o Element StylusPlugIn momento em que ele é adicionado à StylusPlugIns coleção.

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

    MyBase.OnAdded()

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

End Sub

Aplica-se a