1 type derived from StrokeCollection
PresentationCore (1)
System\Windows\Ink\StrokeCollection.cs (1)
848
internal class ReadOnlyStrokeCollection :
StrokeCollection
, ICollection<Stroke>, IList
58 instantiations of StrokeCollection
PresentationCore (32)
MS\Internal\Ink\Renderer.cs (1)
213
_strokes = new
StrokeCollection
();
System\Windows\Ink\Events.cs (2)
51
_added = new StrokeCollection.ReadOnlyStrokeCollection(new
StrokeCollection
());
64
_removed = new StrokeCollection.ReadOnlyStrokeCollection(new
StrokeCollection
());
System\Windows\Ink\IncrementalHitTester.cs (7)
179
StrokeCollection localRemoved = new
StrokeCollection
(removed);
428
strokesHit = new
StrokeCollection
();
438
strokesUnhit = new
StrokeCollection
();
630
StrokeCollection sc = new
StrokeCollection
();
636
return new
StrokeCollection
();
650
StrokeCollection sc = new
StrokeCollection
();
656
return new
StrokeCollection
();
System\Windows\Ink\Stroke.cs (2)
725
StrokeCollection leftovers = new
StrokeCollection
();
787
StrokeCollection leftovers = new
StrokeCollection
();
System\Windows\Ink\Stroke2.cs (3)
618
StrokeCollection strokes = new
StrokeCollection
();
642
return new
StrokeCollection
();
652
return new
StrokeCollection
();
System\Windows\Ink\StrokeCollection.cs (7)
252
StrokeCollection clone = new
StrokeCollection
();
283
StrokeCollection removed = new
StrokeCollection
();
303
StrokeCollection removed = new
StrokeCollection
();
321
StrokeCollection addedStrokes = new
StrokeCollection
();
340
StrokeCollection removed = new
StrokeCollection
();
343
StrokeCollection added = new
StrokeCollection
();
458
StrokeCollection strokesToReplace = new
StrokeCollection
();
System\Windows\Ink\StrokeCollection2.cs (8)
94
return new
StrokeCollection
();
101
StrokeCollection lassoedStrokes = new
StrokeCollection
();
163
return new
StrokeCollection
();
167
StrokeCollection hits = new
StrokeCollection
();
199
return new
StrokeCollection
();
207
return new
StrokeCollection
();
209
StrokeCollection hits = new
StrokeCollection
();
453
StrokeCollection hits = new
StrokeCollection
();
System\Windows\Ink\StrokeCollectionConverter.cs (2)
89
return new
StrokeCollection
(ms);
94
return new
StrokeCollection
();
PresentationFramework (26)
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (2)
402
strokes = new
StrokeCollection
();
408
strokes = new
StrokeCollection
(stream);
MS\Internal\Ink\ClipboardProcessor.cs (1)
111
StrokeCollection orderedStrokes = new
StrokeCollection
();
MS\Internal\Ink\EraserBehavior.cs (1)
399
StrokeCollection strokesToReplace = new
StrokeCollection
();
MS\Internal\Ink\InkCanvasSelection.cs (3)
66
_selectedStrokes = new
StrokeCollection
();
775
new StrokeCollectionChangedEventArgs(new
StrokeCollection
(), new
StrokeCollection
()));
MS\Internal\Ink\ISFClipboardData.cs (2)
93
newStrokes = new
StrokeCollection
(stream);
105
_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)
29
return new
StrokeCollection
();
42
StrokeCollection defaultValue = new
StrokeCollection
();
System\Windows\Controls\InkCanvas.cs (10)
608
inkCanvas.CoreChangeSelection(new
StrokeCollection
(), inkCanvas.InkCanvasSelection.SelectedElements, false);
1048
StrokeCollection strokes = new
StrokeCollection
();
1705
StrokeCollection sc = new
StrokeCollection
();
2084
StrokeCollection newStrokes = new
StrokeCollection
();
2223
_dynamicallySelectedStrokes = new
StrokeCollection
();
2296
ChangeInkCanvasSelection(new
StrokeCollection
(), new UIElement[]{});
2312
CoreChangeSelection(new
StrokeCollection
(), new UIElement[] { }, raiseSelectionChangedEvent);
2425
StrokeCollection validStrokes = new
StrokeCollection
();
2481
return new
StrokeCollection
();
2659
removeSelectedStrokes ? new
StrokeCollection
() : strokes,
System\Windows\Ink\Events.cs (1)
204
StrokeCollection sc = new
StrokeCollection
();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9647
bamlType.DefaultConstructor = delegate() { return new System.Windows.Ink.
StrokeCollection
(); };
System\Windows\Markup\KnownTypes.cs (1)
1576
case KnownElements.StrokeCollection: o = new System.Windows.Ink.
StrokeCollection
(); break;
182 references to StrokeCollection
PresentationCore (92)
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (2)
117
internal GestureRecognitionResult[] Recognize(
StrokeCollection
strokes)
394
private int AddStrokes(MS.Win32.Recognizer.ContextSafeHandle recContext,
StrokeCollection
strokes)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (4)
41
internal StrokeCollectionSerializer(
StrokeCollection
coreStrokes)
1995
internal static uint SaveStrokeIds(
StrokeCollection
strokes, Stream strm, bool forceSave)
2693
StrokeCollection
_coreStrokes;
2721
internal static int[] GetStrokeIds(
StrokeCollection
strokes)
MS\Internal\Ink\Renderer.cs (4)
206
internal
StrokeCollection
Strokes
428
StrokeCollection
added = eventArgs.Added;
429
StrokeCollection
removed = eventArgs.Removed;
696
private
StrokeCollection
_strokes = null;
System\Windows\DataFormats.cs (2)
441
int inkServicesFrameworkFormatId = UnsafeNativeMethods.RegisterClipboardFormat(System.Windows.Ink.
StrokeCollection
.InkSerializedFormat);
445
_formatList.Add(new DataFormat(System.Windows.Ink.
StrokeCollection
.InkSerializedFormat,
System\Windows\dataobject.cs (1)
1563
if ( format == System.Windows.Ink.
StrokeCollection
.InkSerializedFormat )
System\Windows\Ink\Events.cs (12)
22
private
StrokeCollection
.ReadOnlyStrokeCollection _added;
23
private
StrokeCollection
.ReadOnlyStrokeCollection _removed;
27
internal StrokeCollectionChangedEventArgs(
StrokeCollection
added,
StrokeCollection
removed, int index) :
34
public StrokeCollectionChangedEventArgs(
StrokeCollection
added,
StrokeCollection
removed)
40
_added = ( added == null ) ? null : new
StrokeCollection
.ReadOnlyStrokeCollection(added);
41
_removed = ( removed == null ) ? null : new
StrokeCollection
.ReadOnlyStrokeCollection(removed);
45
public
StrokeCollection
Added
51
_added = new
StrokeCollection
.ReadOnlyStrokeCollection(new StrokeCollection());
58
public
StrokeCollection
Removed
64
_removed = new
StrokeCollection
.ReadOnlyStrokeCollection(new StrokeCollection());
System\Windows\Ink\GestureRecognizer.cs (3)
135
public ReadOnlyCollection<GestureRecognitionResult> Recognize(
StrokeCollection
strokes)
149
internal ReadOnlyCollection<GestureRecognitionResult> CriticalRecognize(
StrokeCollection
strokes)
160
private ReadOnlyCollection<GestureRecognitionResult> RecognizeImpl(
StrokeCollection
strokes)
System\Windows\Ink\IncrementalHitTester.cs (18)
117
internal IncrementalHitTester(
StrokeCollection
strokes)
164
StrokeCollection
added = args.Added;
165
StrokeCollection
removed = args.Removed;
179
StrokeCollection
localRemoved = new StrokeCollection(removed);
278
private
StrokeCollection
_strokes;
310
internal IncrementalLassoHitTester(
StrokeCollection
strokes, int percentageWithinLasso)
340
StrokeCollection
strokesHit = null;
341
StrokeCollection
strokesUnhit = null;
499
internal IncrementalStrokeHitTester(
StrokeCollection
strokes, StylusShape eraserShape)
615
internal LassoSelectionChangedEventArgs(
StrokeCollection
selectedStrokes,
StrokeCollection
deselectedStrokes)
624
public
StrokeCollection
SelectedStrokes
630
StrokeCollection
sc = new StrokeCollection();
644
public
StrokeCollection
DeselectedStrokes
650
StrokeCollection
sc = new StrokeCollection();
661
private
StrokeCollection
_selectedStrokes;
662
private
StrokeCollection
_deselectedStrokes;
687
public
StrokeCollection
GetPointEraseResults()
System\Windows\Ink\Stroke.cs (4)
713
private
StrokeCollection
Clip(StrokeFIndices[] cutAt)
725
StrokeCollection
leftovers = new StrokeCollection();
775
private
StrokeCollection
Erase(StrokeFIndices[] cutAt)
787
StrokeCollection
leftovers = new StrokeCollection();
System\Windows\Ink\Stroke2.cs (8)
103
public
StrokeCollection
GetClipResult(Rect bounds)
114
public
StrokeCollection
GetClipResult(IEnumerable<Point> lassoPoints)
135
public
StrokeCollection
GetEraseResult(Rect bounds)
145
public
StrokeCollection
GetEraseResult(IEnumerable<Point> lassoPoints)
166
public
StrokeCollection
GetEraseResult(IEnumerable<Point> eraserPath, StylusShape eraserShape)
611
internal
StrokeCollection
Erase(StrokeIntersection[] cutAt)
618
StrokeCollection
strokes = new StrokeCollection();
635
internal
StrokeCollection
Clip(StrokeIntersection[] cutAt)
System\Windows\Ink\StrokeCollection.cs (17)
250
public virtual
StrokeCollection
Clone()
252
StrokeCollection
clone = new StrokeCollection();
283
StrokeCollection
removed = new StrokeCollection();
303
StrokeCollection
removed = new StrokeCollection();
321
StrokeCollection
addedStrokes = new StrokeCollection();
340
StrokeCollection
removed = new StrokeCollection();
343
StrokeCollection
added = new StrokeCollection();
375
public void Remove(
StrokeCollection
strokes)
416
public void Add(
StrokeCollection
strokes)
451
public void Replace(Stroke strokeToReplace,
StrokeCollection
strokesToReplaceWith)
458
StrokeCollection
strokesToReplace = new StrokeCollection();
468
public void Replace(
StrokeCollection
strokesToReplace,
StrokeCollection
strokesToReplaceWith)
742
private int[] GetStrokeIndexes(
StrokeCollection
strokes)
807
private void RaiseStrokesChanged(
StrokeCollection
addedStrokes,
StrokeCollection
removedStrokes, int index)
850
internal ReadOnlyStrokeCollection(
StrokeCollection
strokeCollection)
System\Windows\Ink\StrokeCollection2.cs (14)
56
public
StrokeCollection
HitTest(Point point)
67
public
StrokeCollection
HitTest(Point point, double diameter)
83
public
StrokeCollection
HitTest(IEnumerable<Point> lassoPoints, int percentageWithinLasso)
101
StrokeCollection
lassoedStrokes = new StrokeCollection();
154
public
StrokeCollection
HitTest(Rect bounds, int percentageWithinBounds)
167
StrokeCollection
hits = new StrokeCollection();
192
public
StrokeCollection
HitTest(IEnumerable<Point> path, StylusShape stylusShape)
209
StrokeCollection
hits = new StrokeCollection();
263
StrokeCollection
clipResult = stroke.Clip(stroke.HitTest(lasso));
305
StrokeCollection
eraseResult = stroke.Erase(stroke.HitTest(lasso));
352
StrokeCollection
eraseResult = stroke.Erase(intersections.ToArray());
450
private
StrokeCollection
PointHitTest(Point point, StylusShape shape)
453
StrokeCollection
hits = new StrokeCollection();
466
private void UpdateStrokeCollection(Stroke original,
StrokeCollection
toReplace, ref int index)
System\Windows\Ink\StrokeCollectionConverter.cs (3)
120
StrokeCollection
strokes = value as
StrokeCollection
;
136
ConstructorInfo ci = typeof(
StrokeCollection
).GetConstructor(new Type[] { typeof(Stream) });
PresentationFramework (90)
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (2)
375
StrokeCollection
strokes = ((InkCanvas)InnerControl).Strokes;
397
StrokeCollection
strokes = null;
MS\Internal\Ink\ClipboardProcessor.cs (6)
104
StrokeCollection
strokes = inkCanvasSelection.SelectedStrokes;
111
StrokeCollection
orderedStrokes = new StrokeCollection();
112
StrokeCollection
inkCanvasStrokes = InkCanvas.Strokes; //cache to avoid multiple property gets
181
internal bool PasteData(IDataObject dataObject, ref
StrokeCollection
newStrokes, ref List<UIElement> newElements)
315
private bool CopySelectionInXAML(IDataObject dataObject,
StrokeCollection
strokes, List<UIElement> elements, Matrix transform, Size size)
371
private void TearDownInkCanvasContainer(InkCanvas rootInkCanvas, ref
StrokeCollection
newStrokes, ref List<UIElement> newElements)
MS\Internal\Ink\EraserBehavior.cs (2)
396
StrokeCollection
eraseResult = e.GetPointEraseResults();
399
StrokeCollection
strokesToReplace = new StrokeCollection();
MS\Internal\Ink\InkCanvasSelection.cs (7)
60
internal
StrokeCollection
SelectedStrokes
193
internal void Select(
StrokeCollection
strokes, IList<UIElement> elements, bool raiseSelectionChanged)
485
internal void TransformStrokes(
StrokeCollection
strokes, Matrix matrix)
537
internal void SelectionIsDifferentThanCurrent(
StrokeCollection
strokes,
980
private static bool StrokesAreEqual(
StrokeCollection
strokes1,
StrokeCollection
strokes2)
1099
private
StrokeCollection
_selectedStrokes;
MS\Internal\Ink\ISFClipboardData.cs (7)
34
internal ISFClipboardData(
StrokeCollection
strokes)
42
return dataObject.GetDataPresent(
StrokeCollection
.InkSerializedFormat, false);
75
dataObject.SetData(
StrokeCollection
.InkSerializedFormat, stream);
84
MemoryStream stream = dataObject.GetData(
StrokeCollection
.InkSerializedFormat) as MemoryStream;
86
StrokeCollection
newStrokes = null;
119
internal
StrokeCollection
Strokes
137
StrokeCollection
_strokes;
MS\Internal\Ink\LassoSelectionBehavior.cs (2)
236
StrokeCollection
selectedStrokes = new StrokeCollection();
637
StrokeCollection
hitTestStrokes = InkCanvas.Strokes.HitTest(point, 5.0d);
MS\Internal\Ink\StrokeCollectionDefaultValueFactory.cs (4)
38
Debug.Assert(property.PropertyType == typeof(
StrokeCollection
),
42
StrokeCollection
defaultValue = new StrokeCollection();
78
StrokeCollection
value = (
StrokeCollection
)sender;
System\Windows\Controls\InkCanvas.cs (29)
589
public
StrokeCollection
Strokes
591
get { return (
StrokeCollection
)GetValue(StrokesProperty); }
598
StrokeCollection
oldValue = (
StrokeCollection
)e.OldValue;
599
StrokeCollection
newValue = (
StrokeCollection
)e.NewValue;
1048
StrokeCollection
strokes = new StrokeCollection();
1701
public
StrokeCollection
GetSelectedStrokes()
1705
StrokeCollection
sc = new StrokeCollection();
1714
public void Select(
StrokeCollection
selectedStrokes)
1735
public void Select(
StrokeCollection
selectedStrokes, IEnumerable<UIElement> selectedElements)
1747
StrokeCollection
validStrokes = ValidateSelectedStrokes(selectedStrokes);
2084
StrokeCollection
newStrokes = new StrokeCollection();
2232
internal void UpdateDynamicSelection(
StrokeCollection
strokesToDynamicallySelect,
2233
StrokeCollection
strokesToDynamicallyUnselect)
2263
internal
StrokeCollection
EndDynamicSelection(Visual visual)
2269
StrokeCollection
selectedStrokes = _dynamicallySelectedStrokes;
2321
internal void ChangeInkCanvasSelection(
StrokeCollection
strokes, UIElement[] elements)
2335
StrokeCollection
validStrokes = strokes;
2382
StrokeCollection
currentSelectedStrokes = InkCanvasSelection.SelectedStrokes;
2404
private void CoreChangeSelection(
StrokeCollection
validStrokes, IList<UIElement> validElements, bool raiseSelectionChanged)
2423
internal static
StrokeCollection
GetValidStrokes(
StrokeCollection
subset,
StrokeCollection
superset)
2425
StrokeCollection
validStrokes = new StrokeCollection();
2474
private
StrokeCollection
ValidateSelectedStrokes(
StrokeCollection
strokes)
2654
StrokeCollection
strokes = GetSelectedStrokes();
3047
private
StrokeCollection
_dynamicallySelectedStrokes;
System\Windows\Controls\InkPresenter.cs (12)
104
typeof(
StrokeCollection
),
115
public
StrokeCollection
Strokes
117
get { return (
StrokeCollection
)GetValue(StrokesProperty); }
125
StrokeCollection
oldValue = (
StrokeCollection
)e.OldValue;
126
StrokeCollection
newValue = (
StrokeCollection
)e.NewValue;
152
StrokeCollection
strokes = Strokes;
451
private void SetStrokesChangedHandlers(
StrokeCollection
newStrokes,
StrokeCollection
oldStrokes)
482
private void SetStrokeChangedHandlers(
StrokeCollection
addedStrokes,
StrokeCollection
removedStrokes)
System\Windows\Controls\StickyNote.cs (2)
1569
private void StartListenToStrokesEvent(
StrokeCollection
strokes)
1579
private void StopListenToStrokesEvent(
StrokeCollection
strokes)
System\Windows\Ink\Events.cs (14)
76
internal InkCanvasStrokesReplacedEventArgs(Swi.
StrokeCollection
newStrokes, Swi.
StrokeCollection
previousStrokes)
87
public Swi.
StrokeCollection
NewStrokes
95
public Swi.
StrokeCollection
PreviousStrokes
100
private Swi.
StrokeCollection
_newStrokes;
101
private Swi.
StrokeCollection
_previousStrokes;
117
private
StrokeCollection
_strokes;
125
internal InkCanvasSelectionChangingEventArgs(
StrokeCollection
selectedStrokes, IEnumerable<UIElement> selectedElements)
187
public void SetSelectedStrokes(
StrokeCollection
selectedStrokes)
199
public
StrokeCollection
GetSelectedStrokes()
204
StrokeCollection
sc = new StrokeCollection();
291
private
StrokeCollection
_strokes;
300
public InkCanvasGestureEventArgs(
StrokeCollection
strokes, IEnumerable<GestureRecognitionResult> gestureRecognitionResults)
322
public
StrokeCollection
Strokes
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
712
case 618: t = () => typeof(
StrokeCollection
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9645
typeof(System.Windows.Ink.
StrokeCollection
),
System\Windows\Markup\KnownTypes.cs (1)
6172
case KnownElements.StrokeCollection: t = typeof(System.Windows.Ink.
StrokeCollection
); break;