InkCanvas.SelectionMoved Event


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

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

Public Event SelectionMoved As EventHandler

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.
Private Sub inkCanvas1_SelectionMoved(ByVal sender As Object, ByVal e As EventArgs)

    inkCanvas1.Select(Nothing, Nothing)

End Sub 'inkCanvas1_SelectionMoved

.NET Framework
Available since 3.0
Return to top