Stylus.StylusSystemGesture Evento anexado
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Ocorre quando o usuário faz um gesto do sistema com essa caneta.
see AddStylusSystemGestureHandler, and RemoveStylusSystemGestureHandler
see AddStylusSystemGestureHandler, and RemoveStylusSystemGestureHandler
see AddStylusSystemGestureHandler, and RemoveStylusSystemGestureHandler
O exemplo a seguir demonstra como determinar o gesto do sistema que gerou o StylusSystemGesture evento. Este exemplo pressupõe que há um TextBox chamado textBox1
e que o StylusSystemGesture evento está conectado a um manipulador de eventos.
private void textbox1_StylusSystemGesture(object sender, StylusSystemGestureEventArgs e)
{
textbox1.AppendText(e.SystemGesture.ToString() + "\n");
}
Private Sub textbox1_StylusSystemGesture(ByVal sender As Object, _
ByVal e As StylusSystemGestureEventArgs) Handles textbox1.StylusSystemGesture
textbox1.AppendText(e.SystemGesture.ToString() & vbLf)
End Sub
Esse é um evento anexado. O WPF implementa eventos anexados como eventos roteados. Um evento anexado é, fundamentalmente, um conceito de linguagem XAML usado para referenciar eventos que são tratados em objetos que não definem eventos. O WPF expande ainda mais os recursos de um evento anexado, permitindo que ele percorra uma rota. Os eventos anexados não têm uma sintaxe de tratamento direto no código; para anexar manipuladores para um evento roteado no código, use um método Add*Handler designado. Para obter detalhes, consulte Visão geral de eventos anexados.
Campo Identificador | StylusSystemGestureEvent |
Estratégia de roteamento | Borbulhando |
Delegar | StylusSystemGestureEventHandler |
Produto | Versões |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
Comentários do .NET
O .NET é um projeto código aberto. Selecione um link para fornecer comentários: