TabletDevice.ActiveSource Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the PresentationSource that reports current input for the tablet device.
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
Property Value
The PresentationSource that reports current input for the tablet device.
- Attributes
Examples
The following code example demonstrates the ActiveSource property.
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
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.