3 instantiations of InkCanvas
PresentationFramework (3)
MS\Internal\Ink\ClipboardProcessor.cs (1)
317
InkCanvas inkCanvas = new
InkCanvas
();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5351
bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.
InkCanvas
(); };
System\Windows\Markup\KnownTypes.cs (1)
1326
case KnownElements.InkCanvas: o = new System.Windows.Controls.
InkCanvas
(); break;
150 references to InkCanvas
PresentationFramework (150)
MS\Internal\Controls\InkCanvasFeedbackAdorner.cs (2)
29
internal InkCanvasFeedbackAdorner(
InkCanvas
inkCanvas)
164
private
InkCanvas
_inkCanvas;
MS\Internal\Controls\InkCanvasInnerCanvas.cs (9)
30
internal InkCanvasInnerCanvas(
InkCanvas
inkCanvas)
91
double left = (double)
InkCanvas
.GetLeft(child);
101
double top = (double)
InkCanvas
.GetTop(child);
142
double left = (double)
InkCanvas
.GetLeft(child);
149
double right = (double)
InkCanvas
.GetRight(child);
157
double top = (double)
InkCanvas
.GetTop(child);
164
double bottom = (double)
InkCanvas
.GetBottom(child);
306
internal
InkCanvas
InkCanvas
336
private
InkCanvas
_inkCanvas;
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (8)
343
public StickyNoteInkCanvas(
InkCanvas
canvas)
364
((
InkCanvas
)InnerControl).Strokes.Clear();
375
StrokeCollection strokes = ((
InkCanvas
)InnerControl).Strokes;
412
((
InkCanvas
)InnerControl).Strokes = strokes;
432
return ((
InkCanvas
)InnerControl).Strokes.Count == 0;
484
InkCanvas
canvas = content as
InkCanvas
;
486
throw new InvalidOperationException(SR.Format(SR.InvalidStickyNoteTemplate, type, typeof(
InkCanvas
), SNBConstants.c_ContentControlId));
MS\Internal\Ink\ClipboardProcessor.cs (7)
51
internal ClipboardProcessor(
InkCanvas
inkCanvas)
207
if (elements.Count == 1 && elements[0] is
InkCanvas
inkCanvas)
317
InkCanvas
inkCanvas = new InkCanvas();
371
private void TearDownInkCanvasContainer(
InkCanvas
rootInkCanvas, ref StrokeCollection newStrokes, ref List<UIElement> newElements)
404
private
InkCanvas
InkCanvas
422
s_InkCanvasDType = DependencyObjectType.FromSystemTypeInternal(typeof(
InkCanvas
));
440
private
InkCanvas
_inkCanvas;
MS\Internal\Ink\DrawingAttributesDefaultValueFactory.cs (7)
42
DrawingAttributesDefaultPromoter promoter = new DrawingAttributesDefaultPromoter((
InkCanvas
)owner);
59
internal DrawingAttributesDefaultPromoter(
InkCanvas
owner)
80
if (_owner.ReadLocalValue(
InkCanvas
.DefaultDrawingAttributesProperty) == DependencyProperty.UnsetValue)
83
_owner.SetValue(
InkCanvas
.DefaultDrawingAttributesProperty, value);
88
PropertyMetadata metadata =
InkCanvas
.DefaultDrawingAttributesProperty.GetMetadata(_owner.DependencyObjectType);
89
metadata.ClearCachedDefaultValue(_owner,
InkCanvas
.DefaultDrawingAttributesProperty);
92
private readonly
InkCanvas
_owner;
MS\Internal\Ink\EditBehavior.cs (3)
38
internal EditingBehavior(EditingCoordinator editingCoordinator,
InkCanvas
inkCanvas)
236
protected
InkCanvas
InkCanvas
264
private
InkCanvas
_inkCanvas;
MS\Internal\Ink\EditingCoordinator.cs (5)
36
internal 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));
1385
private
InkCanvas
_inkCanvas;
MS\Internal\Ink\EraserBehavior.cs (1)
34
internal EraserBehavior(EditingCoordinator editingCoordinator,
InkCanvas
inkCanvas)
MS\Internal\Ink\InkCanvasSelection.cs (12)
38
internal InkCanvasSelection(
InkCanvas
inkCanvas)
424
double left =
InkCanvas
.GetLeft(originalElement);
425
double top =
InkCanvas
.GetTop(originalElement);
426
double right =
InkCanvas
.GetRight(originalElement);
427
double bottom =
InkCanvas
.GetBottom(originalElement);
452
InkCanvas
.SetLeft(updatedElement, newPosition.X - thickness.Left); // Left wasn't auto
459
InkCanvas
.SetRight(updatedElement, ( right - ( newPosition.X - originalPosition.X ) )); // Right wasn't not auto
463
InkCanvas
.SetLeft(updatedElement, newPosition.X - thickness.Left); // Both Left and Right were aut. Modify Left by default.
468
InkCanvas
.SetTop(updatedElement, newPosition.Y - thickness.Top); // Top wasn't auto
472
InkCanvas
.SetBottom(updatedElement, ( bottom - ( newPosition.Y - originalPosition.Y ) )); // Bottom wasn't not auto
476
InkCanvas
.SetTop(updatedElement, newPosition.Y - thickness.Top); // Both Top and Bottom were aut. Modify Left by default.
1094
private
InkCanvas
_inkCanvas;
MS\Internal\Ink\InkCollectionBehavior.cs (2)
35
internal InkCollectionBehavior(EditingCoordinator editingCoordinator,
InkCanvas
inkCanvas)
114
InkCanvas.RaiseActiveEditingModeChanged(new RoutedEventArgs(
InkCanvas
.ActiveEditingModeChangedEvent, InkCanvas));
MS\Internal\Ink\LassoSelectionBehavior.cs (1)
35
internal LassoSelectionBehavior(EditingCoordinator editingCoordinator,
InkCanvas
inkCanvas)
MS\Internal\Ink\SelectionEditingBehavior.cs (1)
34
internal SelectionEditingBehavior(EditingCoordinator editingCoordinator,
InkCanvas
inkCanvas)
MS\Internal\Ink\SelectionEditor.cs (1)
36
internal SelectionEditor(EditingCoordinator editingCoordinator,
InkCanvas
inkCanvas) : base (editingCoordinator, inkCanvas)
MS\Internal\Ink\StylusEditingBehavior.cs (1)
41
internal StylusEditingBehavior(EditingCoordinator editingCoordinator,
InkCanvas
inkCanvas)
System\Windows\Automation\Peers\InkCanvasAutomationPeer.cs (1)
13
public InkCanvasAutomationPeer(
InkCanvas
owner)
System\Windows\Controls\InkCanvas.cs (70)
47
Type ownerType = typeof(
InkCanvas
);
80
CommandHelpers.RegisterCommandHandler(ownerType,
InkCanvas
.DeselectCommand,
97
defaultStyle.Setters.Add(new Setter(
InkCanvas
.BackgroundProperty,
130
DefaultStyleKeyProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(typeof(
InkCanvas
)));
393
typeof(
InkCanvas
),
412
DependencyProperty.RegisterAttached("Top", typeof(double), typeof(
InkCanvas
),
421
/// <seealso cref="
InkCanvas
.TopProperty" />
435
/// <seealso cref="
InkCanvas
.TopProperty" />
446
DependencyProperty.RegisterAttached("Bottom", typeof(double), typeof(
InkCanvas
),
455
/// <seealso cref="
InkCanvas
.BottomProperty" />
469
/// <seealso cref="
InkCanvas
.BottomProperty" />
480
DependencyProperty.RegisterAttached("Left", typeof(double), typeof(
InkCanvas
),
489
/// <seealso cref="
InkCanvas
.LeftProperty" />
503
/// <seealso cref="
InkCanvas
.LeftProperty" />
514
DependencyProperty.RegisterAttached("Right", typeof(double), typeof(
InkCanvas
),
523
/// <seealso cref="
InkCanvas
.RightProperty" />
537
/// <seealso cref="
InkCanvas
.RightProperty" />
558
if ( e.Property ==
InkCanvas
.LeftProperty
559
|| e.Property ==
InkCanvas
.TopProperty )
566
Debug.Assert(e.Property ==
InkCanvas
.RightProperty || e.Property ==
InkCanvas
.BottomProperty,
581
typeof(
InkCanvas
),
597
InkCanvas
inkCanvas = (
InkCanvas
)d;
636
activeEditingModeBinding.Path = new PropertyPath(
InkCanvas
.ActiveEditingModeProperty);
700
typeof(
InkCanvas
),
718
InkCanvas
inkCanvas = (
InkCanvas
)d;
781
typeof(
InkCanvas
),
804
typeof(
InkCanvas
),
823
( (
InkCanvas
)d ).RaiseEditingModeChanged(
824
new RoutedEventArgs(
InkCanvas
.EditingModeChangedEvent, d));
834
typeof(
InkCanvas
),
851
( (
InkCanvas
)d ).RaiseEditingModeInvertedChanged(
852
new RoutedEventArgs(
InkCanvas
.EditingModeInvertedChangedEvent, d));
989
EventManager.RegisterRoutedEvent("StrokeCollected", RoutingStrategy.Bubble, typeof(InkCanvasStrokeCollectedEventHandler), typeof(
InkCanvas
));
999
AddHandler(
InkCanvas
.StrokeCollectedEvent, value);
1004
RemoveHandler(
InkCanvas
.StrokeCollectedEvent, value);
1120
EventManager.RegisterRoutedEvent("Gesture", RoutingStrategy.Bubble, typeof(InkCanvasGestureEventHandler), typeof(
InkCanvas
));
1130
AddHandler(
InkCanvas
.GestureEvent, value);
1135
RemoveHandler(
InkCanvas
.GestureEvent, value);
1211
EventManager.RegisterRoutedEvent("ActiveEditingModeChanged", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(
InkCanvas
));
1221
AddHandler(
InkCanvas
.ActiveEditingModeChangedEvent, value);
1225
RemoveHandler(
InkCanvas
.ActiveEditingModeChangedEvent, value);
1267
EventManager.RegisterRoutedEvent("EditingModeChanged", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(
InkCanvas
));
1277
AddHandler(
InkCanvas
.EditingModeChangedEvent, value);
1282
RemoveHandler(
InkCanvas
.EditingModeChangedEvent, value);
1321
EventManager.RegisterRoutedEvent("EditingModeInvertedChanged", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(
InkCanvas
));
1331
AddHandler(
InkCanvas
.EditingModeInvertedChangedEvent, value);
1336
RemoveHandler(
InkCanvas
.EditingModeInvertedChangedEvent, value);
1469
EventManager.RegisterRoutedEvent("StrokeErased", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(
InkCanvas
));
1479
AddHandler(
InkCanvas
.StrokeErasedEvent, value);
1484
RemoveHandler(
InkCanvas
.StrokeErasedEvent, value);
1507
new RoutedEventArgs(
InkCanvas
.StrokeErasedEvent, this));
2022
strokes.Path = new PropertyPath(
InkCanvas
.StrokesProperty);
2039
internal static readonly RoutedCommand DeselectCommand = new RoutedCommand("Deselect", typeof(
InkCanvas
));
2189
background.Path = new PropertyPath(
InkCanvas
.BackgroundProperty);
2452
Type ownerType = typeof(
InkCanvas
);
2688
InkCanvas
inkCanvas = sender as
InkCanvas
;
2746
else if ( command ==
InkCanvas
.DeselectCommand )
2761
InkCanvas
inkCanvas = sender as
InkCanvas
;
2773
|| command ==
InkCanvas
.DeselectCommand )
2838
( (
InkCanvas
)sender ).EditingCoordinator.OnInkCanvasDeviceDown(sender, e);
2850
((
InkCanvas
)sender).EditingCoordinator.OnInkCanvasDeviceUp(sender, e);
2860
InkCanvas
inkCanvas = (
InkCanvas
)sender;
2920
internal RTIHighContrastCallback(
InkCanvas
inkCanvas)
2991
private
InkCanvas
_thisInkCanvas;
System\Windows\Controls\StickyNote.cs (10)
662
InkCanvas
innerInkCanvas = Content.InnerControl as
InkCanvas
;
976
Invariant.Assert(Content != null && Content.InnerControl is
InkCanvas
);
1487
Content.InnerControl.SetBinding(
InkCanvas
.EditingModeProperty, inkCanvasEditingMode);
1511
BindingOperations.ClearBinding(innerControl,
InkCanvas
.EditingModeProperty);
1526
InkCanvas
inkCanvas = Content.InnerControl as
InkCanvas
;
1551
InkCanvas
inkCanvas = Content.InnerControl as
InkCanvas
;
1782
( (
InkCanvas
)( Content.InnerControl ) ).DefaultDrawingAttributes = da;
System\Windows\Ink\Events.cs (2)
30
public InkCanvasStrokeCollectedEventArgs(Swi.Stroke stroke) : base(
InkCanvas
.StrokeCollectedEvent)
301
: base(
InkCanvas
.GestureEvent)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
382
case 288: t = () => typeof(
InkCanvas
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
4813
Type type = typeof(System.Windows.Controls.
InkCanvas
);
4815
this.GetXamlType(typeof(System.Windows.Controls.
InkCanvas
)), // DeclaringType
4821
bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.
InkCanvas
)target).Children; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5349
typeof(System.Windows.Controls.
InkCanvas
),
System\Windows\Markup\KnownTypes.cs (2)
2501
case KnownElements.InkCanvas: return (o as System.Windows.Controls.
InkCanvas
).Children;
5842
case KnownElements.InkCanvas: t = typeof(System.Windows.Controls.
InkCanvas
); break;