1 type derived from StrokeCollection
PresentationCore (1)
Core\CSharp\System\Windows\Ink\StrokeCollection.cs (1)
884
internal class ReadOnlyStrokeCollection :
StrokeCollection
, ICollection<Stroke>, IList
58 instantiations of StrokeCollection
PresentationCore (32)
Core\CSharp\MS\Internal\Ink\Renderer.cs (1)
227
_strokes = new
StrokeCollection
();
Core\CSharp\System\Windows\Ink\Events.cs (2)
55
_added = new StrokeCollection.ReadOnlyStrokeCollection(new
StrokeCollection
());
68
_removed = new StrokeCollection.ReadOnlyStrokeCollection(new
StrokeCollection
());
Core\CSharp\System\Windows\Ink\IncrementalHitTester.cs (7)
196
StrokeCollection localRemoved = new
StrokeCollection
(removed);
445
strokesHit = new
StrokeCollection
();
455
strokesUnhit = new
StrokeCollection
();
647
StrokeCollection sc = new
StrokeCollection
();
653
return new
StrokeCollection
();
667
StrokeCollection sc = new
StrokeCollection
();
673
return new
StrokeCollection
();
Core\CSharp\System\Windows\Ink\Stroke.cs (2)
757
StrokeCollection leftovers = new
StrokeCollection
();
819
StrokeCollection leftovers = new
StrokeCollection
();
Core\CSharp\System\Windows\Ink\Stroke2.cs (3)
670
StrokeCollection strokes = new
StrokeCollection
();
694
return new
StrokeCollection
();
704
return new
StrokeCollection
();
Core\CSharp\System\Windows\Ink\StrokeCollection.cs (7)
276
StrokeCollection clone = new
StrokeCollection
();
307
StrokeCollection removed = new
StrokeCollection
();
327
StrokeCollection removed = new
StrokeCollection
();
348
StrokeCollection addedStrokes = new
StrokeCollection
();
370
StrokeCollection removed = new
StrokeCollection
();
373
StrokeCollection added = new
StrokeCollection
();
494
StrokeCollection strokesToReplace = new
StrokeCollection
();
Core\CSharp\System\Windows\Ink\StrokeCollection2.cs (8)
107
return new
StrokeCollection
();
114
StrokeCollection lassoedStrokes = new
StrokeCollection
();
177
return new
StrokeCollection
();
181
StrokeCollection hits = new
StrokeCollection
();
219
return new
StrokeCollection
();
227
return new
StrokeCollection
();
229
StrokeCollection hits = new
StrokeCollection
();
485
StrokeCollection hits = new
StrokeCollection
();
Core\CSharp\System\Windows\Ink\StrokeCollectionConverter.cs (2)
101
return new
StrokeCollection
(ms);
106
return new
StrokeCollection
();
PresentationFramework (26)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (2)
413
strokes = new
StrokeCollection
();
419
strokes = new
StrokeCollection
(stream);
src\Framework\MS\Internal\Ink\ClipboardProcessor.cs (1)
130
StrokeCollection orderedStrokes = new
StrokeCollection
();
src\Framework\MS\Internal\Ink\EraserBehavior.cs (1)
414
StrokeCollection strokesToReplace = new
StrokeCollection
();
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (3)
86
_selectedStrokes = new
StrokeCollection
();
797
new StrokeCollectionChangedEventArgs(new
StrokeCollection
(), new
StrokeCollection
()));
src\Framework\MS\Internal\Ink\ISFClipboardData.cs (2)
112
newStrokes = new
StrokeCollection
(stream);
124
_strokes = fSucceeded ? newStrokes : new
StrokeCollection
();
src\Framework\MS\Internal\Ink\LassoSelectionBehavior.cs (2)
248
StrokeCollection selectedStrokes = new
StrokeCollection
();
285
selectedStrokes = new
StrokeCollection
();
src\Framework\MS\Internal\Ink\StrokeCollectionDefaultValueFactory.cs (2)
36
return new
StrokeCollection
();
49
StrokeCollection defaultValue = new
StrokeCollection
();
src\Framework\System\Windows\Controls\InkCanvas.cs (10)
632
inkCanvas.CoreChangeSelection(new
StrokeCollection
(), inkCanvas.InkCanvasSelection.SelectedElements, false);
1094
StrokeCollection strokes = new
StrokeCollection
();
1793
StrokeCollection sc = new
StrokeCollection
();
2195
StrokeCollection newStrokes = new
StrokeCollection
();
2360
_dynamicallySelectedStrokes = new
StrokeCollection
();
2433
ChangeInkCanvasSelection(new
StrokeCollection
(), new UIElement[]{});
2449
CoreChangeSelection(new
StrokeCollection
(), new UIElement[] { }, raiseSelectionChangedEvent);
2563
StrokeCollection validStrokes = new
StrokeCollection
();
2633
return new
StrokeCollection
();
2811
removeSelectedStrokes ? new
StrokeCollection
() : strokes,
src\Framework\System\Windows\Ink\Events.cs (1)
236
StrokeCollection sc = new
StrokeCollection
();
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9645
bamlType.DefaultConstructor = delegate() { return new System.Windows.Ink.
StrokeCollection
(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1577
case KnownElements.StrokeCollection: o = new System.Windows.Ink.
StrokeCollection
(); break;
182 references to StrokeCollection
PresentationCore (92)
Core\CSharp\MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (2)
177
internal GestureRecognitionResult[] Recognize(
StrokeCollection
strokes)
500
private int AddStrokes(MS.Win32.Recognizer.ContextSafeHandle recContext,
StrokeCollection
strokes)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (4)
57
internal StrokeCollectionSerializer(
StrokeCollection
coreStrokes)
2058
internal static uint SaveStrokeIds(
StrokeCollection
strokes, Stream strm, bool forceSave)
2767
StrokeCollection
_coreStrokes;
2795
internal static int[] GetStrokeIds(
StrokeCollection
strokes)
Core\CSharp\MS\Internal\Ink\Renderer.cs (4)
220
internal
StrokeCollection
Strokes
454
StrokeCollection
added = eventArgs.Added;
455
StrokeCollection
removed = eventArgs.Removed;
722
private
StrokeCollection
_strokes = null;
Core\CSharp\System\Windows\DataFormats.cs (2)
476
int inkServicesFrameworkFormatId = UnsafeNativeMethods.RegisterClipboardFormat(System.Windows.Ink.
StrokeCollection
.InkSerializedFormat);
480
_formatList.Add(new DataFormat(System.Windows.Ink.
StrokeCollection
.InkSerializedFormat,
Core\CSharp\System\Windows\DataObject.cs (1)
1886
if ( format == System.Windows.Ink.
StrokeCollection
.InkSerializedFormat )
Core\CSharp\System\Windows\Ink\Events.cs (12)
26
private
StrokeCollection
.ReadOnlyStrokeCollection _added;
27
private
StrokeCollection
.ReadOnlyStrokeCollection _removed;
31
internal StrokeCollectionChangedEventArgs(
StrokeCollection
added,
StrokeCollection
removed, int index) :
38
public StrokeCollectionChangedEventArgs(
StrokeCollection
added,
StrokeCollection
removed)
44
_added = ( added == null ) ? null : new
StrokeCollection
.ReadOnlyStrokeCollection(added);
45
_removed = ( removed == null ) ? null : new
StrokeCollection
.ReadOnlyStrokeCollection(removed);
49
public
StrokeCollection
Added
55
_added = new
StrokeCollection
.ReadOnlyStrokeCollection(new StrokeCollection());
62
public
StrokeCollection
Removed
68
_removed = new
StrokeCollection
.ReadOnlyStrokeCollection(new StrokeCollection());
Core\CSharp\System\Windows\Ink\GestureRecognizer.cs (3)
164
public ReadOnlyCollection<GestureRecognitionResult> Recognize(
StrokeCollection
strokes)
191
internal ReadOnlyCollection<GestureRecognitionResult> CriticalRecognize(
StrokeCollection
strokes)
206
private ReadOnlyCollection<GestureRecognitionResult> RecognizeImpl(
StrokeCollection
strokes)
Core\CSharp\System\Windows\Ink\IncrementalHitTester.cs (18)
134
internal IncrementalHitTester(
StrokeCollection
strokes)
181
StrokeCollection
added = args.Added;
182
StrokeCollection
removed = args.Removed;
196
StrokeCollection
localRemoved = new StrokeCollection(removed);
295
private
StrokeCollection
_strokes;
327
internal IncrementalLassoHitTester(
StrokeCollection
strokes, int percentageWithinLasso)
357
StrokeCollection
strokesHit = null;
358
StrokeCollection
strokesUnhit = null;
516
internal IncrementalStrokeHitTester(
StrokeCollection
strokes, StylusShape eraserShape)
632
internal LassoSelectionChangedEventArgs(
StrokeCollection
selectedStrokes,
StrokeCollection
deselectedStrokes)
641
public
StrokeCollection
SelectedStrokes
647
StrokeCollection
sc = new StrokeCollection();
661
public
StrokeCollection
DeselectedStrokes
667
StrokeCollection
sc = new StrokeCollection();
678
private
StrokeCollection
_selectedStrokes;
679
private
StrokeCollection
_deselectedStrokes;
704
public
StrokeCollection
GetPointEraseResults()
Core\CSharp\System\Windows\Ink\Stroke.cs (4)
745
private
StrokeCollection
Clip(StrokeFIndices[] cutAt)
757
StrokeCollection
leftovers = new StrokeCollection();
807
private
StrokeCollection
Erase(StrokeFIndices[] cutAt)
819
StrokeCollection
leftovers = new StrokeCollection();
Core\CSharp\System\Windows\Ink\Stroke2.cs (8)
121
public
StrokeCollection
GetClipResult(Rect bounds)
132
public
StrokeCollection
GetClipResult(IEnumerable<Point> lassoPoints)
156
public
StrokeCollection
GetEraseResult(Rect bounds)
166
public
StrokeCollection
GetEraseResult(IEnumerable<Point> lassoPoints)
190
public
StrokeCollection
GetEraseResult(IEnumerable<Point> eraserPath, StylusShape eraserShape)
663
internal
StrokeCollection
Erase(StrokeIntersection[] cutAt)
670
StrokeCollection
strokes = new StrokeCollection();
687
internal
StrokeCollection
Clip(StrokeIntersection[] cutAt)
Core\CSharp\System\Windows\Ink\StrokeCollection.cs (17)
274
public virtual
StrokeCollection
Clone()
276
StrokeCollection
clone = new StrokeCollection();
307
StrokeCollection
removed = new StrokeCollection();
327
StrokeCollection
removed = new StrokeCollection();
348
StrokeCollection
addedStrokes = new StrokeCollection();
370
StrokeCollection
removed = new StrokeCollection();
373
StrokeCollection
added = new StrokeCollection();
405
public void Remove(
StrokeCollection
strokes)
449
public void Add(
StrokeCollection
strokes)
487
public void Replace(Stroke strokeToReplace,
StrokeCollection
strokesToReplaceWith)
494
StrokeCollection
strokesToReplace = new StrokeCollection();
504
public void Replace(
StrokeCollection
strokesToReplace,
StrokeCollection
strokesToReplaceWith)
778
private int[] GetStrokeIndexes(
StrokeCollection
strokes)
843
private void RaiseStrokesChanged(
StrokeCollection
addedStrokes,
StrokeCollection
removedStrokes, int index)
886
internal ReadOnlyStrokeCollection(
StrokeCollection
strokeCollection)
Core\CSharp\System\Windows\Ink\StrokeCollection2.cs (14)
66
public
StrokeCollection
HitTest(Point point)
77
public
StrokeCollection
HitTest(Point point, double diameter)
93
public
StrokeCollection
HitTest(IEnumerable<Point> lassoPoints, int percentageWithinLasso)
114
StrokeCollection
lassoedStrokes = new StrokeCollection();
168
public
StrokeCollection
HitTest(Rect bounds, int percentageWithinBounds)
181
StrokeCollection
hits = new StrokeCollection();
206
public
StrokeCollection
HitTest(IEnumerable<Point> path, StylusShape stylusShape)
229
StrokeCollection
hits = new StrokeCollection();
286
StrokeCollection
clipResult = stroke.Clip(stroke.HitTest(lasso));
331
StrokeCollection
eraseResult = stroke.Erase(stroke.HitTest(lasso));
378
StrokeCollection
eraseResult = stroke.Erase(intersections.ToArray());
482
private
StrokeCollection
PointHitTest(Point point, StylusShape shape)
485
StrokeCollection
hits = new StrokeCollection();
498
private void UpdateStrokeCollection(Stroke original,
StrokeCollection
toReplace, ref int index)
Core\CSharp\System\Windows\Ink\StrokeCollectionConverter.cs (3)
140
StrokeCollection
strokes = value as
StrokeCollection
;
156
ConstructorInfo ci = typeof(
StrokeCollection
).GetConstructor(new Type[] { typeof(Stream) });
PresentationFramework (90)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (2)
386
StrokeCollection
strokes = ((InkCanvas)InnerControl).Strokes;
408
StrokeCollection
strokes = null;
src\Framework\MS\Internal\Ink\ClipboardProcessor.cs (6)
123
StrokeCollection
strokes = inkCanvasSelection.SelectedStrokes;
130
StrokeCollection
orderedStrokes = new StrokeCollection();
131
StrokeCollection
inkCanvasStrokes = InkCanvas.Strokes; //cache to avoid multiple property gets
200
internal bool PasteData(IDataObject dataObject, ref
StrokeCollection
newStrokes, ref List<UIElement> newElements)
342
private bool CopySelectionInXAML(IDataObject dataObject,
StrokeCollection
strokes, List<UIElement> elements, Matrix transform, Size size)
422
private void TearDownInkCanvasContainer(InkCanvas rootInkCanvas, ref
StrokeCollection
newStrokes, ref List<UIElement> newElements)
src\Framework\MS\Internal\Ink\EraserBehavior.cs (2)
411
StrokeCollection
eraseResult = e.GetPointEraseResults();
414
StrokeCollection
strokesToReplace = new StrokeCollection();
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (7)
80
internal
StrokeCollection
SelectedStrokes
214
internal void Select(
StrokeCollection
strokes, IList<UIElement> elements, bool raiseSelectionChanged)
507
internal void TransformStrokes(
StrokeCollection
strokes, Matrix matrix)
559
internal void SelectionIsDifferentThanCurrent(
StrokeCollection
strokes,
1003
private static bool StrokesAreEqual(
StrokeCollection
strokes1,
StrokeCollection
strokes2)
1123
private
StrokeCollection
_selectedStrokes;
src\Framework\MS\Internal\Ink\ISFClipboardData.cs (7)
41
internal ISFClipboardData(
StrokeCollection
strokes)
49
return dataObject.GetDataPresent(
StrokeCollection
.InkSerializedFormat, false);
89
dataObject.SetData(
StrokeCollection
.InkSerializedFormat, stream);
103
MemoryStream stream = dataObject.GetData(
StrokeCollection
.InkSerializedFormat) as MemoryStream;
105
StrokeCollection
newStrokes = null;
138
internal
StrokeCollection
Strokes
156
StrokeCollection
_strokes;
src\Framework\MS\Internal\Ink\LassoSelectionBehavior.cs (2)
248
StrokeCollection
selectedStrokes = new StrokeCollection();
650
StrokeCollection
hitTestStrokes = InkCanvas.Strokes.HitTest(point, 5.0d);
src\Framework\MS\Internal\Ink\StrokeCollectionDefaultValueFactory.cs (4)
45
Debug.Assert(property.PropertyType == typeof(
StrokeCollection
),
49
StrokeCollection
defaultValue = new StrokeCollection();
85
StrokeCollection
value = (
StrokeCollection
)sender;
src\Framework\System\Windows\Controls\InkCanvas.cs (29)
613
public
StrokeCollection
Strokes
615
get { return (
StrokeCollection
)GetValue(StrokesProperty); }
622
StrokeCollection
oldValue = (
StrokeCollection
)e.OldValue;
623
StrokeCollection
newValue = (
StrokeCollection
)e.NewValue;
1094
StrokeCollection
strokes = new StrokeCollection();
1789
public
StrokeCollection
GetSelectedStrokes()
1793
StrokeCollection
sc = new StrokeCollection();
1802
public void Select(
StrokeCollection
selectedStrokes)
1823
public void Select(
StrokeCollection
selectedStrokes, IEnumerable<UIElement> selectedElements)
1835
StrokeCollection
validStrokes = ValidateSelectedStrokes(selectedStrokes);
2195
StrokeCollection
newStrokes = new StrokeCollection();
2369
internal void UpdateDynamicSelection(
StrokeCollection
strokesToDynamicallySelect,
2370
StrokeCollection
strokesToDynamicallyUnselect)
2400
internal
StrokeCollection
EndDynamicSelection(Visual visual)
2406
StrokeCollection
selectedStrokes = _dynamicallySelectedStrokes;
2458
internal void ChangeInkCanvasSelection(
StrokeCollection
strokes, UIElement[] elements)
2472
StrokeCollection
validStrokes = strokes;
2520
StrokeCollection
currentSelectedStrokes = InkCanvasSelection.SelectedStrokes;
2542
private void CoreChangeSelection(
StrokeCollection
validStrokes, IList<UIElement> validElements, bool raiseSelectionChanged)
2561
internal static
StrokeCollection
GetValidStrokes(
StrokeCollection
subset,
StrokeCollection
superset)
2563
StrokeCollection
validStrokes = new StrokeCollection();
2626
private
StrokeCollection
ValidateSelectedStrokes(
StrokeCollection
strokes)
2806
StrokeCollection
strokes = GetSelectedStrokes();
3206
private
StrokeCollection
_dynamicallySelectedStrokes;
src\Framework\System\Windows\Controls\InkPresenter.cs (12)
119
typeof(
StrokeCollection
),
130
public
StrokeCollection
Strokes
132
get { return (
StrokeCollection
)GetValue(StrokesProperty); }
140
StrokeCollection
oldValue = (
StrokeCollection
)e.OldValue;
141
StrokeCollection
newValue = (
StrokeCollection
)e.NewValue;
167
StrokeCollection
strokes = Strokes;
466
private void SetStrokesChangedHandlers(
StrokeCollection
newStrokes,
StrokeCollection
oldStrokes)
497
private void SetStrokeChangedHandlers(
StrokeCollection
addedStrokes,
StrokeCollection
removedStrokes)
src\Framework\System\Windows\Controls\StickyNote.cs (2)
1595
private void StartListenToStrokesEvent(
StrokeCollection
strokes)
1605
private void StopListenToStrokesEvent(
StrokeCollection
strokes)
src\Framework\System\Windows\Ink\Events.cs (14)
89
internal InkCanvasStrokesReplacedEventArgs(Swi.
StrokeCollection
newStrokes, Swi.
StrokeCollection
previousStrokes)
106
public Swi.
StrokeCollection
NewStrokes
114
public Swi.
StrokeCollection
PreviousStrokes
119
private Swi.
StrokeCollection
_newStrokes;
120
private Swi.
StrokeCollection
_previousStrokes;
137
private
StrokeCollection
_strokes;
145
internal InkCanvasSelectionChangingEventArgs(
StrokeCollection
selectedStrokes, IEnumerable<UIElement> selectedElements)
216
public void SetSelectedStrokes(
StrokeCollection
selectedStrokes)
231
public
StrokeCollection
GetSelectedStrokes()
236
StrokeCollection
sc = new StrokeCollection();
326
private
StrokeCollection
_strokes;
335
public InkCanvasGestureEventArgs(
StrokeCollection
strokes, IEnumerable<GestureRecognitionResult> gestureRecognitionResults)
363
public
StrokeCollection
Strokes
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
710
case 618: t = () => typeof(
StrokeCollection
); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9643
typeof(System.Windows.Ink.
StrokeCollection
),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
6162
case KnownElements.StrokeCollection: t = typeof(System.Windows.Ink.
StrokeCollection
); break;