1 type derived from StrokeCollection
PresentationCore (1)
System\Windows\Ink\StrokeCollection.cs (1)
841
internal class ReadOnlyStrokeCollection :
StrokeCollection
, ICollection<Stroke>, IList
58 instantiations of StrokeCollection
PresentationCore (32)
MS\Internal\Ink\Renderer.cs (1)
212
_strokes = new
StrokeCollection
();
System\Windows\Ink\Events.cs (2)
50
_added = new StrokeCollection.ReadOnlyStrokeCollection(new
StrokeCollection
());
63
_removed = new StrokeCollection.ReadOnlyStrokeCollection(new
StrokeCollection
());
System\Windows\Ink\IncrementalHitTester.cs (7)
178
StrokeCollection localRemoved = new
StrokeCollection
(removed);
424
strokesHit = new
StrokeCollection
();
434
strokesUnhit = new
StrokeCollection
();
626
StrokeCollection sc = new
StrokeCollection
();
632
return new
StrokeCollection
();
646
StrokeCollection sc = new
StrokeCollection
();
652
return new
StrokeCollection
();
System\Windows\Ink\Stroke.cs (2)
724
StrokeCollection leftovers = new
StrokeCollection
();
786
StrokeCollection leftovers = new
StrokeCollection
();
System\Windows\Ink\Stroke2.cs (3)
611
StrokeCollection strokes = new
StrokeCollection
();
635
return new
StrokeCollection
();
645
return new
StrokeCollection
();
System\Windows\Ink\StrokeCollection.cs (7)
249
StrokeCollection clone = new
StrokeCollection
();
276
StrokeCollection removed = new
StrokeCollection
();
296
StrokeCollection removed = new
StrokeCollection
();
314
StrokeCollection addedStrokes = new
StrokeCollection
();
333
StrokeCollection removed = new
StrokeCollection
();
336
StrokeCollection added = new
StrokeCollection
();
451
StrokeCollection strokesToReplace = new
StrokeCollection
();
System\Windows\Ink\StrokeCollection2.cs (8)
89
return new
StrokeCollection
();
96
StrokeCollection lassoedStrokes = new
StrokeCollection
();
155
return new
StrokeCollection
();
159
StrokeCollection hits = new
StrokeCollection
();
187
return new
StrokeCollection
();
195
return new
StrokeCollection
();
197
StrokeCollection hits = new
StrokeCollection
();
437
StrokeCollection hits = new
StrokeCollection
();
System\Windows\Ink\StrokeCollectionConverter.cs (2)
84
return new
StrokeCollection
(ms);
89
return new
StrokeCollection
();
PresentationFramework (26)
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (2)
401
strokes = new
StrokeCollection
();
407
strokes = new
StrokeCollection
(stream);
MS\Internal\Ink\ClipboardProcessor.cs (1)
110
StrokeCollection orderedStrokes = new
StrokeCollection
();
MS\Internal\Ink\EraserBehavior.cs (1)
397
StrokeCollection strokesToReplace = new
StrokeCollection
();
MS\Internal\Ink\InkCanvasSelection.cs (3)
65
_selectedStrokes = new
StrokeCollection
();
774
new StrokeCollectionChangedEventArgs(new
StrokeCollection
(), new
StrokeCollection
()));
MS\Internal\Ink\ISFClipboardData.cs (2)
87
newStrokes = new
StrokeCollection
(stream);
99
_strokes = fSucceeded ? newStrokes : new
StrokeCollection
();
MS\Internal\Ink\LassoSelectionBehavior.cs (2)
236
StrokeCollection selectedStrokes = new
StrokeCollection
();
273
selectedStrokes = new
StrokeCollection
();
MS\Internal\Ink\StrokeCollectionDefaultValueFactory.cs (2)
28
return new
StrokeCollection
();
41
StrokeCollection defaultValue = new
StrokeCollection
();
System\Windows\Controls\InkCanvas.cs (10)
617
inkCanvas.CoreChangeSelection(new
StrokeCollection
(), inkCanvas.InkCanvasSelection.SelectedElements, false);
1059
StrokeCollection strokes = new
StrokeCollection
();
1716
StrokeCollection sc = new
StrokeCollection
();
2097
StrokeCollection newStrokes = new
StrokeCollection
();
2238
_dynamicallySelectedStrokes = new
StrokeCollection
();
2311
ChangeInkCanvasSelection(new
StrokeCollection
(), Array.Empty<UIElement>());
2327
CoreChangeSelection(new
StrokeCollection
(), Array.Empty<UIElement>(), raiseSelectionChangedEvent);
2440
StrokeCollection validStrokes = new
StrokeCollection
();
2496
return new
StrokeCollection
();
2674
removeSelectedStrokes ? new
StrokeCollection
() : strokes,
System\Windows\Ink\Events.cs (1)
203
StrokeCollection sc = new
StrokeCollection
();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10699
DefaultConstructor = delegate () { return new System.Windows.Ink.
StrokeCollection
(); },
System\Windows\Markup\KnownTypes.cs (1)
1569
case KnownElements.StrokeCollection: o = new System.Windows.Ink.
StrokeCollection
(); break;
179 references to StrokeCollection
PresentationCore (89)
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (2)
114
internal GestureRecognitionResult[] Recognize(
StrokeCollection
strokes)
391
private int AddStrokes(MS.Win32.Recognizer.ContextSafeHandle recContext,
StrokeCollection
strokes)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (4)
40
internal StrokeCollectionSerializer(
StrokeCollection
coreStrokes)
1992
internal static uint SaveStrokeIds(
StrokeCollection
strokes, Stream strm, bool forceSave)
2675
private
StrokeCollection
_coreStrokes;
2702
internal static int[] GetStrokeIds(
StrokeCollection
strokes)
MS\Internal\Ink\Renderer.cs (4)
205
internal
StrokeCollection
Strokes
427
StrokeCollection
added = eventArgs.Added;
428
StrokeCollection
removed = eventArgs.Removed;
697
private
StrokeCollection
_strokes = null;
System\Windows\Ink\Events.cs (12)
21
private
StrokeCollection
.ReadOnlyStrokeCollection _added;
22
private
StrokeCollection
.ReadOnlyStrokeCollection _removed;
26
internal StrokeCollectionChangedEventArgs(
StrokeCollection
added,
StrokeCollection
removed, int index) :
33
public StrokeCollectionChangedEventArgs(
StrokeCollection
added,
StrokeCollection
removed)
39
_added = ( added == null ) ? null : new
StrokeCollection
.ReadOnlyStrokeCollection(added);
40
_removed = ( removed == null ) ? null : new
StrokeCollection
.ReadOnlyStrokeCollection(removed);
44
public
StrokeCollection
Added
50
_added = new
StrokeCollection
.ReadOnlyStrokeCollection(new StrokeCollection());
57
public
StrokeCollection
Removed
63
_removed = new
StrokeCollection
.ReadOnlyStrokeCollection(new StrokeCollection());
System\Windows\Ink\GestureRecognizer.cs (3)
134
public ReadOnlyCollection<GestureRecognitionResult> Recognize(
StrokeCollection
strokes)
148
internal ReadOnlyCollection<GestureRecognitionResult> CriticalRecognize(
StrokeCollection
strokes)
159
private ReadOnlyCollection<GestureRecognitionResult> RecognizeImpl(
StrokeCollection
strokes)
System\Windows\Ink\IncrementalHitTester.cs (18)
116
internal IncrementalHitTester(
StrokeCollection
strokes)
163
StrokeCollection
added = args.Added;
164
StrokeCollection
removed = args.Removed;
178
StrokeCollection
localRemoved = new StrokeCollection(removed);
274
private
StrokeCollection
_strokes;
306
internal IncrementalLassoHitTester(
StrokeCollection
strokes, int percentageWithinLasso)
336
StrokeCollection
strokesHit = null;
337
StrokeCollection
strokesUnhit = null;
495
internal IncrementalStrokeHitTester(
StrokeCollection
strokes, StylusShape eraserShape)
611
internal LassoSelectionChangedEventArgs(
StrokeCollection
selectedStrokes,
StrokeCollection
deselectedStrokes)
620
public
StrokeCollection
SelectedStrokes
626
StrokeCollection
sc = new StrokeCollection();
640
public
StrokeCollection
DeselectedStrokes
646
StrokeCollection
sc = new StrokeCollection();
657
private
StrokeCollection
_selectedStrokes;
658
private
StrokeCollection
_deselectedStrokes;
683
public
StrokeCollection
GetPointEraseResults()
System\Windows\Ink\Stroke.cs (4)
712
private
StrokeCollection
Clip(StrokeFIndices[] cutAt)
724
StrokeCollection
leftovers = new StrokeCollection();
774
private
StrokeCollection
Erase(StrokeFIndices[] cutAt)
786
StrokeCollection
leftovers = new StrokeCollection();
System\Windows\Ink\Stroke2.cs (8)
102
public
StrokeCollection
GetClipResult(Rect bounds)
113
public
StrokeCollection
GetClipResult(IEnumerable<Point> lassoPoints)
134
public
StrokeCollection
GetEraseResult(Rect bounds)
144
public
StrokeCollection
GetEraseResult(IEnumerable<Point> lassoPoints)
165
public
StrokeCollection
GetEraseResult(IEnumerable<Point> eraserPath, StylusShape eraserShape)
604
internal
StrokeCollection
Erase(StrokeIntersection[] cutAt)
611
StrokeCollection
strokes = new StrokeCollection();
628
internal
StrokeCollection
Clip(StrokeIntersection[] cutAt)
System\Windows\Ink\StrokeCollection.cs (17)
247
public virtual
StrokeCollection
Clone()
249
StrokeCollection
clone = new StrokeCollection();
276
StrokeCollection
removed = new StrokeCollection();
296
StrokeCollection
removed = new StrokeCollection();
314
StrokeCollection
addedStrokes = new StrokeCollection();
333
StrokeCollection
removed = new StrokeCollection();
336
StrokeCollection
added = new StrokeCollection();
368
public void Remove(
StrokeCollection
strokes)
409
public void Add(
StrokeCollection
strokes)
444
public void Replace(Stroke strokeToReplace,
StrokeCollection
strokesToReplaceWith)
451
StrokeCollection
strokesToReplace = new StrokeCollection();
461
public void Replace(
StrokeCollection
strokesToReplace,
StrokeCollection
strokesToReplaceWith)
735
private int[] GetStrokeIndexes(
StrokeCollection
strokes)
800
private void RaiseStrokesChanged(
StrokeCollection
addedStrokes,
StrokeCollection
removedStrokes, int index)
843
internal ReadOnlyStrokeCollection(
StrokeCollection
strokeCollection)
System\Windows\Ink\StrokeCollection2.cs (14)
51
public
StrokeCollection
HitTest(Point point)
62
public
StrokeCollection
HitTest(Point point, double diameter)
78
public
StrokeCollection
HitTest(IEnumerable<Point> lassoPoints, int percentageWithinLasso)
96
StrokeCollection
lassoedStrokes = new StrokeCollection();
146
public
StrokeCollection
HitTest(Rect bounds, int percentageWithinBounds)
159
StrokeCollection
hits = new StrokeCollection();
180
public
StrokeCollection
HitTest(IEnumerable<Point> path, StylusShape stylusShape)
197
StrokeCollection
hits = new StrokeCollection();
247
StrokeCollection
clipResult = stroke.Clip(stroke.HitTest(lasso));
289
StrokeCollection
eraseResult = stroke.Erase(stroke.HitTest(lasso));
336
StrokeCollection
eraseResult = stroke.Erase(intersections.ToArray());
434
private
StrokeCollection
PointHitTest(Point point, StylusShape shape)
437
StrokeCollection
hits = new StrokeCollection();
450
private void UpdateStrokeCollection(Stroke original,
StrokeCollection
toReplace, ref int index)
System\Windows\Ink\StrokeCollectionConverter.cs (3)
113
StrokeCollection
strokes = value as
StrokeCollection
;
129
ConstructorInfo ci = typeof(
StrokeCollection
).GetConstructor(new Type[] { typeof(Stream) });
PresentationFramework (90)
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (2)
374
StrokeCollection
strokes = ((InkCanvas)InnerControl).Strokes;
396
StrokeCollection
strokes = null;
MS\Internal\Ink\ClipboardProcessor.cs (6)
103
StrokeCollection
strokes = inkCanvasSelection.SelectedStrokes;
110
StrokeCollection
orderedStrokes = new StrokeCollection();
111
StrokeCollection
inkCanvasStrokes = InkCanvas.Strokes; //cache to avoid multiple property gets
180
internal bool PasteData(IDataObject dataObject, ref
StrokeCollection
newStrokes, ref List<UIElement> newElements)
314
private bool CopySelectionInXAML(IDataObject dataObject,
StrokeCollection
strokes, List<UIElement> elements, Matrix transform, Size size)
370
private void TearDownInkCanvasContainer(InkCanvas rootInkCanvas, ref
StrokeCollection
newStrokes, ref List<UIElement> newElements)
MS\Internal\Ink\EraserBehavior.cs (2)
394
StrokeCollection
eraseResult = e.GetPointEraseResults();
397
StrokeCollection
strokesToReplace = new StrokeCollection();
MS\Internal\Ink\InkCanvasSelection.cs (7)
59
internal
StrokeCollection
SelectedStrokes
192
internal void Select(
StrokeCollection
strokes, IList<UIElement> elements, bool raiseSelectionChanged)
484
internal void TransformStrokes(
StrokeCollection
strokes, Matrix matrix)
536
internal void SelectionIsDifferentThanCurrent(
StrokeCollection
strokes,
979
private static bool StrokesAreEqual(
StrokeCollection
strokes1,
StrokeCollection
strokes2)
1098
private
StrokeCollection
_selectedStrokes;
MS\Internal\Ink\ISFClipboardData.cs (7)
33
internal ISFClipboardData(
StrokeCollection
strokes)
41
return dataObject.GetDataPresent(
StrokeCollection
.InkSerializedFormat, false);
71
dataObject.SetData(
StrokeCollection
.InkSerializedFormat, stream);
78
MemoryStream stream = dataObject.GetData(
StrokeCollection
.InkSerializedFormat) as MemoryStream;
80
StrokeCollection
newStrokes = null;
113
internal
StrokeCollection
Strokes
131
private
StrokeCollection
_strokes;
MS\Internal\Ink\LassoSelectionBehavior.cs (2)
236
StrokeCollection
selectedStrokes = new StrokeCollection();
635
StrokeCollection
hitTestStrokes = InkCanvas.Strokes.HitTest(point, 5.0d);
MS\Internal\Ink\StrokeCollectionDefaultValueFactory.cs (4)
37
Debug.Assert(property.PropertyType == typeof(
StrokeCollection
),
41
StrokeCollection
defaultValue = new StrokeCollection();
77
StrokeCollection
value = (
StrokeCollection
)sender;
System\Windows\Controls\InkCanvas.cs (29)
598
public
StrokeCollection
Strokes
600
get { return (
StrokeCollection
)GetValue(StrokesProperty); }
607
StrokeCollection
oldValue = (
StrokeCollection
)e.OldValue;
608
StrokeCollection
newValue = (
StrokeCollection
)e.NewValue;
1059
StrokeCollection
strokes = new StrokeCollection();
1712
public
StrokeCollection
GetSelectedStrokes()
1716
StrokeCollection
sc = new StrokeCollection();
1725
public void Select(
StrokeCollection
selectedStrokes)
1746
public void Select(
StrokeCollection
selectedStrokes, IEnumerable<UIElement> selectedElements)
1758
StrokeCollection
validStrokes = ValidateSelectedStrokes(selectedStrokes);
2097
StrokeCollection
newStrokes = new StrokeCollection();
2247
internal void UpdateDynamicSelection(
StrokeCollection
strokesToDynamicallySelect,
2248
StrokeCollection
strokesToDynamicallyUnselect)
2278
internal
StrokeCollection
EndDynamicSelection(Visual visual)
2284
StrokeCollection
selectedStrokes = _dynamicallySelectedStrokes;
2336
internal void ChangeInkCanvasSelection(
StrokeCollection
strokes, UIElement[] elements)
2350
StrokeCollection
validStrokes = strokes;
2397
StrokeCollection
currentSelectedStrokes = InkCanvasSelection.SelectedStrokes;
2419
private void CoreChangeSelection(
StrokeCollection
validStrokes, IList<UIElement> validElements, bool raiseSelectionChanged)
2438
internal static
StrokeCollection
GetValidStrokes(
StrokeCollection
subset,
StrokeCollection
superset)
2440
StrokeCollection
validStrokes = new StrokeCollection();
2489
private
StrokeCollection
ValidateSelectedStrokes(
StrokeCollection
strokes)
2669
StrokeCollection
strokes = GetSelectedStrokes();
3062
private
StrokeCollection
_dynamicallySelectedStrokes;
System\Windows\Controls\InkPresenter.cs (12)
103
typeof(
StrokeCollection
),
114
public
StrokeCollection
Strokes
116
get { return (
StrokeCollection
)GetValue(StrokesProperty); }
124
StrokeCollection
oldValue = (
StrokeCollection
)e.OldValue;
125
StrokeCollection
newValue = (
StrokeCollection
)e.NewValue;
151
StrokeCollection
strokes = Strokes;
447
private void SetStrokesChangedHandlers(
StrokeCollection
newStrokes,
StrokeCollection
oldStrokes)
478
private void SetStrokeChangedHandlers(
StrokeCollection
addedStrokes,
StrokeCollection
removedStrokes)
System\Windows\Controls\StickyNote.cs (2)
1537
private void StartListenToStrokesEvent(
StrokeCollection
strokes)
1547
private void StopListenToStrokesEvent(
StrokeCollection
strokes)
System\Windows\Ink\Events.cs (14)
75
internal InkCanvasStrokesReplacedEventArgs(Swi.
StrokeCollection
newStrokes, Swi.
StrokeCollection
previousStrokes)
86
public Swi.
StrokeCollection
NewStrokes
94
public Swi.
StrokeCollection
PreviousStrokes
99
private Swi.
StrokeCollection
_newStrokes;
100
private Swi.
StrokeCollection
_previousStrokes;
116
private
StrokeCollection
_strokes;
124
internal InkCanvasSelectionChangingEventArgs(
StrokeCollection
selectedStrokes, IEnumerable<UIElement> selectedElements)
186
public void SetSelectedStrokes(
StrokeCollection
selectedStrokes)
198
public
StrokeCollection
GetSelectedStrokes()
203
StrokeCollection
sc = new StrokeCollection();
290
private
StrokeCollection
_strokes;
299
public InkCanvasGestureEventArgs(
StrokeCollection
strokes, IEnumerable<GestureRecognitionResult> gestureRecognitionResults)
321
public
StrokeCollection
Strokes
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
711
case 618: t = () => typeof(
StrokeCollection
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10696
typeof(System.Windows.Ink.
StrokeCollection
),
System\Windows\Markup\KnownTypes.cs (1)
6165
case KnownElements.StrokeCollection: t = typeof(System.Windows.Ink.
StrokeCollection
); break;