Bagikan melalui


StylusDevice.ActiveSource Properti

Definisi

PresentationSource Mendapatkan yang melaporkan input saat ini untuk stylus.

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

Nilai Properti

PresentationSource yang melaporkan input saat ini untuk stylus.

Atribut

Contoh

Contoh berikut menunjukkan ActiveSource properti .

PresentationSource myPresentationSource = myStylusDevice.ActiveSource;

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

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

Berlaku untuk