97 references to InkCanvasEditingMode
PresentationFramework (97)
MS\Internal\Ink\EditingCoordinator.cs (14)
228
if ( ActiveEditingMode ==
InkCanvasEditingMode
.EraseByPoint )
303
internal IStylusEditing ChangeStylusEditingMode(StylusEditingBehavior sourceBehavior,
InkCanvasEditingMode
newMode)
331
if ( newMode ==
InkCanvasEditingMode
.Select
512
internal
InkCanvasEditingMode
ActiveEditingMode
577
private EditingBehavior GetBehavior(
InkCanvasEditingMode
editingMode)
583
case
InkCanvasEditingMode
.Ink:
584
case
InkCanvasEditingMode
.GestureOnly:
585
case
InkCanvasEditingMode
.InkAndGesture:
588
case
InkCanvasEditingMode
.Select:
591
case
InkCanvasEditingMode
.EraseByPoint:
592
case
InkCanvasEditingMode
.EraseByStroke:
701
if ( _inkCanvas.Focus() && ActiveEditingMode !=
InkCanvasEditingMode
.None )
980
if ( _inkCanvas.IsStylusCaptured && ActiveEditingMode !=
InkCanvasEditingMode
.None )
1010
if ( _inkCanvas.IsMouseCaptured && ActiveEditingMode !=
InkCanvasEditingMode
.None )
MS\Internal\Ink\EraserBehavior.cs (17)
89
protected override void OnSwitchToMode(
InkCanvasEditingMode
mode)
95
case
InkCanvasEditingMode
.Ink:
96
case
InkCanvasEditingMode
.InkAndGesture:
97
case
InkCanvasEditingMode
.GestureOnly:
106
case
InkCanvasEditingMode
.EraseByPoint:
107
case
InkCanvasEditingMode
.EraseByStroke:
119
case
InkCanvasEditingMode
.Select:
144
case
InkCanvasEditingMode
.None:
162
InkCanvasEditingMode
newEraseMode = EditingCoordinator.ActiveEditingMode;
163
Debug.Assert(newEraseMode ==
InkCanvasEditingMode
.EraseByPoint
164
|| newEraseMode ==
InkCanvasEditingMode
.EraseByStroke);
173
else if ( newEraseMode ==
InkCanvasEditingMode
.EraseByPoint )
214
if (
InkCanvasEditingMode
.EraseByPoint == _cachedEraseMode )
235
if (
InkCanvasEditingMode
.EraseByPoint == _cachedEraseMode )
261
if (
InkCanvasEditingMode
.EraseByPoint == _cachedEraseMode )
285
if (
InkCanvasEditingMode
.EraseByPoint == _cachedEraseMode )
466
private
InkCanvasEditingMode
_cachedEraseMode;
MS\Internal\Ink\InkCanvasSelection.cs (2)
248
if ( _inkCanvas.ActiveEditingMode ==
InkCanvasEditingMode
.Select )
890
if ( _inkCanvas.ActiveEditingMode !=
InkCanvasEditingMode
.None )
MS\Internal\Ink\InkCollectionBehavior.cs (8)
112
protected override void OnSwitchToMode(
InkCanvasEditingMode
mode)
118
case
InkCanvasEditingMode
.Ink:
119
case
InkCanvasEditingMode
.InkAndGesture:
120
case
InkCanvasEditingMode
.GestureOnly:
126
case
InkCanvasEditingMode
.EraseByPoint:
127
case
InkCanvasEditingMode
.EraseByStroke:
136
case
InkCanvasEditingMode
.Select:
163
case
InkCanvasEditingMode
.None:
MS\Internal\Ink\LassoSelectionBehavior.cs (9)
75
protected override void OnSwitchToMode(
InkCanvasEditingMode
mode)
81
case
InkCanvasEditingMode
.Ink:
82
case
InkCanvasEditingMode
.InkAndGesture:
83
case
InkCanvasEditingMode
.GestureOnly:
92
case
InkCanvasEditingMode
.EraseByPoint:
93
case
InkCanvasEditingMode
.EraseByStroke:
103
case
InkCanvasEditingMode
.Select:
108
case
InkCanvasEditingMode
.None:
603
&& EditingCoordinator.ActiveEditingMode ==
InkCanvasEditingMode
.Select )
MS\Internal\Ink\StylusEditingBehavior.cs (2)
74
internal void SwitchToMode(
InkCanvasEditingMode
mode)
142
protected abstract void OnSwitchToMode(
InkCanvasEditingMode
mode);
System\Windows\Controls\InkCanvas.cs (27)
792
typeof(
InkCanvasEditingMode
),
794
new FrameworkPropertyMetadata(
InkCanvasEditingMode
.Ink));
804
public
InkCanvasEditingMode
ActiveEditingMode
806
get { return (
InkCanvasEditingMode
)GetValue(ActiveEditingModeProperty); }
815
typeof(
InkCanvasEditingMode
),
818
InkCanvasEditingMode
.Ink,
826
public
InkCanvasEditingMode
EditingMode
828
get { return (
InkCanvasEditingMode
)GetValue(EditingModeProperty); }
845
typeof(
InkCanvasEditingMode
),
848
InkCanvasEditingMode
.EraseByStroke,
855
public
InkCanvasEditingMode
EditingModeInverted
857
get { return (
InkCanvasEditingMode
)GetValue(EditingModeInvertedProperty); }
869
return EditingModeHelper.IsDefined((
InkCanvasEditingMode
)value);
1056
if ((this.ActiveEditingMode ==
InkCanvasEditingMode
.InkAndGesture ||
1057
this.ActiveEditingMode ==
InkCanvasEditingMode
.GestureOnly) &&
1110
if ( this.ActiveEditingMode ==
InkCanvasEditingMode
.Ink ||
1111
this.ActiveEditingMode ==
InkCanvasEditingMode
.InkAndGesture )
1263
InkCanvasEditingMode
mode = this.ActiveEditingMode;
1753
if ( EnsureActiveEditingMode(
InkCanvasEditingMode
.Select) )
2126
CoreChangeSelection(newStrokes, newElements.ToArray(), EditingMode ==
InkCanvasEditingMode
.Select);
2134
if (EditingMode !=
InkCanvasEditingMode
.Select)
2609
private bool EnsureActiveEditingMode(
InkCanvasEditingMode
newEditingMode)
2720
if ( inkCanvas.ActiveEditingMode ==
InkCanvasEditingMode
.Select )
2807
args.CanExecute = ( inkCanvas.ActiveEditingMode ==
InkCanvasEditingMode
.Select
3015
InkCanvasEditingMode
activeMode = (
InkCanvasEditingMode
)o;
3018
if ( activeMode !=
InkCanvasEditingMode
.None )
System\Windows\Controls\StickyNote.cs (15)
687
this.SetValue(InkEditingModeProperty,
InkCanvasEditingMode
.Ink);
766
typeof(
InkCanvasEditingMode
),
769
InkCanvasEditingMode
.None));
1656
checkedBind.ConverterParameter =
InkCanvasEditingMode
.Ink;
1668
checkedBind.ConverterParameter =
InkCanvasEditingMode
.Select;
1680
checkedBind.ConverterParameter =
InkCanvasEditingMode
.EraseByStroke;
1731
InkCanvasEditingMode
mode = (
InkCanvasEditingMode
)args.Parameter;
1916
InkCanvasEditingMode
expectedMode = (
InkCanvasEditingMode
)parameter;
1917
InkCanvasEditingMode
currentMode = (
InkCanvasEditingMode
)o;
1942
InkCanvasEditingMode
sncInkEditingMode = (
InkCanvasEditingMode
)values[0];
1954
return
InkCanvasEditingMode
.None;
System\Windows\Ink\EditingMode.cs (3)
54
internal static bool IsDefined(
InkCanvasEditingMode
InkCanvasEditingMode)
56
return (InkCanvasEditingMode >=
InkCanvasEditingMode
.None && InkCanvasEditingMode <=
InkCanvasEditingMode
.EraseByStroke);