InkCanvas::DefaultDrawingAttributes Property
.NET Framework (current version)
Gets or sets the drawing attributes that are applied to new ink strokes made on the InkCanvas.
Assembly: PresentationFramework (in PresentationFramework.dll)
The following example demonstrates how to use two DrawingAttributes objects to simulate the experience of using a pen and a highlighter on the same InkCanvas. The example assumes that the root element in the markup language (XAML) file is a DockPanel called root. It also assumes that there is a Button called switchHilighter and that the Click event is connected to the event handler.
The following example demonstrates how to bind the DefaultDrawingAttributes property to a data source.
.NET Framework
Available since 3.0
Available since 3.0
Show: