protected override void OnSelectionChanging(InkCanvasSelectionChangingEventArgs e) { bool selBak = Keyboard.Modifiers == ModifierKeys.Control; ReadOnlyCollection<UIElement> col = e.GetSelectedElements(); List<UIElement> rez = new List<UIElement>(); foreach (UIElement el in col) if (selBak && el == bkg) rez.Add(el); else if (!selBak && el != bkg) rez.Add(el); e.SetSelectedElements(rez); }
private void InkCanvas_SelectionChanging(object sender, InkCanvasSelectionChangingEventArgs e) { }
private void selectingStrokes(object sender, InkCanvasSelectionChangingEventArgs e) { var selectedStrokes = e.GetSelectedStrokes(); var myStrokes = filter(selectedStrokes, Globals.me); e.SetSelectedStrokes(myStrokes); ClearAdorners(); }
protected virtual new void OnSelectionChanging(InkCanvasSelectionChangingEventArgs e) { }
protected virtual new void OnSelectionChanging(InkCanvasSelectionChangingEventArgs e) { }
private void selectingText(object sender, InkCanvasSelectionChangingEventArgs e) { e.SetSelectedElements(filterMyText(e.GetSelectedElements())); }