Stylus Clase

Definición

Proporciona acceso a información general sobre un lápiz de Tablet PC.

public ref class Stylus abstract sealed
public static class Stylus
type Stylus = class
Public Class Stylus
Herencia
Stylus

Ejemplos

En el ejemplo siguiente se muestra cómo registrar las coordenadas del lápiz óptico, incluso si el lápiz óptico deja los límites de un TextBoxobjeto . En este ejemplo se supone que hay un TextBox denominado textBox1, y que los StylusDowneventos , StylusUpy StylusMove están conectados a controladores de eventos.

void textbox1_StylusDown(object sender, StylusDownEventArgs e)
{
    Stylus.Capture(textbox1);
}

void textbox1_StylusMove(object sender, StylusEventArgs e)
{
    Point pos = e.GetPosition(textbox1);
    textbox1.AppendText("X: " + pos.X + " Y: " + pos.Y + "\n");
}

void textbox1_StylusUp(object sender, StylusEventArgs e)
{
    Stylus.Capture(textbox1, CaptureMode.None);
}
Private Sub textbox1_StylusDown(ByVal sender As Object, ByVal e As System.Windows.Input.StylusDownEventArgs) _
    Handles textbox1.StylusDown

    Stylus.Capture(textbox1)

End Sub


Private Sub textbox1_StylusMove(ByVal sender As Object, ByVal e As StylusEventArgs) _
    Handles textbox1.StylusMove

    Dim pos As Point = e.GetPosition(textbox1)
    textbox1.AppendText("X: " & pos.X.ToString() & " Y: " & pos.Y.ToString() & vbLf)

End Sub


Private Sub textbox1_StylusUp(ByVal sender As Object, ByVal e As StylusEventArgs) _
    Handles textbox1.StylusUp

    Stylus.Capture(textbox1, CaptureMode.None)

End Sub

Campos

GotStylusCaptureEvent

Identifica el evento adjunto GotStylusCapture.

IsFlicksEnabledProperty

Identifica la propiedad adjunta IsFlicksEnabled.

IsPressAndHoldEnabledProperty

Identifica la propiedad adjunta IsPressAndHoldEnabled.

IsTapFeedbackEnabledProperty

Identifica la propiedad adjunta IsTapFeedbackEnabled.

IsTouchFeedbackEnabledProperty

Identifica la propiedad adjunta IsTouchFeedbackEnabled.

LostStylusCaptureEvent

Identifica el evento adjunto LostStylusCapture.

PreviewStylusButtonDownEvent

Identifica el evento adjunto PreviewStylusButtonDown.

PreviewStylusButtonUpEvent

Identifica el evento adjunto PreviewStylusButtonUp.

PreviewStylusDownEvent

Identifica el evento adjunto PreviewStylusDown.

PreviewStylusInAirMoveEvent

Identifica el evento adjunto PreviewStylusInAirMove.

PreviewStylusInRangeEvent

Identifica el evento adjunto PreviewStylusInRange.

PreviewStylusMoveEvent

Identifica el evento adjunto PreviewStylusMove.

PreviewStylusOutOfRangeEvent

Identifica el evento adjunto PreviewStylusOutOfRange.

PreviewStylusSystemGestureEvent

Identifica el evento adjunto PreviewStylusSystemGesture.

PreviewStylusUpEvent

Identifica el evento adjunto PreviewStylusUp.

StylusButtonDownEvent

Identifica el evento adjunto StylusButtonDown.

StylusButtonUpEvent

Identifica el evento adjunto StylusButtonUp.

StylusDownEvent

Identifica el evento adjunto StylusDown.

StylusEnterEvent

Identifica el evento adjunto StylusEnter.

StylusInAirMoveEvent

Identifica el evento adjunto StylusInAirMove.

StylusInRangeEvent

Identifica el evento adjunto StylusInRange.

StylusLeaveEvent

Identifica el evento adjunto StylusLeave.

StylusMoveEvent

Identifica el evento adjunto StylusMove.

StylusOutOfRangeEvent

Identifica el evento adjunto StylusOutOfRange.

StylusSystemGestureEvent

Identifica el evento adjunto StylusSystemGesture.

StylusUpEvent

Identifica el evento adjunto StylusUp.

Propiedades

Captured

Obtiene el elemento al que está enlazado el lápiz óptico.

CurrentStylusDevice

Obtiene el lápiz óptico que representa el lápiz óptico que se utiliza actualmente.

DirectlyOver

Obtiene el elemento que está directamente debajo del lápiz óptico.

Propiedades adjuntas

IsFlicksEnabled

Obtiene o establece un valor que indica si están habilitados los gestos.

IsPressAndHoldEnabled

Obtiene o establece un valor que indica si está habilitado el modo Mantener presionado.

IsTapFeedbackEnabled

Obtiene o establece un valor que indica si está habilitada la respuesta a punteo.

IsTouchFeedbackEnabled

Obtiene o establece un valor que indica si está habilitada la respuesta de entrada táctil.

Métodos

AddGotStylusCaptureHandler(DependencyObject, StylusEventHandler)

Agrega un controlador para el evento adjunto GotStylusCapture.

AddLostStylusCaptureHandler(DependencyObject, StylusEventHandler)

Agrega un controlador para el evento adjunto LostStylusCapture.

AddPreviewStylusButtonDownHandler(DependencyObject, StylusButtonEventHandler)

Agrega un controlador para el evento adjunto PreviewStylusButtonDown.

AddPreviewStylusButtonUpHandler(DependencyObject, StylusButtonEventHandler)

Agrega un controlador para el evento adjunto PreviewStylusButtonUp.

AddPreviewStylusDownHandler(DependencyObject, StylusDownEventHandler)

Agrega un controlador para el evento adjunto PreviewStylusDown.

AddPreviewStylusInAirMoveHandler(DependencyObject, StylusEventHandler)

Agrega un controlador para el evento adjunto PreviewStylusInAirMove.

AddPreviewStylusInRangeHandler(DependencyObject, StylusEventHandler)

Agrega un controlador para el evento adjunto PreviewStylusInRange.

AddPreviewStylusMoveHandler(DependencyObject, StylusEventHandler)

Agrega un controlador para el evento adjunto PreviewStylusMove.

AddPreviewStylusOutOfRangeHandler(DependencyObject, StylusEventHandler)

Agrega un controlador para el evento adjunto PreviewStylusOutOfRange.

AddPreviewStylusSystemGestureHandler(DependencyObject, StylusSystemGestureEventHandler)

Agrega un controlador para el evento adjunto PreviewStylusSystemGesture.

AddPreviewStylusUpHandler(DependencyObject, StylusEventHandler)

Agrega un controlador para el evento adjunto PreviewStylusUp.

AddStylusButtonDownHandler(DependencyObject, StylusButtonEventHandler)

Agrega un controlador para el evento adjunto StylusButtonDown.

AddStylusButtonUpHandler(DependencyObject, StylusButtonEventHandler)

Agrega un controlador para el evento adjunto StylusButtonUp.

AddStylusDownHandler(DependencyObject, StylusDownEventHandler)

Agrega un controlador para el evento adjunto StylusDown.

AddStylusEnterHandler(DependencyObject, StylusEventHandler)

Agrega un controlador para el evento adjunto StylusEnter.

AddStylusInAirMoveHandler(DependencyObject, StylusEventHandler)

Agrega un controlador para el evento adjunto StylusInAirMove.

AddStylusInRangeHandler(DependencyObject, StylusEventHandler)

Agrega un controlador para el evento adjunto StylusInRange.

AddStylusLeaveHandler(DependencyObject, StylusEventHandler)

Agrega un controlador para el evento adjunto StylusLeave.

AddStylusMoveHandler(DependencyObject, StylusEventHandler)

Agrega un controlador para el evento adjunto StylusMove.

AddStylusOutOfRangeHandler(DependencyObject, StylusEventHandler)

Agrega un controlador para el evento adjunto StylusOutOfRange.

AddStylusSystemGestureHandler(DependencyObject, StylusSystemGestureEventHandler)

Agrega un controlador para el evento adjunto StylusSystemGesture.

AddStylusUpHandler(DependencyObject, StylusEventHandler)

Agrega un controlador para el evento adjunto StylusUp.

Capture(IInputElement)

Captura el lápiz óptico en el elemento especificado.

Capture(IInputElement, CaptureMode)

Captura el lápiz óptico en el elemento especificado.

GetIsFlicksEnabled(DependencyObject)

Obtiene el valor de la propiedad adjunta IsFlicksEnabled en el elemento especificado.

GetIsPressAndHoldEnabled(DependencyObject)

Obtiene el valor de la propiedad adjunta IsPressAndHoldEnabled en el elemento especificado.

GetIsTapFeedbackEnabled(DependencyObject)

Obtiene el valor de la propiedad adjunta IsTapFeedbackEnabled en el elemento especificado.

GetIsTouchFeedbackEnabled(DependencyObject)

Obtiene el valor de la propiedad adjunta IsTouchFeedbackEnabled en el elemento especificado.

RemoveGotStylusCaptureHandler(DependencyObject, StylusEventHandler)

Quita un controlador del evento adjunto GotStylusCapture.

RemoveLostStylusCaptureHandler(DependencyObject, StylusEventHandler)

Quita un controlador del evento adjunto LostStylusCapture.

RemovePreviewStylusButtonDownHandler(DependencyObject, StylusButtonEventHandler)

Quita un controlador del evento adjunto PreviewStylusButtonDown.

RemovePreviewStylusButtonUpHandler(DependencyObject, StylusButtonEventHandler)

Quita un controlador del evento adjunto PreviewStylusButtonUp.

RemovePreviewStylusDownHandler(DependencyObject, StylusDownEventHandler)

Quita un controlador del evento adjunto PreviewStylusDown.

RemovePreviewStylusInAirMoveHandler(DependencyObject, StylusEventHandler)

Quita un controlador del evento adjunto PreviewStylusInAirMove.

RemovePreviewStylusInRangeHandler(DependencyObject, StylusEventHandler)

Quita un controlador del evento adjunto PreviewStylusInRange.

RemovePreviewStylusMoveHandler(DependencyObject, StylusEventHandler)

Quita un controlador del evento adjunto PreviewStylusMove.

RemovePreviewStylusOutOfRangeHandler(DependencyObject, StylusEventHandler)

Quita un controlador del evento adjunto PreviewStylusOutOfRange.

RemovePreviewStylusSystemGestureHandler(DependencyObject, StylusSystemGestureEventHandler)

Quita un controlador del evento adjunto PreviewStylusSystemGesture.

RemovePreviewStylusUpHandler(DependencyObject, StylusEventHandler)

Quita un controlador del evento adjunto PreviewStylusUp.

RemoveStylusButtonDownHandler(DependencyObject, StylusButtonEventHandler)

Quita un controlador del evento adjunto StylusButtonDown.

RemoveStylusButtonUpHandler(DependencyObject, StylusButtonEventHandler)

Quita un controlador del evento adjunto StylusButtonUp.

RemoveStylusDownHandler(DependencyObject, StylusDownEventHandler)

Quita un controlador del evento adjunto StylusDown.

RemoveStylusEnterHandler(DependencyObject, StylusEventHandler)

Quita un controlador del evento adjunto StylusEnter.

RemoveStylusInAirMoveHandler(DependencyObject, StylusEventHandler)

Quita un controlador del evento adjunto StylusInAirMove.

RemoveStylusInRangeHandler(DependencyObject, StylusEventHandler)

Quita un controlador del evento adjunto StylusInRange.

RemoveStylusLeaveHandler(DependencyObject, StylusEventHandler)

Quita un controlador del evento adjunto StylusLeave.

RemoveStylusMoveHandler(DependencyObject, StylusEventHandler)

Quita un controlador del evento adjunto StylusMove.

RemoveStylusOutOfRangeHandler(DependencyObject, StylusEventHandler)

Quita un controlador del evento adjunto StylusOutOfRange.

RemoveStylusSystemGestureHandler(DependencyObject, StylusSystemGestureEventHandler)

Quita un controlador del evento adjunto StylusSystemGesture.

RemoveStylusUpHandler(DependencyObject, StylusEventHandler)

Quita un controlador del evento adjunto StylusUp.

SetIsFlicksEnabled(DependencyObject, Boolean)

Obtiene el valor de la propiedad adjunta IsFlicksEnabled en el elemento especificado.

SetIsPressAndHoldEnabled(DependencyObject, Boolean)

Establece el valor de la propiedad adjunta IsPressAndHoldEnabled en el elemento especificado.

SetIsTapFeedbackEnabled(DependencyObject, Boolean)

Establece el valor de la propiedad adjunta IsTapFeedbackEnabled en el elemento especificado.

SetIsTouchFeedbackEnabled(DependencyObject, Boolean)

Establece el valor de la propiedad adjunta IsTouchFeedbackEnabled en el elemento especificado.

Synchronize()

Sincroniza el cursor y la interfaz de usuario.

Eventos adjuntos

GotStylusCapture

Se produce cuando un elemento captura los eventos de lápiz.

LostStylusCapture

Se produce cuando un elemento libera eventos de lápiz.

PreviewStylusButtonDown

Se produce cuando el usuario presiona uno de los botones del lápiz.

PreviewStylusButtonUp

Se produce cuando el usuario suelta uno de los botones del lápiz.

PreviewStylusDown

Se produce cuando el usuario toca con la punta del lápiz la tableta.

PreviewStylusInAirMove

Se produce cuando se mueve el lápiz mientras está dentro del intervalo de la tableta, pero sin tocarla.

PreviewStylusInRange

Se produce cuando el lápiz entra dentro del rango de una tableta.

PreviewStylusMove

Se produce cuando se mueve el lápiz mientras toca la tableta.

PreviewStylusOutOfRange

Se produce cuando el lápiz sale del intervalo de la tableta.

PreviewStylusSystemGesture

Se produce cuando el usuario realiza un gesto de sistema con este lápiz.

PreviewStylusUp

Se produce cuando el usuario aleja el lápiz de tableta.

StylusButtonDown

Se produce cuando el usuario presiona uno de los botones del lápiz.

StylusButtonUp

Se produce cuando el usuario suelta uno de los botones del lápiz.

StylusDown

Se produce cuando el usuario toca con la punta del lápiz la tableta.

StylusEnter

Se produce cuando el cursor del lápiz entra en los límites de un elemento.

StylusInAirMove

Se produce cuando se mueve el lápiz mientras está lo bastante cerca de la tableta como para ser detectado, pero sin que la toque.

StylusInRange

Se produce cuando el lápiz entra dentro del rango de una tableta.

StylusLeave

Se produce cuando el cursor del lápiz sale de los límites de un elemento.

StylusMove

Se produce cuando se mueve el lápiz mientras toca la tableta.

StylusOutOfRange

Se produce cuando el lápiz sale del intervalo de la tableta.

StylusSystemGesture

Se produce cuando el usuario realiza un gesto de sistema con este lápiz.

StylusUp

Se produce cuando el usuario levanta el lápiz de su Tablet PC.

Se aplica a