3 instantiations of InkCanvas
PresentationFramework (3)
MS\Internal\Ink\ClipboardProcessor.cs (1)
323InkCanvas inkCanvas = new InkCanvas();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5353bamlType.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)
32internal InkCanvasFeedbackAdorner(InkCanvas inkCanvas) 167private InkCanvas _inkCanvas;
MS\Internal\Controls\InkCanvasInnerCanvas.cs (9)
33internal InkCanvasInnerCanvas(InkCanvas inkCanvas) 94double left = (double)InkCanvas.GetLeft(child); 104double top = (double)InkCanvas.GetTop(child); 145double left = (double)InkCanvas.GetLeft(child); 152double right = (double)InkCanvas.GetRight(child); 160double top = (double)InkCanvas.GetTop(child); 167double bottom = (double)InkCanvas.GetBottom(child); 309internal InkCanvas InkCanvas 339private InkCanvas _inkCanvas;
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (8)
348public StickyNoteInkCanvas(InkCanvas canvas) 369((InkCanvas)InnerControl).Strokes.Clear(); 380StrokeCollection strokes = ((InkCanvas)InnerControl).Strokes; 417((InkCanvas)InnerControl).Strokes = strokes; 437return ((InkCanvas)InnerControl).Strokes.Count == 0; 489InkCanvas canvas = content as InkCanvas; 491throw new InvalidOperationException(SR.Format(SR.InvalidStickyNoteTemplate, type, typeof(InkCanvas), SNBConstants.c_ContentControlId));
MS\Internal\Ink\ClipboardProcessor.cs (7)
57internal ClipboardProcessor(InkCanvas inkCanvas) 213if (elements.Count == 1 && elements[0] is InkCanvas inkCanvas) 323InkCanvas inkCanvas = new InkCanvas(); 377private void TearDownInkCanvasContainer(InkCanvas rootInkCanvas, ref StrokeCollection newStrokes, ref List<UIElement> newElements) 410private InkCanvas InkCanvas 428s_InkCanvasDType = DependencyObjectType.FromSystemTypeInternal(typeof(InkCanvas)); 446private InkCanvas _inkCanvas;
MS\Internal\Ink\DrawingAttributesDefaultValueFactory.cs (7)
44DrawingAttributesDefaultPromoter promoter = new DrawingAttributesDefaultPromoter((InkCanvas)owner); 61internal DrawingAttributesDefaultPromoter(InkCanvas owner) 82if (_owner.ReadLocalValue(InkCanvas.DefaultDrawingAttributesProperty) == DependencyProperty.UnsetValue) 85_owner.SetValue(InkCanvas.DefaultDrawingAttributesProperty, value); 90PropertyMetadata metadata = InkCanvas.DefaultDrawingAttributesProperty.GetMetadata(_owner.DependencyObjectType); 91metadata.ClearCachedDefaultValue(_owner, InkCanvas.DefaultDrawingAttributesProperty); 94private readonly InkCanvas _owner;
MS\Internal\Ink\EditBehavior.cs (3)
50internal EditingBehavior(EditingCoordinator editingCoordinator, InkCanvas inkCanvas) 248protected InkCanvas InkCanvas 276private InkCanvas _inkCanvas;
MS\Internal\Ink\EditingCoordinator.cs (5)
51internal EditingCoordinator(InkCanvas inkCanvas) 125_inkCanvas.RaiseActiveEditingModeChanged(new RoutedEventArgs(InkCanvas.ActiveEditingModeChangedEvent, _inkCanvas)); 345_inkCanvas.RaiseActiveEditingModeChanged(new RoutedEventArgs(InkCanvas.ActiveEditingModeChangedEvent, _inkCanvas)); 1269_inkCanvas.RaiseActiveEditingModeChanged(new RoutedEventArgs(InkCanvas.ActiveEditingModeChangedEvent, _inkCanvas)); 1400private InkCanvas _inkCanvas;
MS\Internal\Ink\EraserBehavior.cs (1)
46internal EraserBehavior(EditingCoordinator editingCoordinator, InkCanvas inkCanvas)
MS\Internal\Ink\InkCanvasSelection.cs (12)
50internal InkCanvasSelection(InkCanvas inkCanvas) 436double left = InkCanvas.GetLeft(originalElement); 437double top = InkCanvas.GetTop(originalElement); 438double right = InkCanvas.GetRight(originalElement); 439double bottom = InkCanvas.GetBottom(originalElement); 464InkCanvas.SetLeft(updatedElement, newPosition.X - thickness.Left); // Left wasn't auto 471InkCanvas.SetRight(updatedElement, ( right - ( newPosition.X - originalPosition.X ) )); // Right wasn't not auto 475InkCanvas.SetLeft(updatedElement, newPosition.X - thickness.Left); // Both Left and Right were aut. Modify Left by default. 480InkCanvas.SetTop(updatedElement, newPosition.Y - thickness.Top); // Top wasn't auto 484InkCanvas.SetBottom(updatedElement, ( bottom - ( newPosition.Y - originalPosition.Y ) )); // Bottom wasn't not auto 488InkCanvas.SetTop(updatedElement, newPosition.Y - thickness.Top); // Both Top and Bottom were aut. Modify Left by default. 1106private InkCanvas _inkCanvas;
MS\Internal\Ink\InkCollectionBehavior.cs (2)
44internal InkCollectionBehavior(EditingCoordinator editingCoordinator, InkCanvas inkCanvas) 123InkCanvas.RaiseActiveEditingModeChanged(new RoutedEventArgs(InkCanvas.ActiveEditingModeChangedEvent, InkCanvas));
MS\Internal\Ink\LassoSelectionBehavior.cs (1)
44internal LassoSelectionBehavior(EditingCoordinator editingCoordinator, InkCanvas inkCanvas)
MS\Internal\Ink\SelectionEditingBehavior.cs (1)
47internal SelectionEditingBehavior(EditingCoordinator editingCoordinator, InkCanvas inkCanvas)
MS\Internal\Ink\SelectionEditor.cs (1)
51internal SelectionEditor(EditingCoordinator editingCoordinator, InkCanvas inkCanvas) : base (editingCoordinator, inkCanvas)
MS\Internal\Ink\StylusEditingBehavior.cs (1)
55internal StylusEditingBehavior(EditingCoordinator editingCoordinator, InkCanvas inkCanvas)
System\Windows\Automation\Peers\InkCanvasAutomationPeer.cs (1)
24public InkCanvasAutomationPeer(InkCanvas owner)
System\Windows\Controls\InkCanvas.cs (70)
59Type ownerType = typeof(InkCanvas); 92CommandHelpers.RegisterCommandHandler(ownerType, InkCanvas.DeselectCommand, 109defaultStyle.Setters.Add(new Setter(InkCanvas.BackgroundProperty, 142DefaultStyleKeyProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(typeof(InkCanvas))); 405typeof(InkCanvas), 424DependencyProperty.RegisterAttached("Top", typeof(double), typeof(InkCanvas), 433/// <seealso cref="InkCanvas.TopProperty" /> 447/// <seealso cref="InkCanvas.TopProperty" /> 458DependencyProperty.RegisterAttached("Bottom", typeof(double), typeof(InkCanvas), 467/// <seealso cref="InkCanvas.BottomProperty" /> 481/// <seealso cref="InkCanvas.BottomProperty" /> 492DependencyProperty.RegisterAttached("Left", typeof(double), typeof(InkCanvas), 501/// <seealso cref="InkCanvas.LeftProperty" /> 515/// <seealso cref="InkCanvas.LeftProperty" /> 526DependencyProperty.RegisterAttached("Right", typeof(double), typeof(InkCanvas), 535/// <seealso cref="InkCanvas.RightProperty" /> 549/// <seealso cref="InkCanvas.RightProperty" /> 570if ( e.Property == InkCanvas.LeftProperty 571|| e.Property == InkCanvas.TopProperty ) 578Debug.Assert(e.Property == InkCanvas.RightProperty || e.Property == InkCanvas.BottomProperty, 593typeof(InkCanvas), 609InkCanvas inkCanvas = (InkCanvas)d; 648activeEditingModeBinding.Path = 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)); 2034strokes.Path = new PropertyPath(InkCanvas.StrokesProperty); 2051internal static readonly RoutedCommand DeselectCommand = new RoutedCommand("Deselect", typeof(InkCanvas)); 2201background.Path = new PropertyPath(InkCanvas.BackgroundProperty); 2464Type ownerType = typeof(InkCanvas); 2700InkCanvas inkCanvas = sender as InkCanvas; 2758else if ( command == InkCanvas.DeselectCommand ) 2773InkCanvas inkCanvas = sender as InkCanvas; 2785|| command == InkCanvas.DeselectCommand ) 2850( (InkCanvas)sender ).EditingCoordinator.OnInkCanvasDeviceDown(sender, e); 2862((InkCanvas)sender).EditingCoordinator.OnInkCanvasDeviceUp(sender, e); 2872InkCanvas inkCanvas = (InkCanvas)sender; 2932internal RTIHighContrastCallback(InkCanvas inkCanvas) 3003private InkCanvas _thisInkCanvas;
System\Windows\Controls\StickyNote.cs (10)
678InkCanvas innerInkCanvas = Content.InnerControl as InkCanvas; 992Invariant.Assert(Content != null && Content.InnerControl is InkCanvas); 1503Content.InnerControl.SetBinding(InkCanvas.EditingModeProperty, inkCanvasEditingMode); 1527BindingOperations.ClearBinding(innerControl, InkCanvas.EditingModeProperty); 1542InkCanvas inkCanvas = Content.InnerControl as InkCanvas; 1567InkCanvas inkCanvas = Content.InnerControl as InkCanvas; 1798( (InkCanvas)( Content.InnerControl ) ).DefaultDrawingAttributes = da;
System\Windows\Ink\Events.cs (2)
37public InkCanvasStrokeCollectedEventArgs(Swi.Stroke stroke) : base(InkCanvas.StrokeCollectedEvent) 308: base(InkCanvas.GestureEvent)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
384case 288: t = () => typeof(InkCanvas); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
4815Type type = typeof(System.Windows.Controls.InkCanvas); 4817this.GetXamlType(typeof(System.Windows.Controls.InkCanvas)), // DeclaringType 4823bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.InkCanvas)target).Children; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5351typeof(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;