InkCanvas.DefaultStylusPointDescription 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置 . 的 InkCanvas触笔点说明。
public:
property System::Windows::Input::StylusPointDescription ^ DefaultStylusPointDescription { System::Windows::Input::StylusPointDescription ^ get(); void set(System::Windows::Input::StylusPointDescription ^ value); };
public System.Windows.Input.StylusPointDescription DefaultStylusPointDescription { get; set; }
member this.DefaultStylusPointDescription : System.Windows.Input.StylusPointDescription with get, set
Public Property DefaultStylusPointDescription As StylusPointDescription
属性值
触笔点说明 InkCanvas。
示例
下面的示例设置一个DefaultStylusPointDescription设置,使笔划的InkCanvas触笔指向包含的属性XYNormalPressure和TipButton属性。
注释
只有设置为包含附加属性之后InkCanvas添加到DefaultStylusPointDescription的笔划。
inkCanvas1.DefaultStylusPointDescription = new StylusPointDescription(
new StylusPointPropertyInfo[] {
new StylusPointPropertyInfo(StylusPointProperties.X),
new StylusPointPropertyInfo(StylusPointProperties.Y),
new StylusPointPropertyInfo(StylusPointProperties.NormalPressure),
new StylusPointPropertyInfo(StylusPointProperties.TipButton)});
inkCanvas1.DefaultStylusPointDescription = New StylusPointDescription _
(New StylusPointPropertyInfo() _
{New StylusPointPropertyInfo(StylusPointProperties.X), _
New StylusPointPropertyInfo(StylusPointProperties.Y), _
New StylusPointPropertyInfo(StylusPointProperties.NormalPressure), _
New StylusPointPropertyInfo(StylusPointProperties.TipButton)})
注解
默认情况下,存储InkCanvas每个属于笔划的X和YNormalPressure属性StylusPoint。 可以使用 DefaultStylusPointDescription 属性存储有关构成笔划的 InkCanvas点的其他信息。 设置此属性将仅影响设置属性后进行的新笔划。
XAML 文本用法
不能在 XAML 中使用此属性。