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