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