StylusButton.StylusDevice Property


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