3 instantiations of InkCanvas
PresentationFramework (3)
MS\Internal\Ink\ClipboardProcessor.cs (1)
317InkCanvas inkCanvas = new InkCanvas();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5832DefaultConstructor = delegate () { return new System.Windows.Controls.InkCanvas(); },
System\Windows\Markup\KnownTypes.cs (1)
1320case KnownElements.InkCanvas: o = new System.Windows.Controls.InkCanvas(); break;
150 references to InkCanvas
PresentationFramework (150)
MS\Internal\Controls\InkCanvasFeedbackAdorner.cs (2)
29internal InkCanvasFeedbackAdorner(InkCanvas inkCanvas) 164private InkCanvas _inkCanvas;
MS\Internal\Controls\InkCanvasInnerCanvas.cs (9)
30internal InkCanvasInnerCanvas(InkCanvas inkCanvas) 91double left = (double)InkCanvas.GetLeft(child); 101double top = (double)InkCanvas.GetTop(child); 142double left = (double)InkCanvas.GetLeft(child); 149double right = (double)InkCanvas.GetRight(child); 157double top = (double)InkCanvas.GetTop(child); 164double bottom = (double)InkCanvas.GetBottom(child); 306internal InkCanvas InkCanvas 336private InkCanvas _inkCanvas;
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (8)
343public StickyNoteInkCanvas(InkCanvas canvas) 364((InkCanvas)InnerControl).Strokes.Clear(); 375StrokeCollection strokes = ((InkCanvas)InnerControl).Strokes; 412((InkCanvas)InnerControl).Strokes = strokes; 432return ((InkCanvas)InnerControl).Strokes.Count == 0; 484InkCanvas canvas = content as InkCanvas; 486throw new InvalidOperationException(SR.Format(SR.InvalidStickyNoteTemplate, type, typeof(InkCanvas), SNBConstants.c_ContentControlId));
MS\Internal\Ink\ClipboardProcessor.cs (7)
51internal ClipboardProcessor(InkCanvas inkCanvas) 207if (elements.Count == 1 && elements[0] is InkCanvas inkCanvas) 317InkCanvas inkCanvas = new InkCanvas(); 371private void TearDownInkCanvasContainer(InkCanvas rootInkCanvas, ref StrokeCollection newStrokes, ref List<UIElement> newElements) 404private InkCanvas InkCanvas 422s_InkCanvasDType = DependencyObjectType.FromSystemTypeInternal(typeof(InkCanvas)); 440private InkCanvas _inkCanvas;
MS\Internal\Ink\DrawingAttributesDefaultValueFactory.cs (7)
42DrawingAttributesDefaultPromoter promoter = new DrawingAttributesDefaultPromoter((InkCanvas)owner); 59internal DrawingAttributesDefaultPromoter(InkCanvas owner) 80if (_owner.ReadLocalValue(InkCanvas.DefaultDrawingAttributesProperty) == DependencyProperty.UnsetValue) 83_owner.SetValue(InkCanvas.DefaultDrawingAttributesProperty, value); 88PropertyMetadata metadata = InkCanvas.DefaultDrawingAttributesProperty.GetMetadata(_owner.DependencyObjectType); 89metadata.ClearCachedDefaultValue(_owner, InkCanvas.DefaultDrawingAttributesProperty); 92private readonly InkCanvas _owner;
MS\Internal\Ink\EditBehavior.cs (3)
38internal EditingBehavior(EditingCoordinator editingCoordinator, InkCanvas inkCanvas) 236protected InkCanvas InkCanvas 264private InkCanvas _inkCanvas;
MS\Internal\Ink\EditingCoordinator.cs (5)
36internal EditingCoordinator(InkCanvas inkCanvas) 110_inkCanvas.RaiseActiveEditingModeChanged(new RoutedEventArgs(InkCanvas.ActiveEditingModeChangedEvent, _inkCanvas)); 330_inkCanvas.RaiseActiveEditingModeChanged(new RoutedEventArgs(InkCanvas.ActiveEditingModeChangedEvent, _inkCanvas)); 1254_inkCanvas.RaiseActiveEditingModeChanged(new RoutedEventArgs(InkCanvas.ActiveEditingModeChangedEvent, _inkCanvas)); 1385private InkCanvas _inkCanvas;
MS\Internal\Ink\EraserBehavior.cs (1)
34internal EraserBehavior(EditingCoordinator editingCoordinator, InkCanvas inkCanvas)
MS\Internal\Ink\InkCanvasSelection.cs (12)
38internal InkCanvasSelection(InkCanvas inkCanvas) 424double left = InkCanvas.GetLeft(originalElement); 425double top = InkCanvas.GetTop(originalElement); 426double right = InkCanvas.GetRight(originalElement); 427double bottom = InkCanvas.GetBottom(originalElement); 452InkCanvas.SetLeft(updatedElement, newPosition.X - thickness.Left); // Left wasn't auto 459InkCanvas.SetRight(updatedElement, ( right - ( newPosition.X - originalPosition.X ) )); // Right wasn't not auto 463InkCanvas.SetLeft(updatedElement, newPosition.X - thickness.Left); // Both Left and Right were aut. Modify Left by default. 468InkCanvas.SetTop(updatedElement, newPosition.Y - thickness.Top); // Top wasn't auto 472InkCanvas.SetBottom(updatedElement, ( bottom - ( newPosition.Y - originalPosition.Y ) )); // Bottom wasn't not auto 476InkCanvas.SetTop(updatedElement, newPosition.Y - thickness.Top); // Both Top and Bottom were aut. Modify Left by default. 1094private InkCanvas _inkCanvas;
MS\Internal\Ink\InkCollectionBehavior.cs (2)
35internal InkCollectionBehavior(EditingCoordinator editingCoordinator, InkCanvas inkCanvas) 114InkCanvas.RaiseActiveEditingModeChanged(new RoutedEventArgs(InkCanvas.ActiveEditingModeChangedEvent, InkCanvas));
MS\Internal\Ink\LassoSelectionBehavior.cs (1)
36internal LassoSelectionBehavior(EditingCoordinator editingCoordinator, InkCanvas inkCanvas)
MS\Internal\Ink\SelectionEditingBehavior.cs (1)
34internal SelectionEditingBehavior(EditingCoordinator editingCoordinator, InkCanvas inkCanvas)
MS\Internal\Ink\SelectionEditor.cs (1)
36internal SelectionEditor(EditingCoordinator editingCoordinator, InkCanvas inkCanvas) : base (editingCoordinator, inkCanvas)
MS\Internal\Ink\StylusEditingBehavior.cs (1)
41internal StylusEditingBehavior(EditingCoordinator editingCoordinator, InkCanvas inkCanvas)
System\Windows\Automation\Peers\InkCanvasAutomationPeer.cs (1)
13public InkCanvasAutomationPeer(InkCanvas owner)
System\Windows\Controls\InkCanvas.cs (70)
47Type ownerType = typeof(InkCanvas); 80CommandHelpers.RegisterCommandHandler(ownerType, InkCanvas.DeselectCommand, 97defaultStyle.Setters.Add(new Setter(InkCanvas.BackgroundProperty, 138DefaultStyleKeyProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(typeof(InkCanvas))); 403typeof(InkCanvas), 422DependencyProperty.RegisterAttached("Top", typeof(double), typeof(InkCanvas), 431/// <seealso cref="InkCanvas.TopProperty" /> 445/// <seealso cref="InkCanvas.TopProperty" /> 456DependencyProperty.RegisterAttached("Bottom", typeof(double), typeof(InkCanvas), 465/// <seealso cref="InkCanvas.BottomProperty" /> 479/// <seealso cref="InkCanvas.BottomProperty" /> 490DependencyProperty.RegisterAttached("Left", typeof(double), typeof(InkCanvas), 499/// <seealso cref="InkCanvas.LeftProperty" /> 513/// <seealso cref="InkCanvas.LeftProperty" /> 524DependencyProperty.RegisterAttached("Right", typeof(double), typeof(InkCanvas), 533/// <seealso cref="InkCanvas.RightProperty" /> 547/// <seealso cref="InkCanvas.RightProperty" /> 568if ( e.Property == InkCanvas.LeftProperty 569|| e.Property == InkCanvas.TopProperty ) 576Debug.Assert(e.Property == InkCanvas.RightProperty || e.Property == InkCanvas.BottomProperty, 591typeof(InkCanvas), 607InkCanvas inkCanvas = (InkCanvas)d; 647Path = new PropertyPath(InkCanvas.ActiveEditingModeProperty), 712typeof(InkCanvas), 730InkCanvas inkCanvas = (InkCanvas)d; 793typeof(InkCanvas), 816typeof(InkCanvas), 835( (InkCanvas)d ).RaiseEditingModeChanged( 836new RoutedEventArgs(InkCanvas.EditingModeChangedEvent, d)); 846typeof(InkCanvas), 863( (InkCanvas)d ).RaiseEditingModeInvertedChanged( 864new RoutedEventArgs(InkCanvas.EditingModeInvertedChangedEvent, d)); 1001EventManager.RegisterRoutedEvent("StrokeCollected", RoutingStrategy.Bubble, typeof(InkCanvasStrokeCollectedEventHandler), typeof(InkCanvas)); 1011AddHandler(InkCanvas.StrokeCollectedEvent, value); 1016RemoveHandler(InkCanvas.StrokeCollectedEvent, value); 1132EventManager.RegisterRoutedEvent("Gesture", RoutingStrategy.Bubble, typeof(InkCanvasGestureEventHandler), typeof(InkCanvas)); 1142AddHandler(InkCanvas.GestureEvent, value); 1147RemoveHandler(InkCanvas.GestureEvent, value); 1223EventManager.RegisterRoutedEvent("ActiveEditingModeChanged", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(InkCanvas)); 1233AddHandler(InkCanvas.ActiveEditingModeChangedEvent, value); 1237RemoveHandler(InkCanvas.ActiveEditingModeChangedEvent, value); 1279EventManager.RegisterRoutedEvent("EditingModeChanged", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(InkCanvas)); 1289AddHandler(InkCanvas.EditingModeChangedEvent, value); 1294RemoveHandler(InkCanvas.EditingModeChangedEvent, value); 1333EventManager.RegisterRoutedEvent("EditingModeInvertedChanged", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(InkCanvas)); 1343AddHandler(InkCanvas.EditingModeInvertedChangedEvent, value); 1348RemoveHandler(InkCanvas.EditingModeInvertedChangedEvent, value); 1481EventManager.RegisterRoutedEvent("StrokeErased", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(InkCanvas)); 1491AddHandler(InkCanvas.StrokeErasedEvent, value); 1496RemoveHandler(InkCanvas.StrokeErasedEvent, value); 1519new RoutedEventArgs(InkCanvas.StrokeErasedEvent, this)); 2035Path = new PropertyPath(InkCanvas.StrokesProperty), 2053internal static readonly RoutedCommand DeselectCommand = new RoutedCommand("Deselect", typeof(InkCanvas)); 2204Path = new PropertyPath(InkCanvas.BackgroundProperty), 2468Type ownerType = typeof(InkCanvas); 2704InkCanvas inkCanvas = sender as InkCanvas; 2762else if ( command == InkCanvas.DeselectCommand ) 2777InkCanvas inkCanvas = sender as InkCanvas; 2789|| command == InkCanvas.DeselectCommand ) 2854( (InkCanvas)sender ).EditingCoordinator.OnInkCanvasDeviceDown(sender, e); 2866((InkCanvas)sender).EditingCoordinator.OnInkCanvasDeviceUp(sender, e); 2876InkCanvas inkCanvas = (InkCanvas)sender; 2936internal RTIHighContrastCallback(InkCanvas inkCanvas) 3007private InkCanvas _thisInkCanvas;
System\Windows\Controls\StickyNote.cs (10)
651InkCanvas innerInkCanvas = Content.InnerControl as InkCanvas; 965Invariant.Assert(Content != null && Content.InnerControl is InkCanvas); 1482Content.InnerControl.SetBinding(InkCanvas.EditingModeProperty, inkCanvasEditingMode); 1506BindingOperations.ClearBinding(innerControl, InkCanvas.EditingModeProperty); 1521InkCanvas inkCanvas = Content.InnerControl as InkCanvas; 1546InkCanvas inkCanvas = Content.InnerControl as InkCanvas; 1783( (InkCanvas)( Content.InnerControl ) ).DefaultDrawingAttributes = da;
System\Windows\Ink\Events.cs (2)
30public InkCanvasStrokeCollectedEventArgs(Swi.Stroke stroke) : base(InkCanvas.StrokeCollectedEvent) 301: base(InkCanvas.GestureEvent)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
382case 288: t = () => typeof(InkCanvas); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
5107Type type = typeof(System.Windows.Controls.InkCanvas); 5109this.GetXamlType(typeof(System.Windows.Controls.InkCanvas)), // DeclaringType 5116GetDelegate = delegate (object target) { return ((System.Windows.Controls.InkCanvas)target).Children; },
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5829typeof(System.Windows.Controls.InkCanvas),
System\Windows\Markup\KnownTypes.cs (2)
2495case KnownElements.InkCanvas: return (o as System.Windows.Controls.InkCanvas).Children; 5836case KnownElements.InkCanvas: t = typeof(System.Windows.Controls.InkCanvas); break;