3 instantiations of InkCanvas
PresentationFramework (3)
MS\Internal\Ink\ClipboardProcessor.cs (1)
317InkCanvas inkCanvas = new InkCanvas();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5351bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.InkCanvas(); };
System\Windows\Markup\KnownTypes.cs (1)
1326case 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)
35internal 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, 130DefaultStyleKeyProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(typeof(InkCanvas))); 393typeof(InkCanvas), 412DependencyProperty.RegisterAttached("Top", typeof(double), typeof(InkCanvas), 421/// <seealso cref="InkCanvas.TopProperty" /> 435/// <seealso cref="InkCanvas.TopProperty" /> 446DependencyProperty.RegisterAttached("Bottom", typeof(double), typeof(InkCanvas), 455/// <seealso cref="InkCanvas.BottomProperty" /> 469/// <seealso cref="InkCanvas.BottomProperty" /> 480DependencyProperty.RegisterAttached("Left", typeof(double), typeof(InkCanvas), 489/// <seealso cref="InkCanvas.LeftProperty" /> 503/// <seealso cref="InkCanvas.LeftProperty" /> 514DependencyProperty.RegisterAttached("Right", typeof(double), typeof(InkCanvas), 523/// <seealso cref="InkCanvas.RightProperty" /> 537/// <seealso cref="InkCanvas.RightProperty" /> 558if ( e.Property == InkCanvas.LeftProperty 559|| e.Property == InkCanvas.TopProperty ) 566Debug.Assert(e.Property == InkCanvas.RightProperty || e.Property == InkCanvas.BottomProperty, 581typeof(InkCanvas), 597InkCanvas inkCanvas = (InkCanvas)d; 636activeEditingModeBinding.Path = new PropertyPath(InkCanvas.ActiveEditingModeProperty); 700typeof(InkCanvas), 718InkCanvas inkCanvas = (InkCanvas)d; 781typeof(InkCanvas), 804typeof(InkCanvas), 823( (InkCanvas)d ).RaiseEditingModeChanged( 824new RoutedEventArgs(InkCanvas.EditingModeChangedEvent, d)); 834typeof(InkCanvas), 851( (InkCanvas)d ).RaiseEditingModeInvertedChanged( 852new RoutedEventArgs(InkCanvas.EditingModeInvertedChangedEvent, d)); 989EventManager.RegisterRoutedEvent("StrokeCollected", RoutingStrategy.Bubble, typeof(InkCanvasStrokeCollectedEventHandler), typeof(InkCanvas)); 999AddHandler(InkCanvas.StrokeCollectedEvent, value); 1004RemoveHandler(InkCanvas.StrokeCollectedEvent, value); 1120EventManager.RegisterRoutedEvent("Gesture", RoutingStrategy.Bubble, typeof(InkCanvasGestureEventHandler), typeof(InkCanvas)); 1130AddHandler(InkCanvas.GestureEvent, value); 1135RemoveHandler(InkCanvas.GestureEvent, value); 1211EventManager.RegisterRoutedEvent("ActiveEditingModeChanged", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(InkCanvas)); 1221AddHandler(InkCanvas.ActiveEditingModeChangedEvent, value); 1225RemoveHandler(InkCanvas.ActiveEditingModeChangedEvent, value); 1267EventManager.RegisterRoutedEvent("EditingModeChanged", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(InkCanvas)); 1277AddHandler(InkCanvas.EditingModeChangedEvent, value); 1282RemoveHandler(InkCanvas.EditingModeChangedEvent, value); 1321EventManager.RegisterRoutedEvent("EditingModeInvertedChanged", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(InkCanvas)); 1331AddHandler(InkCanvas.EditingModeInvertedChangedEvent, value); 1336RemoveHandler(InkCanvas.EditingModeInvertedChangedEvent, value); 1469EventManager.RegisterRoutedEvent("StrokeErased", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(InkCanvas)); 1479AddHandler(InkCanvas.StrokeErasedEvent, value); 1484RemoveHandler(InkCanvas.StrokeErasedEvent, value); 1507new RoutedEventArgs(InkCanvas.StrokeErasedEvent, this)); 2022strokes.Path = new PropertyPath(InkCanvas.StrokesProperty); 2039internal static readonly RoutedCommand DeselectCommand = new RoutedCommand("Deselect", typeof(InkCanvas)); 2189background.Path = new PropertyPath(InkCanvas.BackgroundProperty); 2452Type ownerType = typeof(InkCanvas); 2688InkCanvas inkCanvas = sender as InkCanvas; 2746else if ( command == InkCanvas.DeselectCommand ) 2761InkCanvas inkCanvas = sender as InkCanvas; 2773|| command == InkCanvas.DeselectCommand ) 2838( (InkCanvas)sender ).EditingCoordinator.OnInkCanvasDeviceDown(sender, e); 2850((InkCanvas)sender).EditingCoordinator.OnInkCanvasDeviceUp(sender, e); 2860InkCanvas inkCanvas = (InkCanvas)sender; 2920internal RTIHighContrastCallback(InkCanvas inkCanvas) 2991private InkCanvas _thisInkCanvas;
System\Windows\Controls\StickyNote.cs (10)
662InkCanvas innerInkCanvas = Content.InnerControl as InkCanvas; 976Invariant.Assert(Content != null && Content.InnerControl is InkCanvas); 1487Content.InnerControl.SetBinding(InkCanvas.EditingModeProperty, inkCanvasEditingMode); 1511BindingOperations.ClearBinding(innerControl, InkCanvas.EditingModeProperty); 1526InkCanvas inkCanvas = Content.InnerControl as InkCanvas; 1551InkCanvas inkCanvas = Content.InnerControl as InkCanvas; 1782( (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)
4813Type type = typeof(System.Windows.Controls.InkCanvas); 4815this.GetXamlType(typeof(System.Windows.Controls.InkCanvas)), // DeclaringType 4821bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.InkCanvas)target).Children; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5349typeof(System.Windows.Controls.InkCanvas),
System\Windows\Markup\KnownTypes.cs (2)
2501case KnownElements.InkCanvas: return (o as System.Windows.Controls.InkCanvas).Children; 5842case KnownElements.InkCanvas: t = typeof(System.Windows.Controls.InkCanvas); break;