84 references to InkCanvasSelectionHitResult
PresentationFramework (84)
src\Framework\MS\Internal\Controls\InkCanvasSelectionAdorner.cs (20)
112
internal
InkCanvasSelectionHitResult
SelectionHandleHitTest(Point point)
114
InkCanvasSelectionHitResult
result =
InkCanvasSelectionHitResult
.None;
120
for (
InkCanvasSelectionHitResult
hitResult =
InkCanvasSelectionHitResult
.TopLeft;
121
hitResult <=
InkCanvasSelectionHitResult
.Left; hitResult++ )
135
if ( result ==
InkCanvasSelectionHitResult
.None )
140
result =
InkCanvasSelectionHitResult
.Selection;
232
for (
InkCanvasSelectionHitResult
hitResult =
InkCanvasSelectionHitResult
.TopLeft;
233
hitResult <=
InkCanvasSelectionHitResult
.Left; hitResult++ )
357
private void GetHandleRect(
InkCanvasSelectionHitResult
hitResult, Rect rectWireFrame, out Rect visibleRect, out Rect toleranceRect)
365
case
InkCanvasSelectionHitResult
.TopLeft:
371
case
InkCanvasSelectionHitResult
.Top:
378
case
InkCanvasSelectionHitResult
.TopRight:
384
case
InkCanvasSelectionHitResult
.Left:
391
case
InkCanvasSelectionHitResult
.Right:
398
case
InkCanvasSelectionHitResult
.BottomLeft:
404
case
InkCanvasSelectionHitResult
.Bottom:
411
case
InkCanvasSelectionHitResult
.BottomRight:
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (8)
148
internal void StartFeedbackAdorner(Rect feedbackRect,
InkCanvasSelectionHitResult
activeSelectionHitResult)
151
Debug.Assert(activeSelectionHitResult !=
InkCanvasSelectionHitResult
.None, "activeSelectionHitResult cannot be InkCanvasSelectionHitResult.None.");
512
internal
InkCanvasSelectionHitResult
HitTestSelection(Point pointOnInkCanvas)
523
return
InkCanvasSelectionHitResult
.None;
530
InkCanvasSelectionHitResult
hitResult = _inkCanvas.SelectionAdorner.SelectionHandleHitTest(pointOnSelectionAdorner);
534
if ( hitResult ==
InkCanvasSelectionHitResult
.Selection
544
hitResult =
InkCanvasSelectionHitResult
.None;
1137
private Nullable<
InkCanvasSelectionHitResult
> _activeSelectionHitResult;
src\Framework\MS\Internal\Ink\PenCursorManager.cs (10)
136
internal static Cursor GetSelectionCursor(
InkCanvasSelectionHitResult
hitResult, bool isRightToLeft)
142
case
InkCanvasSelectionHitResult
.TopLeft:
143
case
InkCanvasSelectionHitResult
.BottomRight:
156
case
InkCanvasSelectionHitResult
.Bottom:
157
case
InkCanvasSelectionHitResult
.Top:
163
case
InkCanvasSelectionHitResult
.BottomLeft:
164
case
InkCanvasSelectionHitResult
.TopRight:
177
case
InkCanvasSelectionHitResult
.Left:
178
case
InkCanvasSelectionHitResult
.Right:
183
case
InkCanvasSelectionHitResult
.Selection:
src\Framework\MS\Internal\Ink\SelectionEditingBehavior.cs (32)
80
Debug.Assert(_hitResult !=
InkCanvasSelectionHitResult
.None);
205
if ( _hitResult ==
InkCanvasSelectionHitResult
.TopLeft ||
206
_hitResult ==
InkCanvasSelectionHitResult
.BottomLeft ||
207
_hitResult ==
InkCanvasSelectionHitResult
.Left )
216
if ( _hitResult ==
InkCanvasSelectionHitResult
.TopRight ||
217
_hitResult ==
InkCanvasSelectionHitResult
.BottomRight ||
218
_hitResult ==
InkCanvasSelectionHitResult
.Right )
227
if ( _hitResult ==
InkCanvasSelectionHitResult
.TopLeft ||
228
_hitResult ==
InkCanvasSelectionHitResult
.TopRight ||
229
_hitResult ==
InkCanvasSelectionHitResult
.Top )
238
if ( _hitResult ==
InkCanvasSelectionHitResult
.BottomLeft ||
239
_hitResult ==
InkCanvasSelectionHitResult
.BottomRight ||
240
_hitResult ==
InkCanvasSelectionHitResult
.Bottom )
252
if ( _hitResult ==
InkCanvasSelectionHitResult
.BottomRight ||
253
_hitResult ==
InkCanvasSelectionHitResult
.BottomLeft ||
254
_hitResult ==
InkCanvasSelectionHitResult
.TopRight ||
255
_hitResult ==
InkCanvasSelectionHitResult
.TopLeft ||
256
_hitResult ==
InkCanvasSelectionHitResult
.Selection )
261
else if ( _hitResult ==
InkCanvasSelectionHitResult
.Left ||
262
_hitResult ==
InkCanvasSelectionHitResult
.Right )
266
else if ( _hitResult ==
InkCanvasSelectionHitResult
.Top ||
267
_hitResult ==
InkCanvasSelectionHitResult
.Bottom )
287
case
InkCanvasSelectionHitResult
.BottomRight:
293
case
InkCanvasSelectionHitResult
.Bottom:
298
case
InkCanvasSelectionHitResult
.BottomLeft:
304
case
InkCanvasSelectionHitResult
.TopRight:
310
case
InkCanvasSelectionHitResult
.Top:
315
case
InkCanvasSelectionHitResult
.TopLeft:
321
case
InkCanvasSelectionHitResult
.Left:
326
case
InkCanvasSelectionHitResult
.Right:
331
case
InkCanvasSelectionHitResult
.Selection:
435
private
InkCanvasSelectionHitResult
_hitResult;
src\Framework\MS\Internal\Ink\SelectionEditor.cs (13)
180
InkCanvasSelectionHitResult
hitResult =
InkCanvasSelectionHitResult
.None;
184
if ( hitResult !=
InkCanvasSelectionHitResult
.None )
235
private
InkCanvasSelectionHitResult
HitTestOnSelectionAdorner(Point position)
237
InkCanvasSelectionHitResult
hitResult =
InkCanvasSelectionHitResult
.None;
246
if ( hitResult >=
InkCanvasSelectionHitResult
.TopLeft && hitResult <=
InkCanvasSelectionHitResult
.Left )
248
hitResult = InkCanvas.ResizeEnabled ? hitResult :
InkCanvasSelectionHitResult
.None;
250
else if ( hitResult ==
InkCanvasSelectionHitResult
.Selection )
252
hitResult = InkCanvas.MoveEnabled ? hitResult :
InkCanvasSelectionHitResult
.None;
268
InkCanvasSelectionHitResult
hitResult = HitTestOnSelectionAdorner(hitPoint);
288
private
InkCanvasSelectionHitResult
_hitResult;
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
1850
public
InkCanvasSelectionHitResult
HitTestSelection(Point point)