UIElement.StylusPlugIns 속성

정의

이 요소와 연결된 모든 스타일러스 플러그 인(사용자 지정) 개체 컬렉션을 가져옵니다.

protected:
 property System::Windows::Input::StylusPlugIns::StylusPlugInCollection ^ StylusPlugIns { System::Windows::Input::StylusPlugIns::StylusPlugInCollection ^ get(); };
protected System.Windows.Input.StylusPlugIns.StylusPlugInCollection StylusPlugIns { get; }
member this.StylusPlugIns : System.Windows.Input.StylusPlugIns.StylusPlugInCollection
Protected ReadOnly Property StylusPlugIns As StylusPlugInCollection

속성 값

StylusPlugInCollection

특수 컬렉션인 스타일러스 플러그 인 컬렉션입니다.

예제

다음 예제에서는 인스턴스를 DynamicRenderer 만들고 사용자 지정 잉크 처리 컨트롤에 StylusPlugIns 대 한 컬렉션에 추가 합니다.

// Create a DrawingAttributes to use for the 
// DynamicRenderer.
DrawingAttributes inkDA = new DrawingAttributes();
inkDA.Width = 5;
inkDA.Height = 5;
inkDA.Color = Colors.Purple;

// Add a dynamic renderer plugin that 
// draws ink as it "flows" from the stylus
DynamicRenderer dynamicRenderer1 = new DynamicRenderer();
dynamicRenderer1.DrawingAttributes = inkDA;

this.StylusPlugIns.Add(dynamicRenderer1);
inkPresenter1.AttachVisuals(dynamicRenderer1.RootVisual,
    dynamicRenderer1.DrawingAttributes);
' Create a DrawingAttributes to use for the 
' DynamicRenderer.
Dim inkDA As New DrawingAttributes()
inkDA.Width = 5
inkDA.Height = 5
inkDA.Color = Colors.Purple

' Add a dynamic renderer plugin that 
' draws ink as it "flows" from the stylus
Dim dynamicRenderer1 As New DynamicRenderer()
dynamicRenderer1.DrawingAttributes = inkDA

Me.StylusPlugIns.Add(dynamicRenderer1)
inkPresenter1.AttachVisuals(dynamicRenderer1.RootVisual, dynamicRenderer1.DrawingAttributes)

설명

이 컬렉션을 채우는 컨트롤의 예는 다음과 같습니다 InkCanvas. InkCanvasDynamicRenderer 는 스타일러스 입력과 상호 작용하고 스타일러스 기반 이벤트에 대한 응답으로 고유한 렌더링을 생성할 수 있도록 DynamicRenderer 컬렉션 항목으로 추가합니다.

스타일러스 입력을 수신하고 해석할 수 있는 사용자 지정 플러그 인을 만드는 방법에 대한 자세한 내용은 스타일러스에서 인터셉팅 입력을 참조하세요.

적용 대상

추가 정보