3 instantiations of InkCanvas
PresentationFramework (3)
MS\Internal\Ink\ClipboardProcessor.cs (1)
317
InkCanvas inkCanvas = new
InkCanvas
();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5832
DefaultConstructor = delegate () { return new System.Windows.Controls.
InkCanvas
(); },
System\Windows\Markup\KnownTypes.cs (1)
1320
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)
36
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,
138
DefaultStyleKeyProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(typeof(
InkCanvas
)));
403
typeof(
InkCanvas
),
422
DependencyProperty.RegisterAttached("Top", typeof(double), typeof(
InkCanvas
),
431
/// <seealso cref="
InkCanvas
.TopProperty" />
445
/// <seealso cref="
InkCanvas
.TopProperty" />
456
DependencyProperty.RegisterAttached("Bottom", typeof(double), typeof(
InkCanvas
),
465
/// <seealso cref="
InkCanvas
.BottomProperty" />
479
/// <seealso cref="
InkCanvas
.BottomProperty" />
490
DependencyProperty.RegisterAttached("Left", typeof(double), typeof(
InkCanvas
),
499
/// <seealso cref="
InkCanvas
.LeftProperty" />
513
/// <seealso cref="
InkCanvas
.LeftProperty" />
524
DependencyProperty.RegisterAttached("Right", typeof(double), typeof(
InkCanvas
),
533
/// <seealso cref="
InkCanvas
.RightProperty" />
547
/// <seealso cref="
InkCanvas
.RightProperty" />
568
if ( e.Property ==
InkCanvas
.LeftProperty
569
|| e.Property ==
InkCanvas
.TopProperty )
576
Debug.Assert(e.Property ==
InkCanvas
.RightProperty || e.Property ==
InkCanvas
.BottomProperty,
591
typeof(
InkCanvas
),
607
InkCanvas
inkCanvas = (
InkCanvas
)d;
647
Path = new PropertyPath(
InkCanvas
.ActiveEditingModeProperty),
712
typeof(
InkCanvas
),
730
InkCanvas
inkCanvas = (
InkCanvas
)d;
793
typeof(
InkCanvas
),
816
typeof(
InkCanvas
),
835
( (
InkCanvas
)d ).RaiseEditingModeChanged(
836
new RoutedEventArgs(
InkCanvas
.EditingModeChangedEvent, d));
846
typeof(
InkCanvas
),
863
( (
InkCanvas
)d ).RaiseEditingModeInvertedChanged(
864
new RoutedEventArgs(
InkCanvas
.EditingModeInvertedChangedEvent, d));
1001
EventManager.RegisterRoutedEvent("StrokeCollected", RoutingStrategy.Bubble, typeof(InkCanvasStrokeCollectedEventHandler), typeof(
InkCanvas
));
1011
AddHandler(
InkCanvas
.StrokeCollectedEvent, value);
1016
RemoveHandler(
InkCanvas
.StrokeCollectedEvent, value);
1132
EventManager.RegisterRoutedEvent("Gesture", RoutingStrategy.Bubble, typeof(InkCanvasGestureEventHandler), typeof(
InkCanvas
));
1142
AddHandler(
InkCanvas
.GestureEvent, value);
1147
RemoveHandler(
InkCanvas
.GestureEvent, value);
1223
EventManager.RegisterRoutedEvent("ActiveEditingModeChanged", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(
InkCanvas
));
1233
AddHandler(
InkCanvas
.ActiveEditingModeChangedEvent, value);
1237
RemoveHandler(
InkCanvas
.ActiveEditingModeChangedEvent, value);
1279
EventManager.RegisterRoutedEvent("EditingModeChanged", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(
InkCanvas
));
1289
AddHandler(
InkCanvas
.EditingModeChangedEvent, value);
1294
RemoveHandler(
InkCanvas
.EditingModeChangedEvent, value);
1333
EventManager.RegisterRoutedEvent("EditingModeInvertedChanged", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(
InkCanvas
));
1343
AddHandler(
InkCanvas
.EditingModeInvertedChangedEvent, value);
1348
RemoveHandler(
InkCanvas
.EditingModeInvertedChangedEvent, value);
1481
EventManager.RegisterRoutedEvent("StrokeErased", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(
InkCanvas
));
1491
AddHandler(
InkCanvas
.StrokeErasedEvent, value);
1496
RemoveHandler(
InkCanvas
.StrokeErasedEvent, value);
1519
new RoutedEventArgs(
InkCanvas
.StrokeErasedEvent, this));
2035
Path = new PropertyPath(
InkCanvas
.StrokesProperty),
2053
internal static readonly RoutedCommand DeselectCommand = new RoutedCommand("Deselect", typeof(
InkCanvas
));
2204
Path = new PropertyPath(
InkCanvas
.BackgroundProperty),
2468
Type ownerType = typeof(
InkCanvas
);
2704
InkCanvas
inkCanvas = sender as
InkCanvas
;
2762
else if ( command ==
InkCanvas
.DeselectCommand )
2777
InkCanvas
inkCanvas = sender as
InkCanvas
;
2789
|| command ==
InkCanvas
.DeselectCommand )
2854
( (
InkCanvas
)sender ).EditingCoordinator.OnInkCanvasDeviceDown(sender, e);
2866
((
InkCanvas
)sender).EditingCoordinator.OnInkCanvasDeviceUp(sender, e);
2876
InkCanvas
inkCanvas = (
InkCanvas
)sender;
2936
internal RTIHighContrastCallback(
InkCanvas
inkCanvas)
3007
private
InkCanvas
_thisInkCanvas;
System\Windows\Controls\StickyNote.cs (10)
651
InkCanvas
innerInkCanvas = Content.InnerControl as
InkCanvas
;
965
Invariant.Assert(Content != null && Content.InnerControl is
InkCanvas
);
1482
Content.InnerControl.SetBinding(
InkCanvas
.EditingModeProperty, inkCanvasEditingMode);
1506
BindingOperations.ClearBinding(innerControl,
InkCanvas
.EditingModeProperty);
1521
InkCanvas
inkCanvas = Content.InnerControl as
InkCanvas
;
1546
InkCanvas
inkCanvas = Content.InnerControl as
InkCanvas
;
1783
( (
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)
5107
Type type = typeof(System.Windows.Controls.
InkCanvas
);
5109
this.GetXamlType(typeof(System.Windows.Controls.
InkCanvas
)), // DeclaringType
5116
GetDelegate = delegate (object target) { return ((System.Windows.Controls.
InkCanvas
)target).Children; },
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5829
typeof(System.Windows.Controls.
InkCanvas
),
System\Windows\Markup\KnownTypes.cs (2)
2495
case KnownElements.InkCanvas: return (o as System.Windows.Controls.
InkCanvas
).Children;
5836
case KnownElements.InkCanvas: t = typeof(System.Windows.Controls.
InkCanvas
); break;