84 references to InkCanvasSelectionHitResult
PresentationFramework (84)
MS\Internal\Controls\InkCanvasSelectionAdorner.cs (20)
97internal InkCanvasSelectionHitResult SelectionHandleHitTest(Point point) 99InkCanvasSelectionHitResult result = InkCanvasSelectionHitResult.None; 105for (InkCanvasSelectionHitResult hitResult = InkCanvasSelectionHitResult.TopLeft; 106hitResult <= InkCanvasSelectionHitResult.Left; hitResult++) 120if (result == InkCanvasSelectionHitResult.None) 125result = InkCanvasSelectionHitResult.Selection; 216for (InkCanvasSelectionHitResult hitResult = InkCanvasSelectionHitResult.TopLeft; 217hitResult <= InkCanvasSelectionHitResult.Left; hitResult++) 341private void GetHandleRect(InkCanvasSelectionHitResult hitResult, Rect rectWireFrame, out Rect visibleRect, out Rect toleranceRect) 349case InkCanvasSelectionHitResult.TopLeft: 355case InkCanvasSelectionHitResult.Top: 362case InkCanvasSelectionHitResult.TopRight: 368case InkCanvasSelectionHitResult.Left: 375case InkCanvasSelectionHitResult.Right: 382case InkCanvasSelectionHitResult.BottomLeft: 388case InkCanvasSelectionHitResult.Bottom: 395case InkCanvasSelectionHitResult.BottomRight:
MS\Internal\Ink\InkCanvasSelection.cs (8)
128internal void StartFeedbackAdorner(Rect feedbackRect, InkCanvasSelectionHitResult activeSelectionHitResult) 131Debug.Assert(activeSelectionHitResult != InkCanvasSelectionHitResult.None, "activeSelectionHitResult cannot be InkCanvasSelectionHitResult.None."); 490internal InkCanvasSelectionHitResult HitTestSelection(Point pointOnInkCanvas) 501return InkCanvasSelectionHitResult.None; 508InkCanvasSelectionHitResult hitResult = _inkCanvas.SelectionAdorner.SelectionHandleHitTest(pointOnSelectionAdorner); 512if ( hitResult == InkCanvasSelectionHitResult.Selection 522hitResult = InkCanvasSelectionHitResult.None; 1113private Nullable<InkCanvasSelectionHitResult> _activeSelectionHitResult;
MS\Internal\Ink\PenCursorManager.cs (10)
118internal static Cursor GetSelectionCursor(InkCanvasSelectionHitResult hitResult, bool isRightToLeft) 124case InkCanvasSelectionHitResult.TopLeft: 125case InkCanvasSelectionHitResult.BottomRight: 138case InkCanvasSelectionHitResult.Bottom: 139case InkCanvasSelectionHitResult.Top: 145case InkCanvasSelectionHitResult.BottomLeft: 146case InkCanvasSelectionHitResult.TopRight: 159case InkCanvasSelectionHitResult.Left: 160case InkCanvasSelectionHitResult.Right: 165case InkCanvasSelectionHitResult.Selection:
MS\Internal\Ink\SelectionEditingBehavior.cs (32)
65Debug.Assert(_hitResult != InkCanvasSelectionHitResult.None); 189if ( _hitResult == InkCanvasSelectionHitResult.TopLeft || 190_hitResult == InkCanvasSelectionHitResult.BottomLeft || 191_hitResult == InkCanvasSelectionHitResult.Left ) 200if ( _hitResult == InkCanvasSelectionHitResult.TopRight || 201_hitResult == InkCanvasSelectionHitResult.BottomRight || 202_hitResult == InkCanvasSelectionHitResult.Right ) 211if ( _hitResult == InkCanvasSelectionHitResult.TopLeft || 212_hitResult == InkCanvasSelectionHitResult.TopRight || 213_hitResult == InkCanvasSelectionHitResult.Top ) 222if ( _hitResult == InkCanvasSelectionHitResult.BottomLeft || 223_hitResult == InkCanvasSelectionHitResult.BottomRight || 224_hitResult == InkCanvasSelectionHitResult.Bottom ) 236if ( _hitResult == InkCanvasSelectionHitResult.BottomRight || 237_hitResult == InkCanvasSelectionHitResult.BottomLeft || 238_hitResult == InkCanvasSelectionHitResult.TopRight || 239_hitResult == InkCanvasSelectionHitResult.TopLeft || 240_hitResult == InkCanvasSelectionHitResult.Selection ) 245else if ( _hitResult == InkCanvasSelectionHitResult.Left || 246_hitResult == InkCanvasSelectionHitResult.Right ) 250else if ( _hitResult == InkCanvasSelectionHitResult.Top || 251_hitResult == InkCanvasSelectionHitResult.Bottom ) 270case InkCanvasSelectionHitResult.BottomRight: 276case InkCanvasSelectionHitResult.Bottom: 281case InkCanvasSelectionHitResult.BottomLeft: 287case InkCanvasSelectionHitResult.TopRight: 293case InkCanvasSelectionHitResult.Top: 298case InkCanvasSelectionHitResult.TopLeft: 304case InkCanvasSelectionHitResult.Left: 309case InkCanvasSelectionHitResult.Right: 314case InkCanvasSelectionHitResult.Selection: 418private InkCanvasSelectionHitResult _hitResult;
MS\Internal\Ink\SelectionEditor.cs (13)
151InkCanvasSelectionHitResult hitResult = InkCanvasSelectionHitResult.None; 155if ( hitResult != InkCanvasSelectionHitResult.None ) 199private InkCanvasSelectionHitResult HitTestOnSelectionAdorner(Point position) 201InkCanvasSelectionHitResult hitResult = InkCanvasSelectionHitResult.None; 210if ( hitResult >= InkCanvasSelectionHitResult.TopLeft && hitResult <= InkCanvasSelectionHitResult.Left ) 212hitResult = InkCanvas.ResizeEnabled ? hitResult : InkCanvasSelectionHitResult.None; 214else if ( hitResult == InkCanvasSelectionHitResult.Selection ) 216hitResult = InkCanvas.MoveEnabled ? hitResult : InkCanvasSelectionHitResult.None; 232InkCanvasSelectionHitResult hitResult = HitTestOnSelectionAdorner(hitPoint); 252private InkCanvasSelectionHitResult _hitResult;
System\Windows\Controls\InkCanvas.cs (1)
1762public InkCanvasSelectionHitResult HitTestSelection(Point point)