97 references to InkCanvasEditingMode
PresentationFramework (97)
MS\Internal\Ink\EditingCoordinator.cs (14)
213if ( ActiveEditingMode == InkCanvasEditingMode.EraseByPoint ) 288internal IStylusEditing ChangeStylusEditingMode(StylusEditingBehavior sourceBehavior, InkCanvasEditingMode newMode) 316if ( newMode == InkCanvasEditingMode.Select 497internal InkCanvasEditingMode ActiveEditingMode 562private EditingBehavior GetBehavior(InkCanvasEditingMode editingMode) 568case InkCanvasEditingMode.Ink: 569case InkCanvasEditingMode.GestureOnly: 570case InkCanvasEditingMode.InkAndGesture: 573case InkCanvasEditingMode.Select: 576case InkCanvasEditingMode.EraseByPoint: 577case InkCanvasEditingMode.EraseByStroke: 686if ( _inkCanvas.Focus() && ActiveEditingMode != InkCanvasEditingMode.None ) 965if ( _inkCanvas.IsStylusCaptured && ActiveEditingMode != InkCanvasEditingMode.None ) 995if ( _inkCanvas.IsMouseCaptured && ActiveEditingMode != InkCanvasEditingMode.None )
MS\Internal\Ink\EraserBehavior.cs (17)
77protected override void OnSwitchToMode(InkCanvasEditingMode mode) 83case InkCanvasEditingMode.Ink: 84case InkCanvasEditingMode.InkAndGesture: 85case InkCanvasEditingMode.GestureOnly: 94case InkCanvasEditingMode.EraseByPoint: 95case InkCanvasEditingMode.EraseByStroke: 107case InkCanvasEditingMode.Select: 132case InkCanvasEditingMode.None: 150InkCanvasEditingMode newEraseMode = EditingCoordinator.ActiveEditingMode; 151Debug.Assert(newEraseMode == InkCanvasEditingMode.EraseByPoint 152|| newEraseMode == InkCanvasEditingMode.EraseByStroke); 161else if ( newEraseMode == InkCanvasEditingMode.EraseByPoint ) 202if ( InkCanvasEditingMode.EraseByPoint == _cachedEraseMode ) 223if ( InkCanvasEditingMode.EraseByPoint == _cachedEraseMode ) 249if ( InkCanvasEditingMode.EraseByPoint == _cachedEraseMode ) 273if ( InkCanvasEditingMode.EraseByPoint == _cachedEraseMode ) 454private InkCanvasEditingMode _cachedEraseMode;
MS\Internal\Ink\InkCanvasSelection.cs (2)
236if ( _inkCanvas.ActiveEditingMode == InkCanvasEditingMode.Select ) 878if ( _inkCanvas.ActiveEditingMode != InkCanvasEditingMode.None )
MS\Internal\Ink\InkCollectionBehavior.cs (8)
103protected override void OnSwitchToMode(InkCanvasEditingMode mode) 109case InkCanvasEditingMode.Ink: 110case InkCanvasEditingMode.InkAndGesture: 111case InkCanvasEditingMode.GestureOnly: 117case InkCanvasEditingMode.EraseByPoint: 118case InkCanvasEditingMode.EraseByStroke: 127case InkCanvasEditingMode.Select: 154case InkCanvasEditingMode.None:
MS\Internal\Ink\LassoSelectionBehavior.cs (9)
66protected override void OnSwitchToMode(InkCanvasEditingMode mode) 72case InkCanvasEditingMode.Ink: 73case InkCanvasEditingMode.InkAndGesture: 74case InkCanvasEditingMode.GestureOnly: 83case InkCanvasEditingMode.EraseByPoint: 84case InkCanvasEditingMode.EraseByStroke: 94case InkCanvasEditingMode.Select: 99case InkCanvasEditingMode.None: 594&& EditingCoordinator.ActiveEditingMode == InkCanvasEditingMode.Select )
MS\Internal\Ink\StylusEditingBehavior.cs (2)
60internal void SwitchToMode(InkCanvasEditingMode mode) 128protected abstract void OnSwitchToMode(InkCanvasEditingMode mode);
System\Windows\Controls\InkCanvas.cs (27)
780typeof(InkCanvasEditingMode), 782new FrameworkPropertyMetadata(InkCanvasEditingMode.Ink)); 792public InkCanvasEditingMode ActiveEditingMode 794get { return (InkCanvasEditingMode)GetValue(ActiveEditingModeProperty); } 803typeof(InkCanvasEditingMode), 806InkCanvasEditingMode.Ink, 814public InkCanvasEditingMode EditingMode 816get { return (InkCanvasEditingMode)GetValue(EditingModeProperty); } 833typeof(InkCanvasEditingMode), 836InkCanvasEditingMode.EraseByStroke, 843public InkCanvasEditingMode EditingModeInverted 845get { return (InkCanvasEditingMode)GetValue(EditingModeInvertedProperty); } 857return EditingModeHelper.IsDefined((InkCanvasEditingMode)value); 1044if ((this.ActiveEditingMode == InkCanvasEditingMode.InkAndGesture || 1045this.ActiveEditingMode == InkCanvasEditingMode.GestureOnly) && 1098if ( this.ActiveEditingMode == InkCanvasEditingMode.Ink || 1099this.ActiveEditingMode == InkCanvasEditingMode.InkAndGesture ) 1251InkCanvasEditingMode mode = this.ActiveEditingMode; 1741if ( EnsureActiveEditingMode(InkCanvasEditingMode.Select) ) 2114CoreChangeSelection(newStrokes, newElements.ToArray(), EditingMode == InkCanvasEditingMode.Select); 2122if (EditingMode != InkCanvasEditingMode.Select) 2597private bool EnsureActiveEditingMode(InkCanvasEditingMode newEditingMode) 2708if ( inkCanvas.ActiveEditingMode == InkCanvasEditingMode.Select ) 2795args.CanExecute = ( inkCanvas.ActiveEditingMode == InkCanvasEditingMode.Select 3003InkCanvasEditingMode activeMode = (InkCanvasEditingMode)o; 3006if ( activeMode != InkCanvasEditingMode.None )
System\Windows\Controls\StickyNote.cs (15)
671this.SetValue(InkEditingModeProperty, InkCanvasEditingMode.Ink); 750typeof(InkCanvasEditingMode), 753InkCanvasEditingMode.None)); 1640checkedBind.ConverterParameter = InkCanvasEditingMode.Ink; 1652checkedBind.ConverterParameter = InkCanvasEditingMode.Select; 1664checkedBind.ConverterParameter = InkCanvasEditingMode.EraseByStroke; 1715InkCanvasEditingMode mode = (InkCanvasEditingMode)args.Parameter; 1900InkCanvasEditingMode expectedMode = (InkCanvasEditingMode)parameter; 1901InkCanvasEditingMode currentMode = (InkCanvasEditingMode)o; 1926InkCanvasEditingMode sncInkEditingMode = (InkCanvasEditingMode)values[0]; 1938return InkCanvasEditingMode.None;
System\Windows\Ink\EditingMode.cs (3)
52internal static bool IsDefined(InkCanvasEditingMode InkCanvasEditingMode) 54return (InkCanvasEditingMode >= InkCanvasEditingMode.None && InkCanvasEditingMode <= InkCanvasEditingMode.EraseByStroke);