The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
IncrementalLassoHitTester.SelectionChanged Event
.NET Framework (current version)
Occurs when the lasso path selects or unselects an ink Stroke.
Assembly: PresentationCore (in PresentationCore.dll)
The following example demonstrates how to dynamically select strokes in a custom control. For the entire sample, see How to: Select Ink from a Custom Control
void selectionTester_SelectionChanged(object sender, LassoSelectionChangedEventArgs args) { // Change the color of all selected strokes to red. foreach (Stroke selectedStroke in args.SelectedStrokes) { selectedStroke.DrawingAttributes.Color = Colors.Red; selectedStrokes.Add(selectedStroke); } // Change the color of all unselected strokes to // their original color. foreach (Stroke unselectedStroke in args.DeselectedStrokes) { unselectedStroke.DrawingAttributes.Color = inkDA.Color; selectedStrokes.Remove(unselectedStroke); } }
.NET Framework
Available since 3.0
Available since 3.0
Show: