DynamicRenderer.RootVisual 속성

정의

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

public:
 property System::Windows::Media::Visual ^ RootVisual { System::Windows::Media::Visual ^ get(); };
public System.Windows.Media.Visual RootVisual { get; }
member this.RootVisual : System.Windows.Media.Visual
Public ReadOnly Property RootVisual As Visual

속성 값

Visual

Visual에 대한 루트 DynamicRenderer입니다.

예제

다음 예제에서는 만드는 방법을 보여 줍니다.는 DynamicRenderer 추가 RootVisualInkPresenter합니다. 동적으로 렌더링 하는 컨트롤을 만드는 내용은 잉크 잉크 입력 컨트롤 만들기합니다.

// 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를 연결 해야 합니다는 RootVisual 속성을 합니다 InkPresenter 를 사용 하 여를 AttachVisuals 메서드.

적용 대상