다음을 통해 공유


TabletDevice.ActiveSource 속성

정의

태블릿 디바이스의 현재 입력을 보고하는 PresentationSource를 가져옵니다.

public:
 virtual property System::Windows::PresentationSource ^ ActiveSource { System::Windows::PresentationSource ^ get(); };
public override System.Windows.PresentationSource ActiveSource { [System.Security.SecurityCritical] get; }
public override System.Windows.PresentationSource ActiveSource { get; }
[<get: System.Security.SecurityCritical>]
member this.ActiveSource : System.Windows.PresentationSource
member this.ActiveSource : System.Windows.PresentationSource
Public Overrides ReadOnly Property ActiveSource As PresentationSource

속성 값

태블릿 디바이스의 현재 입력을 보고하는 PresentationSource입니다.

특성

예제

다음 코드 예제는 ActiveSource 속성입니다.

PresentationSource myPresentationSource = myTabletDevice.ActiveSource;

if (null != myPresentationSource)
{
    textbox1.AppendText("ActiveSource.RootVisual: " + myPresentationSource.RootVisual.ToString() + "\n");
}
else
{
    textbox1.AppendText("ActiveSource: null\n");
}
Dim myPresentationSource As PresentationSource = myTabletDevice.ActiveSource

If Not IsNothing(myPresentationSource) Then
    textbox1.AppendText("ActiveSource.RootVisual: " & myPresentationSource.RootVisual.ToString() & vbCrLf)
Else
    textbox1.AppendText("ActiveSource: null" & vbCrLf)
End If

적용 대상