StylusButton.Guid Propriedade

Definição

Obtém o Guid botão que representa a caneta.

public:
 property Guid Guid { Guid get(); };
public Guid Guid { get; }
member this.Guid : Guid
Public ReadOnly Property Guid As Guid

Valor da propriedade

A Guid propriedade que representa o botão stylus.

Exemplos

A seguir, verifica se o usuário pressionou o botão de barril em uma caneta.

void OnStylusButtonDown(object sender, StylusButtonEventArgs e)
{
    StylusButton myStylusButton = e.StylusButton;

    if (myStylusButton.Guid == StylusPointProperties.BarrelButton.Id)
    {
        // the barrel button on the stylus has been pressed
    }
}
Private Sub OnStylusButtonDown(ByVal sender As Object, ByVal e As StylusButtonEventArgs)

    Dim myStylusButton As StylusButton = e.StylusButton
    If myStylusButton.Guid = StylusPointProperties.BarrelButton.Id Then
        ' the barrel button on the stylus has been pressed
    End If
End Sub

Comentários

O valor dessa propriedade tem a garantia de ser exclusivo entre os botões de caneta no sistema.

Aplica-se a