97 references to InkCanvasEditingMode
PresentationFramework (97)
src\Framework\MS\Internal\Ink\EditingCoordinator.cs (14)
240
if ( ActiveEditingMode ==
InkCanvasEditingMode
.EraseByPoint )
315
internal IStylusEditing ChangeStylusEditingMode(StylusEditingBehavior sourceBehavior,
InkCanvasEditingMode
newMode)
343
if ( newMode ==
InkCanvasEditingMode
.Select
524
internal
InkCanvasEditingMode
ActiveEditingMode
589
private EditingBehavior GetBehavior(
InkCanvasEditingMode
editingMode)
595
case
InkCanvasEditingMode
.Ink:
596
case
InkCanvasEditingMode
.GestureOnly:
597
case
InkCanvasEditingMode
.InkAndGesture:
600
case
InkCanvasEditingMode
.Select:
603
case
InkCanvasEditingMode
.EraseByPoint:
604
case
InkCanvasEditingMode
.EraseByStroke:
726
if ( _inkCanvas.Focus() && ActiveEditingMode !=
InkCanvasEditingMode
.None )
1024
if ( _inkCanvas.IsStylusCaptured && ActiveEditingMode !=
InkCanvasEditingMode
.None )
1055
if ( _inkCanvas.IsMouseCaptured && ActiveEditingMode !=
InkCanvasEditingMode
.None )
src\Framework\MS\Internal\Ink\EraserBehavior.cs (17)
91
protected override void OnSwitchToMode(
InkCanvasEditingMode
mode)
97
case
InkCanvasEditingMode
.Ink:
98
case
InkCanvasEditingMode
.InkAndGesture:
99
case
InkCanvasEditingMode
.GestureOnly:
108
case
InkCanvasEditingMode
.EraseByPoint:
109
case
InkCanvasEditingMode
.EraseByStroke:
121
case
InkCanvasEditingMode
.Select:
146
case
InkCanvasEditingMode
.None:
164
InkCanvasEditingMode
newEraseMode = EditingCoordinator.ActiveEditingMode;
165
Debug.Assert(newEraseMode ==
InkCanvasEditingMode
.EraseByPoint
166
|| newEraseMode ==
InkCanvasEditingMode
.EraseByStroke);
175
else if ( newEraseMode ==
InkCanvasEditingMode
.EraseByPoint )
216
if (
InkCanvasEditingMode
.EraseByPoint == _cachedEraseMode )
237
if (
InkCanvasEditingMode
.EraseByPoint == _cachedEraseMode )
263
if (
InkCanvasEditingMode
.EraseByPoint == _cachedEraseMode )
287
if (
InkCanvasEditingMode
.EraseByPoint == _cachedEraseMode )
469
private
InkCanvasEditingMode
_cachedEraseMode;
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (2)
257
if ( _inkCanvas.ActiveEditingMode ==
InkCanvasEditingMode
.Select )
900
if ( _inkCanvas.ActiveEditingMode !=
InkCanvasEditingMode
.None )
src\Framework\MS\Internal\Ink\InkCollectionBehavior.cs (8)
136
protected override void OnSwitchToMode(
InkCanvasEditingMode
mode)
142
case
InkCanvasEditingMode
.Ink:
143
case
InkCanvasEditingMode
.InkAndGesture:
144
case
InkCanvasEditingMode
.GestureOnly:
150
case
InkCanvasEditingMode
.EraseByPoint:
151
case
InkCanvasEditingMode
.EraseByStroke:
160
case
InkCanvasEditingMode
.Select:
187
case
InkCanvasEditingMode
.None:
src\Framework\MS\Internal\Ink\LassoSelectionBehavior.cs (9)
78
protected override void OnSwitchToMode(
InkCanvasEditingMode
mode)
84
case
InkCanvasEditingMode
.Ink:
85
case
InkCanvasEditingMode
.InkAndGesture:
86
case
InkCanvasEditingMode
.GestureOnly:
95
case
InkCanvasEditingMode
.EraseByPoint:
96
case
InkCanvasEditingMode
.EraseByStroke:
106
case
InkCanvasEditingMode
.Select:
111
case
InkCanvasEditingMode
.None:
606
&& EditingCoordinator.ActiveEditingMode ==
InkCanvasEditingMode
.Select )
src\Framework\MS\Internal\Ink\StylusEditingBehavior.cs (2)
71
internal void SwitchToMode(
InkCanvasEditingMode
mode)
148
protected abstract void OnSwitchToMode(
InkCanvasEditingMode
mode);
src\Framework\System\Windows\Controls\InkCanvas.cs (27)
811
typeof(
InkCanvasEditingMode
),
813
new FrameworkPropertyMetadata(
InkCanvasEditingMode
.Ink));
823
public
InkCanvasEditingMode
ActiveEditingMode
825
get { return (
InkCanvasEditingMode
)GetValue(ActiveEditingModeProperty); }
834
typeof(
InkCanvasEditingMode
),
837
InkCanvasEditingMode
.Ink,
845
public
InkCanvasEditingMode
EditingMode
847
get { return (
InkCanvasEditingMode
)GetValue(EditingModeProperty); }
864
typeof(
InkCanvasEditingMode
),
867
InkCanvasEditingMode
.EraseByStroke,
874
public
InkCanvasEditingMode
EditingModeInverted
876
get { return (
InkCanvasEditingMode
)GetValue(EditingModeInvertedProperty); }
888
return EditingModeHelper.IsDefined((
InkCanvasEditingMode
)value);
1090
if ((this.ActiveEditingMode ==
InkCanvasEditingMode
.InkAndGesture ||
1091
this.ActiveEditingMode ==
InkCanvasEditingMode
.GestureOnly) &&
1144
if ( this.ActiveEditingMode ==
InkCanvasEditingMode
.Ink ||
1145
this.ActiveEditingMode ==
InkCanvasEditingMode
.InkAndGesture )
1309
InkCanvasEditingMode
mode = this.ActiveEditingMode;
1829
if ( EnsureActiveEditingMode(
InkCanvasEditingMode
.Select) )
2225
CoreChangeSelection(newStrokes, newElements.ToArray(), EditingMode ==
InkCanvasEditingMode
.Select);
2233
if (EditingMode !=
InkCanvasEditingMode
.Select)
2749
private bool EnsureActiveEditingMode(
InkCanvasEditingMode
newEditingMode)
2860
if ( inkCanvas.ActiveEditingMode ==
InkCanvasEditingMode
.Select )
2953
args.CanExecute = ( inkCanvas.ActiveEditingMode ==
InkCanvasEditingMode
.Select
3162
InkCanvasEditingMode
activeMode = (
InkCanvasEditingMode
)o;
3165
if ( activeMode !=
InkCanvasEditingMode
.None )
src\Framework\System\Windows\Controls\StickyNote.cs (15)
697
this.SetValue(InkEditingModeProperty,
InkCanvasEditingMode
.Ink);
776
typeof(
InkCanvasEditingMode
),
779
InkCanvasEditingMode
.None));
1666
checkedBind.ConverterParameter =
InkCanvasEditingMode
.Ink;
1678
checkedBind.ConverterParameter =
InkCanvasEditingMode
.Select;
1690
checkedBind.ConverterParameter =
InkCanvasEditingMode
.EraseByStroke;
1768
InkCanvasEditingMode
mode = (
InkCanvasEditingMode
)args.Parameter;
1953
InkCanvasEditingMode
expectedMode = (
InkCanvasEditingMode
)parameter;
1954
InkCanvasEditingMode
currentMode = (
InkCanvasEditingMode
)o;
1979
InkCanvasEditingMode
sncInkEditingMode = (
InkCanvasEditingMode
)values[0];
1991
return
InkCanvasEditingMode
.None;
src\Framework\System\Windows\Ink\EditingMode.cs (3)
57
internal static bool IsDefined(
InkCanvasEditingMode
InkCanvasEditingMode)
59
return (InkCanvasEditingMode >=
InkCanvasEditingMode
.None && InkCanvasEditingMode <=
InkCanvasEditingMode
.EraseByStroke);