Share via


InkCanvas.DefaultStylusPointDescription Özellik

Tanım

Bir InkCanvasiçin ekran kalemi noktası açıklamasını alır veya ayarlar.

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

Özellik Değeri

Bir için InkCanvasekran kalemi noktası açıklaması.

Örnekler

Aşağıdaki örnek, üzerindeki vuruşların InkCanvas ekran kalemi noktalarının , , NormalPressureYve TipButton özelliklerini içermesi Xiçin öğesini ayarlarDefaultStylusPointDescription.

Not

Yalnızca ek özelliği içerecek şekilde ayarlandıktan sonra DefaultStylusPointDescription öğesine eklenen InkCanvas vuruşlar.

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

Açıklamalar

Varsayılan olarak, bir vuruşa InkCanvasXait her StylusPoint biri için yalnızca , Yve NormalPressure özelliklerini depolar. Bir üzerindeki InkCanvasvuruşlardan oluşan noktalar hakkında ek bilgi depolamak için DefaultStylusPointDescription özelliğini kullanabilirsiniz. Bu özelliğin ayarlanması yalnızca özellik ayarlandıktan sonra yapılan yeni vuruşları etkiler.

XAML Metni Kullanımı

Bu özelliği XAML'de kullanamazsınız.

Şunlara uygulanır

Ayrıca bkz.