InkStrokeInput 클래스

정의

InkPresenter 개체와 연결된 StrokeInput에 대한 속성 및 이벤트를 제공합니다.

public ref class InkStrokeInput sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class InkStrokeInput final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class InkStrokeInput
Public NotInheritable Class InkStrokeInput
상속
Object Platform::Object IInspectable InkStrokeInput
특성

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)

예제

여기서는 StrokeStarted 수신기를 선언합니다.

inkCanvas.InkPresenter.StrokeInput.StrokeStarted += StrokeInput_StrokeStarted;

그런 다음, 새 잉크 스트로크가 시작될 때 선택한 스트로크를 지우는 해당 처리기를 정의합니다.

private void StrokeInput_StrokeStarted(InkStrokeInput sender, Windows.UI.Core.PointerEventArgs args)
{
  var strokes = inkCanvas.InkPresenter.StrokeContainer.GetStrokes();
  foreach (var stroke in strokes)
  {
    stroke.Selected = false;
  }
  ClearDrawnBoundingRect();
}

속성

InkPresenter

잉크 입력 데이터와 연결된 InkPresenter 개체를 가져옵니다.

이벤트

StrokeCanceled

잉크 입력이 상황에 맞는 메뉴와 같은 다른 시스템 이벤트 처리기까지 거품이 발생할 때 발생합니다.

StrokeContinued

스트로크 입력이 시작되고(StrokeStarted) InkPresenter 개체에 의해 계속 캡처될 때 발생합니다.

StrokeEnded

InkPresenter 개체에서 스트로크 입력이 검색되지 않는 경우에 발생합니다.

StrokeStarted

InkPresenter 개체에서 스트로크 입력을 처음 검색할 때 발생합니다.

적용 대상

추가 정보