StylusButton.StylusDevice Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the stylus that this button belongs to.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

public StylusDevice StylusDevice { get; }

Property Value

Type: System.Windows.Input.StylusDevice

A StylusDevice that represents the stylus of the current StylusButton.

The following example demonstrates the StylusDevice property.

// Get the name of the StylusDevice to which the StylusButton is attached
textbox1.AppendText("StylusButton.StylusDevice: " + myStylusButton.StylusDevice.Name + "\n");

.NET Framework
Available since 3.0
Return to top
Show: