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:
683
if ( _inkCanvas.Focus() && ActiveEditingMode !=
InkCanvasEditingMode
.None )
956
if ( _inkCanvas.IsStylusCaptured && ActiveEditingMode !=
InkCanvasEditingMode
.None )
986
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:
131
case
InkCanvasEditingMode
.None:
149
InkCanvasEditingMode
newEraseMode = EditingCoordinator.ActiveEditingMode;
150
Debug.Assert(newEraseMode ==
InkCanvasEditingMode
.EraseByPoint
151
|| newEraseMode ==
InkCanvasEditingMode
.EraseByStroke);
160
else if ( newEraseMode ==
InkCanvasEditingMode
.EraseByPoint )
201
if (
InkCanvasEditingMode
.EraseByPoint == _cachedEraseMode )
222
if (
InkCanvasEditingMode
.EraseByPoint == _cachedEraseMode )
248
if (
InkCanvasEditingMode
.EraseByPoint == _cachedEraseMode )
272
if (
InkCanvasEditingMode
.EraseByPoint == _cachedEraseMode )
453
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:
153
case
InkCanvasEditingMode
.None:
MS\Internal\Ink\LassoSelectionBehavior.cs (9)
67
protected override void OnSwitchToMode(
InkCanvasEditingMode
mode)
73
case
InkCanvasEditingMode
.Ink:
74
case
InkCanvasEditingMode
.InkAndGesture:
75
case
InkCanvasEditingMode
.GestureOnly:
84
case
InkCanvasEditingMode
.EraseByPoint:
85
case
InkCanvasEditingMode
.EraseByStroke:
95
case
InkCanvasEditingMode
.Select:
100
case
InkCanvasEditingMode
.None:
593
&& 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)
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) )
2128
CoreChangeSelection(newStrokes, newElements.ToArray(), EditingMode ==
InkCanvasEditingMode
.Select);
2136
if (EditingMode !=
InkCanvasEditingMode
.Select)
2613
private bool EnsureActiveEditingMode(
InkCanvasEditingMode
newEditingMode)
2724
if ( inkCanvas.ActiveEditingMode ==
InkCanvasEditingMode
.Select )
2811
args.CanExecute = ( inkCanvas.ActiveEditingMode ==
InkCanvasEditingMode
.Select
3019
InkCanvasEditingMode
activeMode = (
InkCanvasEditingMode
)o;
3022
if ( activeMode !=
InkCanvasEditingMode
.None )
System\Windows\Controls\StickyNote.cs (15)
654
this.SetValue(InkEditingModeProperty,
InkCanvasEditingMode
.Ink);
733
typeof(
InkCanvasEditingMode
),
736
InkCanvasEditingMode
.None));
1610
ConverterParameter =
InkCanvasEditingMode
.Ink
1624
ConverterParameter =
InkCanvasEditingMode
.Select
1638
ConverterParameter =
InkCanvasEditingMode
.EraseByStroke
1690
InkCanvasEditingMode
mode = (
InkCanvasEditingMode
)args.Parameter;
1875
InkCanvasEditingMode
expectedMode = (
InkCanvasEditingMode
)parameter;
1876
InkCanvasEditingMode
currentMode = (
InkCanvasEditingMode
)o;
1901
InkCanvasEditingMode
sncInkEditingMode = (
InkCanvasEditingMode
)values[0];
1913
return
InkCanvasEditingMode
.None;
System\Windows\Ink\EditingMode.cs (3)
52
internal static bool IsDefined(
InkCanvasEditingMode
InkCanvasEditingMode)
54
return (InkCanvasEditingMode >=
InkCanvasEditingMode
.None && InkCanvasEditingMode <=
InkCanvasEditingMode
.EraseByStroke);