TabletDevice.ActiveSource 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取报告 Tablet 设备的当前输入的 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
属性值
报告 Tablet 设备的当前输入的 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