InkCanvas.DefaultStylusPointDescription Vlastnost

Definice

Získá nebo nastaví pero popis bodu pro 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

Hodnota vlastnosti

Popis perasu pro InkCanvas.

Příklady

Následující příklad nastaví DefaultStylusPointDescription hodnotu tak, aby perasové body tahů na kartě InkCanvas obsahovaly Xvlastnosti , YNormalPressure, a TipButton .

Poznámka

Pouze tahy, které jsou přidány po InkCanvas je nastavena DefaultStylusPointDescription tak, aby obsahovaly další vlastnost.

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)})

Poznámky

Ve výchozím nastavení ukládá InkCanvas pouze Xvlastnosti , Ya NormalPressure pro každou z nich StylusPoint , které patří k tahu. Vlastnost DefaultStylusPointDescription můžete použít k uložení dalších informací o bodech, které tvoří tahy na InkCanvas. Nastavení této vlastnosti ovlivní pouze nové tahy, které se vytvoří po nastavení vlastnosti.

Použití textu XAML

Tuto vlastnost nelze použít v XAML.

Platí pro

Viz také