DynamicRenderer 클래스

정의

사용자가 태블릿 펜을 움직일 때 화면에 잉크를 그립니다.

public ref class DynamicRenderer : System::Windows::Input::StylusPlugIns::StylusPlugIn
public class DynamicRenderer : System.Windows.Input.StylusPlugIns.StylusPlugIn
type DynamicRenderer = class
    inherit StylusPlugIn
Public Class DynamicRenderer
Inherits StylusPlugIn
상속
DynamicRenderer

예제

다음 예제에서는 연결 하는 방법에 설명 된 DynamicRendererInkPresenter. 동적으로 렌더링 하는 컨트롤을 만드는 내용은 잉크 잉크 입력 컨트롤 만들기합니다.

// 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)

설명

DynamicRenderer 클래스에서 상속 된 StylusPlugIn 클래스 및 잉크 사용자가 태블릿 펜 이나 기타 포인팅 디바이스를 사용 하 여 마우스 포인터를 이동 하는 대로 화면에 렌더링할 수 있습니다. 사용할 수는 DynamicRenderer 동적으로 사용자 지정 컨트롤에서 잉크를 렌더링 하거나에서 상속 DynamicRenderer 사용자 지정 렌더링 잉크 지원 요소에 대해 실시간으로 같은 데는 InkCanvas합니다.

태블릿 펜을 사용 하 여 잉크를 입력 하는 경우 동적 렌더링 애플리케이션의 사용자 인터페이스 스레드에서 별도 스레드에서 수행 됩니다. 마우스를 사용 하면 동적 렌더링 UI 스레드에서 수행 됩니다.

참고

이 클래스를 XAML 요소로 참조하려면 CLR 네임스페이스를 접두사에 매핑 System.Windows.Input.StylusPlugIns 하고 해당 접두사로 요소를 한정 DynamicRenderer 해야 합니다. 자세한 내용은 참조 하세요 XAML 네임 스페이스 및 WPF XAML에 대 한 매핑 Namespace합니다.

XAML 텍스트 사용

이 클래스는 XAML에서 일반적으로 사용 되지 않습니다.

생성자

DynamicRenderer()

DynamicRenderer 클래스의 새 인스턴스를 초기화합니다.

속성

DrawingAttributes

렌더링되는 잉크의 모양을 지정하는 DrawingAttributes를 가져오거나 설정합니다.

Element

UIElement가 연결된 StylusPlugIn를 가져옵니다.

(다음에서 상속됨 StylusPlugIn)
ElementBounds

요소의 캐시된 범위를 가져옵니다.

(다음에서 상속됨 StylusPlugIn)
Enabled

StylusPlugIn이 활성 상태인지 여부를 가져오거나 설정합니다.

(다음에서 상속됨 StylusPlugIn)
IsActiveForInput

StylusPlugIn이 입력을 받아들일 수 있는지 여부를 가져옵니다.

(다음에서 상속됨 StylusPlugIn)
RootVisual

DynamicRenderer에 대한 루트 Visual을 가져옵니다.

메서드

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetDispatcher()

렌더링 스레드에 대한 Dispatcher를 반환합니다.

GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
OnAdded()

DynamicRenderer가 요소에 추가되면 발생합니다.

OnDraw(DrawingContext, StylusPointCollection, Geometry, Brush)

잉크를 실시간으로 그리므로 태블릿 펜이나 기타 포인팅 디바이스에서 잉크가 "흘러나오는" 것처럼 표시됩니다.

OnDrawingAttributesReplaced()

DrawingAttributes 속성이 변경되면 발생합니다.

OnEnabledChanged()

Enabled 속성이 변경되면 발생합니다.

OnIsActiveForInputChanged()

IsActiveForInput 속성이 변경되면 발생합니다.

OnRemoved()

요소에서 StylusPlugIn이 제거되면 발생합니다.

OnStylusDown(RawStylusInput)

태블릿 펜이 디지타이저에 닿을 때 펜 스레드 풀의 스레드에서 발생합니다.

OnStylusDownProcessed(Object, Boolean)

태블릿 펜이 디지타이저에 닿을 때 애플리케이션 UI(사용자 인터페이스) 스레드에서 발생합니다.

OnStylusEnter(RawStylusInput, Boolean)

커서가 요소 범위 안으로 들어올 때 펜 스레드에서 발생합니다.

OnStylusLeave(RawStylusInput, Boolean)

커서가 요소 범위를 벗어날 때 펜 스레드에서 발생합니다.

OnStylusMove(RawStylusInput)

태블릿 펜이 디지타이저에서 움직일 때 펜 스레드에서 발생합니다.

OnStylusMoveProcessed(Object, Boolean)

태블릿 펜이 디지타이저 위에서 이동할 때 애플리케이션 UI(사용자 인터페이스) 스레드에서 발생합니다.

(다음에서 상속됨 StylusPlugIn)
OnStylusUp(RawStylusInput)

사용자가 태블릿 펜을 디지타이저에서 뗄 때 펜 스레드에서 발생합니다.

OnStylusUpProcessed(Object, Boolean)

사용자가 태블릿 펜을 디지타이저에서 뗄 때 애플리케이션 UI(사용자 인터페이스) 스레드에서 발생합니다.

Reset(StylusDevice, StylusPointCollection)

현재 스트로크에서 렌더링을 지우고 다시 그립니다.

ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

적용 대상