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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft