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: 683if ( _inkCanvas.Focus() && ActiveEditingMode != InkCanvasEditingMode.None ) 956if ( _inkCanvas.IsStylusCaptured && ActiveEditingMode != InkCanvasEditingMode.None ) 986if ( _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: 131case InkCanvasEditingMode.None: 149InkCanvasEditingMode newEraseMode = EditingCoordinator.ActiveEditingMode; 150Debug.Assert(newEraseMode == InkCanvasEditingMode.EraseByPoint 151|| newEraseMode == InkCanvasEditingMode.EraseByStroke); 160else if ( newEraseMode == InkCanvasEditingMode.EraseByPoint ) 201if ( InkCanvasEditingMode.EraseByPoint == _cachedEraseMode ) 222if ( InkCanvasEditingMode.EraseByPoint == _cachedEraseMode ) 248if ( InkCanvasEditingMode.EraseByPoint == _cachedEraseMode ) 272if ( InkCanvasEditingMode.EraseByPoint == _cachedEraseMode ) 453private 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: 153case InkCanvasEditingMode.None:
MS\Internal\Ink\LassoSelectionBehavior.cs (9)
67protected override void OnSwitchToMode(InkCanvasEditingMode mode) 73case InkCanvasEditingMode.Ink: 74case InkCanvasEditingMode.InkAndGesture: 75case InkCanvasEditingMode.GestureOnly: 84case InkCanvasEditingMode.EraseByPoint: 85case InkCanvasEditingMode.EraseByStroke: 95case InkCanvasEditingMode.Select: 100case InkCanvasEditingMode.None: 593&& 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)
792typeof(InkCanvasEditingMode), 794new FrameworkPropertyMetadata(InkCanvasEditingMode.Ink)); 804public InkCanvasEditingMode ActiveEditingMode 806get { return (InkCanvasEditingMode)GetValue(ActiveEditingModeProperty); } 815typeof(InkCanvasEditingMode), 818InkCanvasEditingMode.Ink, 826public InkCanvasEditingMode EditingMode 828get { return (InkCanvasEditingMode)GetValue(EditingModeProperty); } 845typeof(InkCanvasEditingMode), 848InkCanvasEditingMode.EraseByStroke, 855public InkCanvasEditingMode EditingModeInverted 857get { return (InkCanvasEditingMode)GetValue(EditingModeInvertedProperty); } 869return EditingModeHelper.IsDefined((InkCanvasEditingMode)value); 1056if ((this.ActiveEditingMode == InkCanvasEditingMode.InkAndGesture || 1057this.ActiveEditingMode == InkCanvasEditingMode.GestureOnly) && 1110if ( this.ActiveEditingMode == InkCanvasEditingMode.Ink || 1111this.ActiveEditingMode == InkCanvasEditingMode.InkAndGesture ) 1263InkCanvasEditingMode mode = this.ActiveEditingMode; 1753if ( EnsureActiveEditingMode(InkCanvasEditingMode.Select) ) 2128CoreChangeSelection(newStrokes, newElements.ToArray(), EditingMode == InkCanvasEditingMode.Select); 2136if (EditingMode != InkCanvasEditingMode.Select) 2613private bool EnsureActiveEditingMode(InkCanvasEditingMode newEditingMode) 2724if ( inkCanvas.ActiveEditingMode == InkCanvasEditingMode.Select ) 2811args.CanExecute = ( inkCanvas.ActiveEditingMode == InkCanvasEditingMode.Select 3019InkCanvasEditingMode activeMode = (InkCanvasEditingMode)o; 3022if ( activeMode != InkCanvasEditingMode.None )
System\Windows\Controls\StickyNote.cs (15)
654this.SetValue(InkEditingModeProperty, InkCanvasEditingMode.Ink); 733typeof(InkCanvasEditingMode), 736InkCanvasEditingMode.None)); 1610ConverterParameter = InkCanvasEditingMode.Ink 1624ConverterParameter = InkCanvasEditingMode.Select 1638ConverterParameter = InkCanvasEditingMode.EraseByStroke 1690InkCanvasEditingMode mode = (InkCanvasEditingMode)args.Parameter; 1875InkCanvasEditingMode expectedMode = (InkCanvasEditingMode)parameter; 1876InkCanvasEditingMode currentMode = (InkCanvasEditingMode)o; 1901InkCanvasEditingMode sncInkEditingMode = (InkCanvasEditingMode)values[0]; 1913return InkCanvasEditingMode.None;
System\Windows\Ink\EditingMode.cs (3)
52internal static bool IsDefined(InkCanvasEditingMode InkCanvasEditingMode) 54return (InkCanvasEditingMode >= InkCanvasEditingMode.None && InkCanvasEditingMode <= InkCanvasEditingMode.EraseByStroke);