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++) 343private void GetHandleRect(InkCanvasSelectionHitResult hitResult, Rect rectWireFrame, out Rect visibleRect, out Rect toleranceRect) 351case InkCanvasSelectionHitResult.TopLeft: 357case InkCanvasSelectionHitResult.Top: 364case InkCanvasSelectionHitResult.TopRight: 370case InkCanvasSelectionHitResult.Left: 377case InkCanvasSelectionHitResult.Right: 384case InkCanvasSelectionHitResult.BottomLeft: 390case InkCanvasSelectionHitResult.Bottom: 397case InkCanvasSelectionHitResult.BottomRight:
MS\Internal\Ink\InkCanvasSelection.cs (8)
127internal void StartFeedbackAdorner(Rect feedbackRect, InkCanvasSelectionHitResult activeSelectionHitResult) 130Debug.Assert(activeSelectionHitResult != InkCanvasSelectionHitResult.None, "activeSelectionHitResult cannot be InkCanvasSelectionHitResult.None."); 489internal InkCanvasSelectionHitResult HitTestSelection(Point pointOnInkCanvas) 500return InkCanvasSelectionHitResult.None; 507InkCanvasSelectionHitResult hitResult = _inkCanvas.SelectionAdorner.SelectionHandleHitTest(pointOnSelectionAdorner); 511if ( hitResult == InkCanvasSelectionHitResult.Selection 521hitResult = InkCanvasSelectionHitResult.None; 1112private Nullable<InkCanvasSelectionHitResult> _activeSelectionHitResult;
MS\Internal\Ink\PenCursorManager.cs (10)
117internal static Cursor GetSelectionCursor(InkCanvasSelectionHitResult hitResult, bool isRightToLeft) 123case InkCanvasSelectionHitResult.TopLeft: 124case InkCanvasSelectionHitResult.BottomRight: 137case InkCanvasSelectionHitResult.Bottom: 138case InkCanvasSelectionHitResult.Top: 144case InkCanvasSelectionHitResult.BottomLeft: 145case InkCanvasSelectionHitResult.TopRight: 158case InkCanvasSelectionHitResult.Left: 159case InkCanvasSelectionHitResult.Right: 164case InkCanvasSelectionHitResult.Selection:
MS\Internal\Ink\SelectionEditingBehavior.cs (32)
64Debug.Assert(_hitResult != InkCanvasSelectionHitResult.None); 188if ( _hitResult == InkCanvasSelectionHitResult.TopLeft || 189_hitResult == InkCanvasSelectionHitResult.BottomLeft || 190_hitResult == InkCanvasSelectionHitResult.Left ) 199if ( _hitResult == InkCanvasSelectionHitResult.TopRight || 200_hitResult == InkCanvasSelectionHitResult.BottomRight || 201_hitResult == InkCanvasSelectionHitResult.Right ) 210if ( _hitResult == InkCanvasSelectionHitResult.TopLeft || 211_hitResult == InkCanvasSelectionHitResult.TopRight || 212_hitResult == InkCanvasSelectionHitResult.Top ) 221if ( _hitResult == InkCanvasSelectionHitResult.BottomLeft || 222_hitResult == InkCanvasSelectionHitResult.BottomRight || 223_hitResult == InkCanvasSelectionHitResult.Bottom ) 235if ( _hitResult == InkCanvasSelectionHitResult.BottomRight || 236_hitResult == InkCanvasSelectionHitResult.BottomLeft || 237_hitResult == InkCanvasSelectionHitResult.TopRight || 238_hitResult == InkCanvasSelectionHitResult.TopLeft || 239_hitResult == InkCanvasSelectionHitResult.Selection ) 244else if ( _hitResult == InkCanvasSelectionHitResult.Left || 245_hitResult == InkCanvasSelectionHitResult.Right ) 249else if ( _hitResult == InkCanvasSelectionHitResult.Top || 250_hitResult == InkCanvasSelectionHitResult.Bottom ) 269case InkCanvasSelectionHitResult.BottomRight: 275case InkCanvasSelectionHitResult.Bottom: 280case InkCanvasSelectionHitResult.BottomLeft: 286case InkCanvasSelectionHitResult.TopRight: 292case InkCanvasSelectionHitResult.Top: 297case InkCanvasSelectionHitResult.TopLeft: 303case InkCanvasSelectionHitResult.Left: 308case InkCanvasSelectionHitResult.Right: 313case InkCanvasSelectionHitResult.Selection: 417private InkCanvasSelectionHitResult _hitResult;
MS\Internal\Ink\SelectionEditor.cs (13)
150InkCanvasSelectionHitResult hitResult = InkCanvasSelectionHitResult.None; 154if ( hitResult != InkCanvasSelectionHitResult.None ) 198private InkCanvasSelectionHitResult HitTestOnSelectionAdorner(Point position) 200InkCanvasSelectionHitResult hitResult = InkCanvasSelectionHitResult.None; 209if ( hitResult >= InkCanvasSelectionHitResult.TopLeft && hitResult <= InkCanvasSelectionHitResult.Left ) 211hitResult = InkCanvas.ResizeEnabled ? hitResult : InkCanvasSelectionHitResult.None; 213else if ( hitResult == InkCanvasSelectionHitResult.Selection ) 215hitResult = InkCanvas.MoveEnabled ? hitResult : InkCanvasSelectionHitResult.None; 231InkCanvasSelectionHitResult hitResult = HitTestOnSelectionAdorner(hitPoint); 251private InkCanvasSelectionHitResult _hitResult;
System\Windows\Controls\InkCanvas.cs (1)
1773public InkCanvasSelectionHitResult HitTestSelection(Point point)