Aracılığıyla paylaş


TabletDevice.ActiveSource Özellik

Tanım

PresentationSource Tablet cihazı için geçerli girişi bildireni alır.

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

Özellik Değeri

PresentationSource Tablet cihazı için geçerli girişi bildiren.

Öznitelikler

Örnekler

Aşağıdaki kod örneği özelliğini gösterir 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

Şunlara uygulanır