84 references to InkCanvas
PresentationFramework (84)
MS\Internal\Ink\EditBehavior.cs (2)
206
Transform layoutTransform = this.
InkCanvas
.LayoutTransform;
207
Transform renderTransform = this.
InkCanvas
.RenderTransform;
MS\Internal\Ink\EraserBehavior.cs (15)
170
&& ( _cachedStylusShape.Width !=
InkCanvas
.EraserShape.Width
171
|| _cachedStylusShape.Height !=
InkCanvas
.EraserShape.Height
172
|| _cachedStylusShape.Rotation !=
InkCanvas
.EraserShape.Rotation
173
|| _cachedStylusShape.GetType() !=
InkCanvas
.EraserShape.GetType()) )
199
this.
InkCanvas
.Strokes.GetIncrementalStrokeHitTester(this.
InkCanvas
.EraserShape);
277
_cachedStylusShape =
InkCanvas
.EraserShape;
296
DpiScale dpi = this.
InkCanvas
.GetDpi();
353
this.
InkCanvas
.RaiseStrokeErasing(args);
358
InkCanvas
.Strokes.Remove(e.HitStroke);
359
this.
InkCanvas
.RaiseInkErased();
391
this.
InkCanvas
.RaiseStrokeErasing(args);
407
this.
InkCanvas
.Strokes.Replace(strokesToReplace, eraseResult);
411
this.
InkCanvas
.Strokes.Remove(strokesToReplace);
429
this.
InkCanvas
.RaiseInkErased();
MS\Internal\Ink\InkCollectionBehavior.cs (17)
114
InkCanvas
.RaiseActiveEditingModeChanged(new RoutedEventArgs(InkCanvas.ActiveEditingModeChangedEvent,
InkCanvas
));
177
if (
InkCanvas
.InternalDynamicRenderer != null)
179
InkCanvas
.InternalDynamicRenderer.Enabled = true;
180
InkCanvas
.UpdateDynamicRenderer(); // Kick DynamicRenderer to be hooked up to renderer.
196
if (
InkCanvas
.InternalDynamicRenderer != null)
198
InkCanvas
.InternalDynamicRenderer.Enabled = false;
199
InkCanvas
.UpdateDynamicRenderer(); // Kick DynamicRenderer to be removed from renderer.
238
_strokeDrawingAttributes = this.
InkCanvas
.DefaultDrawingAttributes.Clone();
244
if (
InkCanvas
.InternalDynamicRenderer != null && inputDevice != null )
248
InkCanvas
.InternalDynamicRenderer.Reset(stylusDevice, stylusPoints);
300
InkCanvas
.RaiseGestureOrStrokeCollected(argsStroke, _userInitiated);
338
if ( _cachedPenCursor == null || _cursorDrawingAttributes !=
InkCanvas
.DefaultDrawingAttributes )
343
DrawingAttributes da = this.
InkCanvas
.DefaultDrawingAttributes;
357
_cursorDrawingAttributes =
InkCanvas
.DefaultDrawingAttributes.Clone();
358
DpiScale dpi = this.
InkCanvas
.GetDpi();
359
_cachedPenCursor = PenCursorManager.GetPenCursor(da, false, (this.
InkCanvas
.FlowDirection == FlowDirection.RightToLeft), dpi.DpiScaleX, dpi.DpiScaleY);
MS\Internal\Ink\LassoSelectionBehavior.cs (14)
247
selectedStrokes =
InkCanvas
.EndDynamicSelection(_lassoHelper.Visual);
288
InkCanvas
.ChangeInkCanvasSelection(selectedStrokes, elementsToSelect.ToArray());
329
this.
InkCanvas
.UpdateDynamicSelection(e.SelectedStrokes, e.DeselectedStrokes);
340
if ( this.
InkCanvas
.Children.Count == 0 )
345
for (int x = 0; x < this.
InkCanvas
.Children.Count; x++)
347
UIElement uiElement = this.
InkCanvas
.Children[x];
348
HitTestElement(
InkCanvas
.InnerCanvas, uiElement, elementsToSelect);
588
if (
InkCanvas
.ClearSelectionRaiseSelectionChanging() // If user cancels clearing the selection, we shouldn't initiate Lasso.
599
this.
InkCanvas
.Strokes.GetIncrementalLassoHitTester(_percentIntersectForInk);
610
InkCanvas
.BeginDynamicSelection(_lassoHelper.Visual);
636
StrokeCollection hitTestStrokes =
InkCanvas
.Strokes.HitTest(point, 5.0d);
643
GeneralTransform transformToInnerCanvas =
InkCanvas
.TransformToVisual(
InkCanvas
.InnerCanvas);
647
tappedElement =
InkCanvas
.InnerCanvas.HitTestOnElements(pointOnInnerCanvas);
MS\Internal\Ink\SelectionEditingBehavior.cs (18)
62
_hitResult =
InkCanvas
.SelectionAdorner.SelectionHandleHitTest(
63
mouse.GetPosition((IInputElement)(
InkCanvas
.SelectionAdorner)));
69
_selectionRect =
InkCanvas
.GetSelectionBounds( );
72
_previousLocation = mouse.GetPosition(
InkCanvas
.SelectionAdorner);
76
InkCanvas
.InkCanvasSelection.StartFeedbackAdorner(_selectionRect, _hitResult);
79
InkCanvas
.SelectionAdorner.AddHandler(Mouse.MouseUpEvent, new MouseButtonEventHandler(OnMouseUp));
80
InkCanvas
.SelectionAdorner.AddHandler(Mouse.MouseMoveEvent, new MouseEventHandler(OnMouseMove));
81
InkCanvas
.SelectionAdorner.AddHandler(UIElement.LostMouseCaptureEvent,
91
InkCanvas
.SelectionAdorner.RemoveHandler(Mouse.MouseUpEvent, new MouseButtonEventHandler(OnMouseUp));
92
InkCanvas
.SelectionAdorner.RemoveHandler(Mouse.MouseMoveEvent, new MouseEventHandler(OnMouseMove));
93
InkCanvas
.SelectionAdorner.RemoveHandler(UIElement.LostMouseCaptureEvent,
106
(this.
InkCanvas
.FlowDirection == FlowDirection.RightToLeft));
127
Point curPoint = args.GetPosition(
InkCanvas
.SelectionAdorner);
143
InkCanvas
.InkCanvasSelection.UpdateFeedbackAdorner(newRect);
158
_previousRect = ChangeFeedbackRectangle(args.GetPosition(
InkCanvas
.SelectionAdorner));
378
InkCanvas
.SelectionAdorner.CaptureMouse();
393
InkCanvas
.SelectionAdorner.ReleaseMouseCapture();
400
InkCanvas
.InkCanvasSelection.EndFeedbackAdorner(commit ? _previousRect : _selectionRect);
MS\Internal\Ink\SelectionEditor.cs (18)
55
Point currentPosition = Mouse.PrimaryDevice.GetPosition(
InkCanvas
.SelectionAdorner);
75
InkCanvas
.SelectionAdorner.AddHandler(Mouse.MouseDownEvent, new MouseButtonEventHandler(OnAdornerMouseButtonDownEvent));
76
InkCanvas
.SelectionAdorner.AddHandler(Mouse.MouseMoveEvent, new MouseEventHandler(OnAdornerMouseMoveEvent));
77
InkCanvas
.SelectionAdorner.AddHandler(Mouse.MouseEnterEvent, new MouseEventHandler(OnAdornerMouseMoveEvent));
78
InkCanvas
.SelectionAdorner.AddHandler(Mouse.MouseLeaveEvent, new MouseEventHandler(OnAdornerMouseLeaveEvent));
80
Point currentPosition = Mouse.PrimaryDevice.GetPosition(
InkCanvas
.SelectionAdorner);
90
InkCanvas
.SelectionAdorner.RemoveHandler(Mouse.MouseDownEvent, new MouseButtonEventHandler(OnAdornerMouseButtonDownEvent));
91
InkCanvas
.SelectionAdorner.RemoveHandler(Mouse.MouseMoveEvent, new MouseEventHandler(OnAdornerMouseMoveEvent));
92
InkCanvas
.SelectionAdorner.RemoveHandler(Mouse.MouseEnterEvent, new MouseEventHandler(OnAdornerMouseMoveEvent));
93
InkCanvas
.SelectionAdorner.RemoveHandler(Mouse.MouseLeaveEvent, new MouseEventHandler(OnAdornerMouseLeaveEvent));
114
if (
InkCanvas
.SelectionAdorner.IsMouseOver )
117
(this.
InkCanvas
.FlowDirection == FlowDirection.RightToLeft));
149
Point pointOnSelectionAdorner = args.GetPosition(
InkCanvas
.SelectionAdorner);
179
Point pointOnSelectionAdorner = args.GetPosition(
InkCanvas
.SelectionAdorner);
203
if (
InkCanvas
.InkCanvasSelection.HasSelection )
206
hitResult =
InkCanvas
.SelectionAdorner.SelectionHandleHitTest(position);
212
hitResult =
InkCanvas
.ResizeEnabled ? hitResult : InkCanvasSelectionHitResult.None;
216
hitResult =
InkCanvas
.MoveEnabled ? hitResult : InkCanvasSelectionHitResult.None;