3 instantiations of InkCanvas
PresentationFramework (3)
src\Framework\MS\Internal\Ink\ClipboardProcessor.cs (1)
354InkCanvas inkCanvas = new InkCanvas();
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5349bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.InkCanvas(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1327case KnownElements.InkCanvas: o = new System.Windows.Controls.InkCanvas(); break;
150 references to InkCanvas
PresentationFramework (150)
src\Framework\MS\Internal\Controls\InkCanvasFeedbackAdorner.cs (2)
39internal InkCanvasFeedbackAdorner(InkCanvas inkCanvas) 179private InkCanvas _inkCanvas;
src\Framework\MS\Internal\Controls\InkCanvasInnerCanvas.cs (9)
41internal InkCanvasInnerCanvas(InkCanvas inkCanvas) 102double left = (double)InkCanvas.GetLeft(child); 112double top = (double)InkCanvas.GetTop(child); 153double left = (double)InkCanvas.GetLeft(child); 160double right = (double)InkCanvas.GetRight(child); 168double top = (double)InkCanvas.GetTop(child); 175double bottom = (double)InkCanvas.GetBottom(child); 317internal InkCanvas InkCanvas 347private InkCanvas _inkCanvas;
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (8)
354public StickyNoteInkCanvas(InkCanvas canvas) 375( (InkCanvas)InnerControl ).Strokes.Clear(); 386StrokeCollection strokes = ((InkCanvas)InnerControl).Strokes; 423((InkCanvas)InnerControl).Strokes = strokes; 443return ( (InkCanvas)InnerControl ).Strokes.Count == 0; 495InkCanvas canvas = content as InkCanvas; 497throw new InvalidOperationException(SR.Get(SRID.InvalidStickyNoteTemplate, type, typeof(InkCanvas), SNBConstants.c_ContentControlId));
src\Framework\MS\Internal\Ink\ClipboardProcessor.cs (7)
61internal ClipboardProcessor(InkCanvas inkCanvas) 228TearDownInkCanvasContainer((InkCanvas)( elements[0] ), ref newStrokes, ref newElements); 354InkCanvas inkCanvas = new InkCanvas(); 422private void TearDownInkCanvasContainer(InkCanvas rootInkCanvas, ref StrokeCollection newStrokes, ref List<UIElement> newElements) 456private InkCanvas InkCanvas 474s_InkCanvasDType = DependencyObjectType.FromSystemTypeInternal(typeof(InkCanvas)); 492private InkCanvas _inkCanvas;
src\Framework\MS\Internal\Ink\DrawingAttributesDefaultValueFactory.cs (7)
49DrawingAttributesDefaultPromoter promoter = new DrawingAttributesDefaultPromoter((InkCanvas)owner); 66internal DrawingAttributesDefaultPromoter(InkCanvas owner) 87if (_owner.ReadLocalValue(InkCanvas.DefaultDrawingAttributesProperty) == DependencyProperty.UnsetValue) 90_owner.SetValue(InkCanvas.DefaultDrawingAttributesProperty, value); 95PropertyMetadata metadata = InkCanvas.DefaultDrawingAttributesProperty.GetMetadata(_owner.DependencyObjectType); 96metadata.ClearCachedDefaultValue(_owner, InkCanvas.DefaultDrawingAttributesProperty); 99private readonly InkCanvas _owner;
src\Framework\MS\Internal\Ink\EditBehavior.cs (3)
54internal EditingBehavior(EditingCoordinator editingCoordinator, InkCanvas inkCanvas) 258protected InkCanvas InkCanvas 286private InkCanvas _inkCanvas;
src\Framework\MS\Internal\Ink\EditingCoordinator.cs (5)
56internal EditingCoordinator(InkCanvas inkCanvas) 137_inkCanvas.RaiseActiveEditingModeChanged(new RoutedEventArgs(InkCanvas.ActiveEditingModeChangedEvent, _inkCanvas)); 357_inkCanvas.RaiseActiveEditingModeChanged(new RoutedEventArgs(InkCanvas.ActiveEditingModeChangedEvent, _inkCanvas)); 1315_inkCanvas.RaiseActiveEditingModeChanged(new RoutedEventArgs(InkCanvas.ActiveEditingModeChangedEvent, _inkCanvas)); 1446private InkCanvas _inkCanvas;
src\Framework\MS\Internal\Ink\EraserBehavior.cs (1)
48internal EraserBehavior(EditingCoordinator editingCoordinator, InkCanvas inkCanvas)
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (12)
55internal InkCanvasSelection(InkCanvas inkCanvas) 446double left = InkCanvas.GetLeft(originalElement); 447double top = InkCanvas.GetTop(originalElement); 448double right = InkCanvas.GetRight(originalElement); 449double bottom = InkCanvas.GetBottom(originalElement); 474InkCanvas.SetLeft(updatedElement, newPosition.X - thickness.Left); // Left wasn't auto 481InkCanvas.SetRight(updatedElement, ( right - ( newPosition.X - originalPosition.X ) )); // Right wasn't not auto 485InkCanvas.SetLeft(updatedElement, newPosition.X - thickness.Left); // Both Left and Right were aut. Modify Left by default. 490InkCanvas.SetTop(updatedElement, newPosition.Y - thickness.Top); // Top wasn't auto 494InkCanvas.SetBottom(updatedElement, ( bottom - ( newPosition.Y - originalPosition.Y ) )); // Bottom wasn't not auto 498InkCanvas.SetTop(updatedElement, newPosition.Y - thickness.Top); // Both Top and Bottom were aut. Modify Left by default. 1118private InkCanvas _inkCanvas;
src\Framework\MS\Internal\Ink\InkCollectionBehavior.cs (2)
60internal InkCollectionBehavior(EditingCoordinator editingCoordinator, InkCanvas inkCanvas) 147InkCanvas.RaiseActiveEditingModeChanged(new RoutedEventArgs(InkCanvas.ActiveEditingModeChangedEvent, InkCanvas));
src\Framework\MS\Internal\Ink\LassoSelectionBehavior.cs (1)
47internal LassoSelectionBehavior(EditingCoordinator editingCoordinator, InkCanvas inkCanvas)
src\Framework\MS\Internal\Ink\SelectionEditingBehavior.cs (1)
49internal SelectionEditingBehavior(EditingCoordinator editingCoordinator, InkCanvas inkCanvas)
src\Framework\MS\Internal\Ink\SelectionEditor.cs (1)
57internal SelectionEditor(EditingCoordinator editingCoordinator, InkCanvas inkCanvas) : base (editingCoordinator, inkCanvas)
src\Framework\MS\Internal\Ink\StylusEditingBehavior.cs (1)
52internal StylusEditingBehavior(EditingCoordinator editingCoordinator, InkCanvas inkCanvas)
src\Framework\System\Windows\Automation\Peers\InkCanvasAutomationPeer.cs (1)
21public InkCanvasAutomationPeer(InkCanvas owner)
src\Framework\System\Windows\Controls\InkCanvas.cs (70)
70Type ownerType = typeof(InkCanvas); 103CommandHelpers.RegisterCommandHandler(ownerType, InkCanvas.DeselectCommand, 120defaultStyle.Setters.Add(new Setter(InkCanvas.BackgroundProperty, 153DefaultStyleKeyProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(typeof(InkCanvas))); 417typeof(InkCanvas), 436DependencyProperty.RegisterAttached("Top", typeof(double), typeof(InkCanvas), 445/// <seealso cref="InkCanvas.TopProperty" /> 459/// <seealso cref="InkCanvas.TopProperty" /> 470DependencyProperty.RegisterAttached("Bottom", typeof(double), typeof(InkCanvas), 479/// <seealso cref="InkCanvas.BottomProperty" /> 493/// <seealso cref="InkCanvas.BottomProperty" /> 504DependencyProperty.RegisterAttached("Left", typeof(double), typeof(InkCanvas), 513/// <seealso cref="InkCanvas.LeftProperty" /> 527/// <seealso cref="InkCanvas.LeftProperty" /> 538DependencyProperty.RegisterAttached("Right", typeof(double), typeof(InkCanvas), 547/// <seealso cref="InkCanvas.RightProperty" /> 561/// <seealso cref="InkCanvas.RightProperty" /> 582if ( e.Property == InkCanvas.LeftProperty 583|| e.Property == InkCanvas.TopProperty ) 590Debug.Assert(e.Property == InkCanvas.RightProperty || e.Property == InkCanvas.BottomProperty, 605typeof(InkCanvas), 621InkCanvas inkCanvas = (InkCanvas)d; 661activeEditingModeBinding.Path = new PropertyPath(InkCanvas.ActiveEditingModeProperty); 725typeof(InkCanvas), 743InkCanvas inkCanvas = (InkCanvas)d; 812typeof(InkCanvas), 835typeof(InkCanvas), 854( (InkCanvas)d ).RaiseEditingModeChanged( 855new RoutedEventArgs(InkCanvas.EditingModeChangedEvent, d)); 865typeof(InkCanvas), 882( (InkCanvas)d ).RaiseEditingModeInvertedChanged( 883new RoutedEventArgs(InkCanvas.EditingModeInvertedChangedEvent, d)); 1027EventManager.RegisterRoutedEvent("StrokeCollected", RoutingStrategy.Bubble, typeof(InkCanvasStrokeCollectedEventHandler), typeof(InkCanvas)); 1037AddHandler(InkCanvas.StrokeCollectedEvent, value); 1042RemoveHandler(InkCanvas.StrokeCollectedEvent, value); 1166EventManager.RegisterRoutedEvent("Gesture", RoutingStrategy.Bubble, typeof(InkCanvasGestureEventHandler), typeof(InkCanvas)); 1176AddHandler(InkCanvas.GestureEvent, value); 1181RemoveHandler(InkCanvas.GestureEvent, value); 1266EventManager.RegisterRoutedEvent("ActiveEditingModeChanged", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(InkCanvas)); 1276AddHandler(InkCanvas.ActiveEditingModeChangedEvent, value); 1280RemoveHandler(InkCanvas.ActiveEditingModeChangedEvent, value); 1325EventManager.RegisterRoutedEvent("EditingModeChanged", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(InkCanvas)); 1335AddHandler(InkCanvas.EditingModeChangedEvent, value); 1340RemoveHandler(InkCanvas.EditingModeChangedEvent, value); 1382EventManager.RegisterRoutedEvent("EditingModeInvertedChanged", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(InkCanvas)); 1392AddHandler(InkCanvas.EditingModeInvertedChangedEvent, value); 1397RemoveHandler(InkCanvas.EditingModeInvertedChangedEvent, value); 1542EventManager.RegisterRoutedEvent("StrokeErased", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(InkCanvas)); 1552AddHandler(InkCanvas.StrokeErasedEvent, value); 1557RemoveHandler(InkCanvas.StrokeErasedEvent, value); 1583new RoutedEventArgs(InkCanvas.StrokeErasedEvent, this)); 2119strokes.Path = new PropertyPath(InkCanvas.StrokesProperty); 2137internal static readonly RoutedCommand DeselectCommand = new RoutedCommand("Deselect", typeof(InkCanvas)); 2326background.Path = new PropertyPath(InkCanvas.BackgroundProperty); 2596Type ownerType = typeof(InkCanvas); 2840InkCanvas inkCanvas = sender as InkCanvas; 2898else if ( command == InkCanvas.DeselectCommand ) 2919InkCanvas inkCanvas = sender as InkCanvas; 2931|| command == InkCanvas.DeselectCommand ) 2997( (InkCanvas)sender ).EditingCoordinator.OnInkCanvasDeviceDown(sender, e); 3009((InkCanvas)sender).EditingCoordinator.OnInkCanvasDeviceUp(sender, e); 3019InkCanvas inkCanvas = (InkCanvas)sender; 3079internal RTIHighContrastCallback(InkCanvas inkCanvas) 3150private InkCanvas _thisInkCanvas;
src\Framework\System\Windows\Controls\StickyNote.cs (10)
688InkCanvas innerInkCanvas = Content.InnerControl as InkCanvas; 1002Invariant.Assert(Content != null && Content.InnerControl is InkCanvas); 1513Content.InnerControl.SetBinding(InkCanvas.EditingModeProperty, inkCanvasEditingMode); 1537BindingOperations.ClearBinding(innerControl, InkCanvas.EditingModeProperty); 1552InkCanvas inkCanvas = Content.InnerControl as InkCanvas; 1577InkCanvas inkCanvas = Content.InnerControl as InkCanvas; 1835( (InkCanvas)( Content.InnerControl ) ).DefaultDrawingAttributes = da;
src\Framework\System\Windows\Ink\Events.cs (2)
40public InkCanvasStrokeCollectedEventArgs(Swi.Stroke stroke) : base(InkCanvas.StrokeCollectedEvent) 336: base(InkCanvas.GestureEvent)
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
380case 288: t = () => typeof(InkCanvas); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
4790Type type = typeof(System.Windows.Controls.InkCanvas); 4792this.GetXamlType(typeof(System.Windows.Controls.InkCanvas)), // DeclaringType 4798bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.InkCanvas)target).Children; };
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5347typeof(System.Windows.Controls.InkCanvas),
src\Framework\System\Windows\Markup\KnownTypes.cs (2)
2494case KnownElements.InkCanvas: return (o as System.Windows.Controls.InkCanvas).Children; 5832case KnownElements.InkCanvas: t = typeof(System.Windows.Controls.InkCanvas); break;