SelectionMoved Event

InkCanvas.SelectionMoved Event


Occurs after the user moves a selection of strokes and/or elements.

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

public event EventHandler SelectionMoved

This event occurs after a selection of strokes and/or elements is moved, but before the stroke or element data is updated to record its new position. Add an event handler to the SelectionMoving event.

The following example unselects items on an InkCanvas after the user moves them.

// Unselect the items on the InkCanvas once the user has moved them.
void inkCanvas1_SelectionMoved(object sender, EventArgs e)
    inkCanvas1.Select(null, null);

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