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