DefaultDrawingAttributesReplaced Event

InkCanvas.DefaultDrawingAttributesReplaced Event


Occurs when the DefaultDrawingAttributes property is replaced.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public event DrawingAttributesReplacedEventHandler DefaultDrawingAttributesReplaced

The following example checks the value of the IsHighlighter property of the new DrawingAttributes object.

void inkCanvas1_DefaultDrawingAttributesReplaced(object sender, DrawingAttributesReplacedEventArgs e)
    if (e.NewDrawingAttributes.IsHighlighter)
        this.Title = "Now using a highlighter.";
        this.Title = "Now using a pen.";

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft