StylusTip Enumeration
.NET Framework (current version)
Specifies the tip to be used to draw a Stroke.
Assembly: PresentationCore (in PresentationCore.dll)
| Member name | Description | |
|---|---|---|
| Ellipse | Represents an ellipse-shaped tip. | |
| Rectangle | Represents a rectangle-shaped tip. |
You can specify the shape of the tip that is used to draw Stroke objects by setting the DrawingAttributes::StylusTip property.
This class is not typically used in XAML.
The following example demonstrates how to use two DrawingAttributes objects to simulate using a pen and a highlighter on the same InkCanvas. The highlighter's StylusTip property is set to Rectangle.
The example assumes the root element in the "XAML" file is a DockPanel called root. It also assumes that there is a Button called btnToggleHilighter and that the Click event has been connected to the event handler.
.NET Framework
Available since 3.0
Available since 3.0
Show: