This documentation is archived and is not being maintained.

InkCanvas.DefaultStylusPointDescription Property

Gets or sets the stylus point description for an InkCanvas.

Namespace: System.Windows.Controls
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:

public StylusPointDescription DefaultStylusPointDescription { get; set; }
/** @property */
public StylusPointDescription get_DefaultStylusPointDescription ()

/** @property */
public void set_DefaultStylusPointDescription (StylusPointDescription value)

public function get DefaultStylusPointDescription () : StylusPointDescription

public function set DefaultStylusPointDescription (value : StylusPointDescription)

 You cannot use this property in XAML. 

Property Value

The stylus point description for an InkCanvas.

By default, the InkCanvas stores only the X, Y, and NormalPressure properties for each StylusPoint in a stroke. You can use this property to include additional information about the strokes on the InkCanvas. Setting this property will affect only new strokes made after the property has been set.

The following example sets the DefaultStylusPointDescription so that the stylus points of the strokes on the InkCanvas contain the X, Y, NormalPressure, and TipButton properties.


Only the strokes that are added to the InkCanvas after the DefaultStylusPointDescription is set to contain the additional property.

inkCanvas1.DefaultStylusPointDescription = new StylusPointDescription(
    new StylusPointPropertyInfo[] {
        new StylusPointPropertyInfo(StylusPointProperties.X),
        new StylusPointPropertyInfo(StylusPointProperties.Y),
        new StylusPointPropertyInfo(StylusPointProperties.NormalPressure),
        new StylusPointPropertyInfo(StylusPointProperties.TipButton)});

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0