Stylus 클래스

정의

태블릿 펜에 대한 일반 정보에 대한 액세스를 제공합니다.

public ref class Stylus abstract sealed
public static class Stylus
type Stylus = class
Public Class Stylus
상속
Stylus

예제

다음 예제에서는 스타일러스가 경계를 벗어나더라도 스타일러스의 좌표를 기록하는 방법을 보여 줍니다 TextBox. 이 예제에서는 TextBox 호출 textBox1이 있고 StylusDown, StylusUpStylusMove 이벤트가 이벤트 처리기에 연결되어 있다고 가정합니다.

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

필드

Name Description
GotStylusCaptureEvent

연결된 이벤트를 식별합니다 GotStylusCapture .

IsFlicksEnabledProperty

연결된 속성을 식별합니다 IsFlicksEnabled .

IsPressAndHoldEnabledProperty

연결된 속성을 식별합니다 IsPressAndHoldEnabled .

IsTapFeedbackEnabledProperty

연결된 속성을 식별합니다 IsTapFeedbackEnabled .

IsTouchFeedbackEnabledProperty

연결된 속성을 식별합니다 IsTouchFeedbackEnabled .

LostStylusCaptureEvent

연결된 이벤트를 식별합니다 LostStylusCapture .

PreviewStylusButtonDownEvent

연결된 이벤트를 식별합니다 PreviewStylusButtonDown .

PreviewStylusButtonUpEvent

연결된 이벤트를 식별합니다 PreviewStylusButtonUp .

PreviewStylusDownEvent

연결된 이벤트를 식별합니다 PreviewStylusDown .

PreviewStylusInAirMoveEvent

연결된 이벤트를 식별합니다 PreviewStylusInAirMove .

PreviewStylusInRangeEvent

연결된 이벤트를 식별합니다 PreviewStylusInRange .

PreviewStylusMoveEvent

연결된 이벤트를 식별합니다 PreviewStylusMove .

PreviewStylusOutOfRangeEvent

연결된 이벤트를 식별합니다 PreviewStylusOutOfRange .

PreviewStylusSystemGestureEvent

연결된 이벤트를 식별합니다 PreviewStylusSystemGesture .

PreviewStylusUpEvent

연결된 이벤트를 식별합니다 PreviewStylusUp .

StylusButtonDownEvent

연결된 이벤트를 식별합니다 StylusButtonDown .

StylusButtonUpEvent

연결된 이벤트를 식별합니다 StylusButtonUp .

StylusDownEvent

연결된 이벤트를 식별합니다 StylusDown .

StylusEnterEvent

연결된 이벤트를 식별합니다 StylusEnter .

StylusInAirMoveEvent

연결된 이벤트를 식별합니다 StylusInAirMove .

StylusInRangeEvent

연결된 이벤트를 식별합니다 StylusInRange .

StylusLeaveEvent

연결된 이벤트를 식별합니다 StylusLeave .

StylusMoveEvent

연결된 이벤트를 식별합니다 StylusMove .

StylusOutOfRangeEvent

연결된 이벤트를 식별합니다 StylusOutOfRange .

StylusSystemGestureEvent

연결된 이벤트를 식별합니다 StylusSystemGesture .

StylusUpEvent

연결된 이벤트를 식별합니다 StylusUp .

속성

Name Description
Captured

스타일러스가 바인딩되는 요소를 가져옵니다.

CurrentStylusDevice

현재 사용 중인 스타일러스를 나타내는 스타일러스를 가져옵니다.

DirectlyOver

스타일러스 바로 아래에 있는 요소를 가져옵니다.

연결된 속성

Name Description
IsFlicksEnabled

플리킹을 사용할 수 있는지 여부를 나타내는 값을 가져오거나 설정합니다.

IsPressAndHoldEnabled

길게 누르기를 사용할 수 있는지 여부를 나타내는 값을 가져오거나 설정합니다.

IsTapFeedbackEnabled

탭 피드백을 사용할 수 있는지 여부를 나타내는 값을 가져오거나 설정합니다.

IsTouchFeedbackEnabled

터치 피드백을 사용할 수 있는지 여부를 나타내는 값을 가져오거나 설정합니다.

메서드

Name Description
AddGotStylusCaptureHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 GotStylusCapture 처리기를 추가합니다.

AddLostStylusCaptureHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 LostStylusCapture 처리기를 추가합니다.

AddPreviewStylusButtonDownHandler(DependencyObject, StylusButtonEventHandler)

연결된 이벤트에 대한 PreviewStylusButtonDown 처리기를 추가합니다.

AddPreviewStylusButtonUpHandler(DependencyObject, StylusButtonEventHandler)

연결된 이벤트에 대한 PreviewStylusButtonUp 처리기를 추가합니다.

AddPreviewStylusDownHandler(DependencyObject, StylusDownEventHandler)

연결된 이벤트에 대한 PreviewStylusDown 처리기를 추가합니다.

AddPreviewStylusInAirMoveHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 PreviewStylusInAirMove 처리기를 추가합니다.

AddPreviewStylusInRangeHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 PreviewStylusInRange 처리기를 추가합니다.

AddPreviewStylusMoveHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 PreviewStylusMove 처리기를 추가합니다.

AddPreviewStylusOutOfRangeHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 PreviewStylusOutOfRange 처리기를 추가합니다.

AddPreviewStylusSystemGestureHandler(DependencyObject, StylusSystemGestureEventHandler)

연결된 이벤트에 대한 PreviewStylusSystemGesture 처리기를 추가합니다.

AddPreviewStylusUpHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 PreviewStylusUp 처리기를 추가합니다.

AddStylusButtonDownHandler(DependencyObject, StylusButtonEventHandler)

연결된 이벤트에 대한 StylusButtonDown 처리기를 추가합니다.

AddStylusButtonUpHandler(DependencyObject, StylusButtonEventHandler)

연결된 이벤트에 대한 StylusButtonUp 처리기를 추가합니다.

AddStylusDownHandler(DependencyObject, StylusDownEventHandler)

연결된 이벤트에 대한 StylusDown 처리기를 추가합니다.

AddStylusEnterHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 StylusEnter 처리기를 추가합니다.

AddStylusInAirMoveHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 StylusInAirMove 처리기를 추가합니다.

AddStylusInRangeHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 StylusInRange 처리기를 추가합니다.

AddStylusLeaveHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 StylusLeave 처리기를 추가합니다.

AddStylusMoveHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 StylusMove 처리기를 추가합니다.

AddStylusOutOfRangeHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 StylusOutOfRange 처리기를 추가합니다.

AddStylusSystemGestureHandler(DependencyObject, StylusSystemGestureEventHandler)

연결된 이벤트에 대한 StylusSystemGesture 처리기를 추가합니다.

AddStylusUpHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 StylusUp 처리기를 추가합니다.

Capture(IInputElement, CaptureMode)

스타일러스를 지정된 요소에 캡처합니다.

Capture(IInputElement)

스타일러스를 지정된 요소에 캡처합니다.

GetIsFlicksEnabled(DependencyObject)

지정된 요소에 연결된 IsFlicksEnabled 속성의 값을 가져옵니다.

GetIsPressAndHoldEnabled(DependencyObject)

지정된 요소에 연결된 IsPressAndHoldEnabled 속성의 값을 가져옵니다.

GetIsTapFeedbackEnabled(DependencyObject)

지정된 요소에 연결된 IsTapFeedbackEnabled 속성의 값을 가져옵니다.

GetIsTouchFeedbackEnabled(DependencyObject)

지정된 요소에 연결된 IsTouchFeedbackEnabled 속성의 값을 가져옵니다.

RemoveGotStylusCaptureHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 GotStylusCapture 처리기를 제거합니다.

RemoveLostStylusCaptureHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 LostStylusCapture 처리기를 제거합니다.

RemovePreviewStylusButtonDownHandler(DependencyObject, StylusButtonEventHandler)

연결된 이벤트에 대한 PreviewStylusButtonDown 처리기를 제거합니다.

RemovePreviewStylusButtonUpHandler(DependencyObject, StylusButtonEventHandler)

연결된 이벤트에 대한 PreviewStylusButtonUp 처리기를 제거합니다.

RemovePreviewStylusDownHandler(DependencyObject, StylusDownEventHandler)

연결된 이벤트에 대한 PreviewStylusDown 처리기를 제거합니다.

RemovePreviewStylusInAirMoveHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 PreviewStylusInAirMove 처리기를 제거합니다.

RemovePreviewStylusInRangeHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 PreviewStylusInRange 처리기를 제거합니다.

RemovePreviewStylusMoveHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 PreviewStylusMove 처리기를 제거합니다.

RemovePreviewStylusOutOfRangeHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 PreviewStylusOutOfRange 처리기를 제거합니다.

RemovePreviewStylusSystemGestureHandler(DependencyObject, StylusSystemGestureEventHandler)

연결된 이벤트에 대한 PreviewStylusSystemGesture 처리기를 제거합니다.

RemovePreviewStylusUpHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 PreviewStylusUp 처리기를 제거합니다.

RemoveStylusButtonDownHandler(DependencyObject, StylusButtonEventHandler)

연결된 이벤트에 대한 StylusButtonDown 처리기를 제거합니다.

RemoveStylusButtonUpHandler(DependencyObject, StylusButtonEventHandler)

연결된 이벤트에 대한 StylusButtonUp 처리기를 제거합니다.

RemoveStylusDownHandler(DependencyObject, StylusDownEventHandler)

연결된 이벤트에 대한 StylusDown 처리기를 제거합니다.

RemoveStylusEnterHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 StylusEnter 처리기를 제거합니다.

RemoveStylusInAirMoveHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 StylusInAirMove 처리기를 제거합니다.

RemoveStylusInRangeHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 StylusInRange 처리기를 제거합니다.

RemoveStylusLeaveHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 StylusLeave 처리기를 제거합니다.

RemoveStylusMoveHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 StylusMove 처리기를 제거합니다.

RemoveStylusOutOfRangeHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 StylusOutOfRange 처리기를 제거합니다.

RemoveStylusSystemGestureHandler(DependencyObject, StylusSystemGestureEventHandler)

연결된 이벤트에 대한 StylusSystemGesture 처리기를 제거합니다.

RemoveStylusUpHandler(DependencyObject, StylusEventHandler)

연결된 이벤트에 대한 StylusUp 처리기를 제거합니다.

SetIsFlicksEnabled(DependencyObject, Boolean)

지정된 요소에 연결된 IsFlicksEnabled 속성의 값을 가져옵니다.

SetIsPressAndHoldEnabled(DependencyObject, Boolean)

지정된 요소에 연결된 IsPressAndHoldEnabled 속성의 값을 설정합니다.

SetIsTapFeedbackEnabled(DependencyObject, Boolean)

지정된 요소에 연결된 IsTapFeedbackEnabled 속성의 값을 설정합니다.

SetIsTouchFeedbackEnabled(DependencyObject, Boolean)

지정된 요소에 연결된 IsTouchFeedbackEnabled 속성의 값을 설정합니다.

Synchronize()

커서와 사용자 인터페이스를 동기화합니다.

연결된 이벤트

Name Description
GotStylusCapture

요소가 스타일러스 이벤트를 캡처할 때 발생합니다.

LostStylusCapture

요소가 스타일러스 이벤트를 해제할 때 발생합니다.

PreviewStylusButtonDown

사용자가 스타일러스의 단추 중 하나를 누를 때 발생합니다.

PreviewStylusButtonUp

사용자가 스타일러스의 단추 중 하나를 해제할 때 발생합니다.

PreviewStylusDown

사용자가 스타일러스의 끝을 태블릿에 터치할 때 발생합니다.

PreviewStylusInAirMove

스타일러스가 태블릿의 범위 내에 있는 동안 이동하는 경우 발생합니다(터치하지 않음).

PreviewStylusInRange

스타일러스가 태블릿 범위 내에 올 때 발생합니다.

PreviewStylusMove

스타일러스가 태블릿을 터치하는 동안 움직일 때 발생합니다.

PreviewStylusOutOfRange

스타일러스가 태블릿 범위를 벗어날 때 발생합니다.

PreviewStylusSystemGesture

사용자가 이 스타일러스를 사용하여 시스템 제스처를 만들 때 발생합니다.

PreviewStylusUp

사용자가 태블릿에서 스타일러스를 들어 올릴 때 발생합니다.

StylusButtonDown

사용자가 스타일러스의 단추 중 하나를 누를 때 발생합니다.

StylusButtonUp

사용자가 스타일러스의 단추 중 하나를 해제할 때 발생합니다.

StylusDown

사용자가 스타일러스의 끝을 태블릿에 터치할 때 발생합니다.

StylusEnter

스타일러스 커서가 요소의 경계에 들어갈 때 발생합니다.

StylusInAirMove

스타일러스가 태블릿의 범위에 있지만 만지지 않는 동안 움직일 때 발생합니다.

StylusInRange

스타일러스가 태블릿 범위 내에 올 때 발생합니다.

StylusLeave

스타일러스 커서가 요소의 경계를 벗어나면 발생합니다.

StylusMove

스타일러스가 태블릿을 터치하는 동안 움직일 때 발생합니다.

StylusOutOfRange

스타일러스가 태블릿 범위를 벗어날 때 발생합니다.

StylusSystemGesture

사용자가 이 스타일러스를 사용하여 시스템 제스처를 만들 때 발생합니다.

StylusUp

사용자가 태블릿 PC에서 스타일러스를 올릴 때 발생합니다.

적용 대상