1 type derived from StrokeCollection
PresentationCore (1)
System\Windows\Ink\StrokeCollection.cs (1)
860
internal class ReadOnlyStrokeCollection :
StrokeCollection
, ICollection<Stroke>, IList
58 instantiations of StrokeCollection
PresentationCore (32)
MS\Internal\Ink\Renderer.cs (1)
221
_strokes = new
StrokeCollection
();
System\Windows\Ink\Events.cs (2)
57
_added = new StrokeCollection.ReadOnlyStrokeCollection(new
StrokeCollection
());
70
_removed = new StrokeCollection.ReadOnlyStrokeCollection(new
StrokeCollection
());
System\Windows\Ink\IncrementalHitTester.cs (7)
188
StrokeCollection localRemoved = new
StrokeCollection
(removed);
437
strokesHit = new
StrokeCollection
();
447
strokesUnhit = new
StrokeCollection
();
639
StrokeCollection sc = new
StrokeCollection
();
645
return new
StrokeCollection
();
659
StrokeCollection sc = new
StrokeCollection
();
665
return new
StrokeCollection
();
System\Windows\Ink\Stroke.cs (2)
740
StrokeCollection leftovers = new
StrokeCollection
();
802
StrokeCollection leftovers = new
StrokeCollection
();
System\Windows\Ink\Stroke2.cs (3)
627
StrokeCollection strokes = new
StrokeCollection
();
651
return new
StrokeCollection
();
661
return new
StrokeCollection
();
System\Windows\Ink\StrokeCollection.cs (7)
264
StrokeCollection clone = new
StrokeCollection
();
295
StrokeCollection removed = new
StrokeCollection
();
315
StrokeCollection removed = new
StrokeCollection
();
333
StrokeCollection addedStrokes = new
StrokeCollection
();
352
StrokeCollection removed = new
StrokeCollection
();
355
StrokeCollection added = new
StrokeCollection
();
470
StrokeCollection strokesToReplace = new
StrokeCollection
();
System\Windows\Ink\StrokeCollection2.cs (8)
101
return new
StrokeCollection
();
108
StrokeCollection lassoedStrokes = new
StrokeCollection
();
170
return new
StrokeCollection
();
174
StrokeCollection hits = new
StrokeCollection
();
206
return new
StrokeCollection
();
214
return new
StrokeCollection
();
216
StrokeCollection hits = new
StrokeCollection
();
460
StrokeCollection hits = new
StrokeCollection
();
System\Windows\Ink\StrokeCollectionConverter.cs (2)
100
return new
StrokeCollection
(ms);
105
return new
StrokeCollection
();
PresentationFramework (26)
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (2)
407
strokes = new
StrokeCollection
();
413
strokes = new
StrokeCollection
(stream);
MS\Internal\Ink\ClipboardProcessor.cs (1)
117
StrokeCollection orderedStrokes = new
StrokeCollection
();
MS\Internal\Ink\EraserBehavior.cs (1)
411
StrokeCollection strokesToReplace = new
StrokeCollection
();
MS\Internal\Ink\InkCanvasSelection.cs (3)
78
_selectedStrokes = new
StrokeCollection
();
787
new StrokeCollectionChangedEventArgs(new
StrokeCollection
(), new
StrokeCollection
()));
MS\Internal\Ink\ISFClipboardData.cs (2)
96
newStrokes = new
StrokeCollection
(stream);
108
_strokes = fSucceeded ? newStrokes : new
StrokeCollection
();
MS\Internal\Ink\LassoSelectionBehavior.cs (2)
245
StrokeCollection selectedStrokes = new
StrokeCollection
();
282
selectedStrokes = new
StrokeCollection
();
MS\Internal\Ink\StrokeCollectionDefaultValueFactory.cs (2)
32
return new
StrokeCollection
();
45
StrokeCollection defaultValue = new
StrokeCollection
();
System\Windows\Controls\InkCanvas.cs (10)
620
inkCanvas.CoreChangeSelection(new
StrokeCollection
(), inkCanvas.InkCanvasSelection.SelectedElements, false);
1060
StrokeCollection strokes = new
StrokeCollection
();
1717
StrokeCollection sc = new
StrokeCollection
();
2096
StrokeCollection newStrokes = new
StrokeCollection
();
2235
_dynamicallySelectedStrokes = new
StrokeCollection
();
2308
ChangeInkCanvasSelection(new
StrokeCollection
(), new UIElement[]{});
2324
CoreChangeSelection(new
StrokeCollection
(), new UIElement[] { }, raiseSelectionChangedEvent);
2437
StrokeCollection validStrokes = new
StrokeCollection
();
2493
return new
StrokeCollection
();
2671
removeSelectedStrokes ? new
StrokeCollection
() : strokes,
System\Windows\Ink\Events.cs (1)
211
StrokeCollection sc = new
StrokeCollection
();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9649
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)
136
internal GestureRecognitionResult[] Recognize(
StrokeCollection
strokes)
413
private int AddStrokes(MS.Win32.Recognizer.ContextSafeHandle recContext,
StrokeCollection
strokes)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (4)
54
internal StrokeCollectionSerializer(
StrokeCollection
coreStrokes)
2008
internal static uint SaveStrokeIds(
StrokeCollection
strokes, Stream strm, bool forceSave)
2706
StrokeCollection
_coreStrokes;
2734
internal static int[] GetStrokeIds(
StrokeCollection
strokes)
MS\Internal\Ink\Renderer.cs (4)
214
internal
StrokeCollection
Strokes
436
StrokeCollection
added = eventArgs.Added;
437
StrokeCollection
removed = eventArgs.Removed;
704
private
StrokeCollection
_strokes = null;
System\Windows\DataFormats.cs (2)
445
int inkServicesFrameworkFormatId = UnsafeNativeMethods.RegisterClipboardFormat(System.Windows.Ink.
StrokeCollection
.InkSerializedFormat);
449
_formatList.Add(new DataFormat(System.Windows.Ink.
StrokeCollection
.InkSerializedFormat,
System\Windows\dataobject.cs (1)
1578
if ( format == System.Windows.Ink.
StrokeCollection
.InkSerializedFormat )
System\Windows\Ink\Events.cs (12)
28
private
StrokeCollection
.ReadOnlyStrokeCollection _added;
29
private
StrokeCollection
.ReadOnlyStrokeCollection _removed;
33
internal StrokeCollectionChangedEventArgs(
StrokeCollection
added,
StrokeCollection
removed, int index) :
40
public StrokeCollectionChangedEventArgs(
StrokeCollection
added,
StrokeCollection
removed)
46
_added = ( added == null ) ? null : new
StrokeCollection
.ReadOnlyStrokeCollection(added);
47
_removed = ( removed == null ) ? null : new
StrokeCollection
.ReadOnlyStrokeCollection(removed);
51
public
StrokeCollection
Added
57
_added = new
StrokeCollection
.ReadOnlyStrokeCollection(new StrokeCollection());
64
public
StrokeCollection
Removed
70
_removed = new
StrokeCollection
.ReadOnlyStrokeCollection(new StrokeCollection());
System\Windows\Ink\GestureRecognizer.cs (3)
148
public ReadOnlyCollection<GestureRecognitionResult> Recognize(
StrokeCollection
strokes)
162
internal ReadOnlyCollection<GestureRecognitionResult> CriticalRecognize(
StrokeCollection
strokes)
173
private ReadOnlyCollection<GestureRecognitionResult> RecognizeImpl(
StrokeCollection
strokes)
System\Windows\Ink\IncrementalHitTester.cs (18)
126
internal IncrementalHitTester(
StrokeCollection
strokes)
173
StrokeCollection
added = args.Added;
174
StrokeCollection
removed = args.Removed;
188
StrokeCollection
localRemoved = new StrokeCollection(removed);
287
private
StrokeCollection
_strokes;
319
internal IncrementalLassoHitTester(
StrokeCollection
strokes, int percentageWithinLasso)
349
StrokeCollection
strokesHit = null;
350
StrokeCollection
strokesUnhit = null;
508
internal IncrementalStrokeHitTester(
StrokeCollection
strokes, StylusShape eraserShape)
624
internal LassoSelectionChangedEventArgs(
StrokeCollection
selectedStrokes,
StrokeCollection
deselectedStrokes)
633
public
StrokeCollection
SelectedStrokes
639
StrokeCollection
sc = new StrokeCollection();
653
public
StrokeCollection
DeselectedStrokes
659
StrokeCollection
sc = new StrokeCollection();
670
private
StrokeCollection
_selectedStrokes;
671
private
StrokeCollection
_deselectedStrokes;
696
public
StrokeCollection
GetPointEraseResults()
System\Windows\Ink\Stroke.cs (4)
728
private
StrokeCollection
Clip(StrokeFIndices[] cutAt)
740
StrokeCollection
leftovers = new StrokeCollection();
790
private
StrokeCollection
Erase(StrokeFIndices[] cutAt)
802
StrokeCollection
leftovers = new StrokeCollection();
System\Windows\Ink\Stroke2.cs (8)
112
public
StrokeCollection
GetClipResult(Rect bounds)
123
public
StrokeCollection
GetClipResult(IEnumerable<Point> lassoPoints)
144
public
StrokeCollection
GetEraseResult(Rect bounds)
154
public
StrokeCollection
GetEraseResult(IEnumerable<Point> lassoPoints)
175
public
StrokeCollection
GetEraseResult(IEnumerable<Point> eraserPath, StylusShape eraserShape)
620
internal
StrokeCollection
Erase(StrokeIntersection[] cutAt)
627
StrokeCollection
strokes = new StrokeCollection();
644
internal
StrokeCollection
Clip(StrokeIntersection[] cutAt)
System\Windows\Ink\StrokeCollection.cs (17)
262
public virtual
StrokeCollection
Clone()
264
StrokeCollection
clone = new StrokeCollection();
295
StrokeCollection
removed = new StrokeCollection();
315
StrokeCollection
removed = new StrokeCollection();
333
StrokeCollection
addedStrokes = new StrokeCollection();
352
StrokeCollection
removed = new StrokeCollection();
355
StrokeCollection
added = new StrokeCollection();
387
public void Remove(
StrokeCollection
strokes)
428
public void Add(
StrokeCollection
strokes)
463
public void Replace(Stroke strokeToReplace,
StrokeCollection
strokesToReplaceWith)
470
StrokeCollection
strokesToReplace = new StrokeCollection();
480
public void Replace(
StrokeCollection
strokesToReplace,
StrokeCollection
strokesToReplaceWith)
754
private int[] GetStrokeIndexes(
StrokeCollection
strokes)
819
private void RaiseStrokesChanged(
StrokeCollection
addedStrokes,
StrokeCollection
removedStrokes, int index)
862
internal ReadOnlyStrokeCollection(
StrokeCollection
strokeCollection)
System\Windows\Ink\StrokeCollection2.cs (14)
63
public
StrokeCollection
HitTest(Point point)
74
public
StrokeCollection
HitTest(Point point, double diameter)
90
public
StrokeCollection
HitTest(IEnumerable<Point> lassoPoints, int percentageWithinLasso)
108
StrokeCollection
lassoedStrokes = new StrokeCollection();
161
public
StrokeCollection
HitTest(Rect bounds, int percentageWithinBounds)
174
StrokeCollection
hits = new StrokeCollection();
199
public
StrokeCollection
HitTest(IEnumerable<Point> path, StylusShape stylusShape)
216
StrokeCollection
hits = new StrokeCollection();
270
StrokeCollection
clipResult = stroke.Clip(stroke.HitTest(lasso));
312
StrokeCollection
eraseResult = stroke.Erase(stroke.HitTest(lasso));
359
StrokeCollection
eraseResult = stroke.Erase(intersections.ToArray());
457
private
StrokeCollection
PointHitTest(Point point, StylusShape shape)
460
StrokeCollection
hits = new StrokeCollection();
473
private void UpdateStrokeCollection(Stroke original,
StrokeCollection
toReplace, ref int index)
System\Windows\Ink\StrokeCollectionConverter.cs (3)
131
StrokeCollection
strokes = value as
StrokeCollection
;
147
ConstructorInfo ci = typeof(
StrokeCollection
).GetConstructor(new Type[] { typeof(Stream) });
PresentationFramework (90)
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (2)
380
StrokeCollection
strokes = ((InkCanvas)InnerControl).Strokes;
402
StrokeCollection
strokes = null;
MS\Internal\Ink\ClipboardProcessor.cs (6)
110
StrokeCollection
strokes = inkCanvasSelection.SelectedStrokes;
117
StrokeCollection
orderedStrokes = new StrokeCollection();
118
StrokeCollection
inkCanvasStrokes = InkCanvas.Strokes; //cache to avoid multiple property gets
187
internal bool PasteData(IDataObject dataObject, ref
StrokeCollection
newStrokes, ref List<UIElement> newElements)
321
private bool CopySelectionInXAML(IDataObject dataObject,
StrokeCollection
strokes, List<UIElement> elements, Matrix transform, Size size)
377
private void TearDownInkCanvasContainer(InkCanvas rootInkCanvas, ref
StrokeCollection
newStrokes, ref List<UIElement> newElements)
MS\Internal\Ink\EraserBehavior.cs (2)
408
StrokeCollection
eraseResult = e.GetPointEraseResults();
411
StrokeCollection
strokesToReplace = new StrokeCollection();
MS\Internal\Ink\InkCanvasSelection.cs (7)
72
internal
StrokeCollection
SelectedStrokes
205
internal void Select(
StrokeCollection
strokes, IList<UIElement> elements, bool raiseSelectionChanged)
497
internal void TransformStrokes(
StrokeCollection
strokes, Matrix matrix)
549
internal void SelectionIsDifferentThanCurrent(
StrokeCollection
strokes,
992
private static bool StrokesAreEqual(
StrokeCollection
strokes1,
StrokeCollection
strokes2)
1111
private
StrokeCollection
_selectedStrokes;
MS\Internal\Ink\ISFClipboardData.cs (7)
37
internal ISFClipboardData(
StrokeCollection
strokes)
45
return dataObject.GetDataPresent(
StrokeCollection
.InkSerializedFormat, false);
78
dataObject.SetData(
StrokeCollection
.InkSerializedFormat, stream);
87
MemoryStream stream = dataObject.GetData(
StrokeCollection
.InkSerializedFormat) as MemoryStream;
89
StrokeCollection
newStrokes = null;
122
internal
StrokeCollection
Strokes
140
StrokeCollection
_strokes;
MS\Internal\Ink\LassoSelectionBehavior.cs (2)
245
StrokeCollection
selectedStrokes = new StrokeCollection();
646
StrokeCollection
hitTestStrokes = InkCanvas.Strokes.HitTest(point, 5.0d);
MS\Internal\Ink\StrokeCollectionDefaultValueFactory.cs (4)
41
Debug.Assert(property.PropertyType == typeof(
StrokeCollection
),
45
StrokeCollection
defaultValue = new StrokeCollection();
81
StrokeCollection
value = (
StrokeCollection
)sender;
System\Windows\Controls\InkCanvas.cs (29)
601
public
StrokeCollection
Strokes
603
get { return (
StrokeCollection
)GetValue(StrokesProperty); }
610
StrokeCollection
oldValue = (
StrokeCollection
)e.OldValue;
611
StrokeCollection
newValue = (
StrokeCollection
)e.NewValue;
1060
StrokeCollection
strokes = new StrokeCollection();
1713
public
StrokeCollection
GetSelectedStrokes()
1717
StrokeCollection
sc = new StrokeCollection();
1726
public void Select(
StrokeCollection
selectedStrokes)
1747
public void Select(
StrokeCollection
selectedStrokes, IEnumerable<UIElement> selectedElements)
1759
StrokeCollection
validStrokes = ValidateSelectedStrokes(selectedStrokes);
2096
StrokeCollection
newStrokes = new StrokeCollection();
2244
internal void UpdateDynamicSelection(
StrokeCollection
strokesToDynamicallySelect,
2245
StrokeCollection
strokesToDynamicallyUnselect)
2275
internal
StrokeCollection
EndDynamicSelection(Visual visual)
2281
StrokeCollection
selectedStrokes = _dynamicallySelectedStrokes;
2333
internal void ChangeInkCanvasSelection(
StrokeCollection
strokes, UIElement[] elements)
2347
StrokeCollection
validStrokes = strokes;
2394
StrokeCollection
currentSelectedStrokes = InkCanvasSelection.SelectedStrokes;
2416
private void CoreChangeSelection(
StrokeCollection
validStrokes, IList<UIElement> validElements, bool raiseSelectionChanged)
2435
internal static
StrokeCollection
GetValidStrokes(
StrokeCollection
subset,
StrokeCollection
superset)
2437
StrokeCollection
validStrokes = new StrokeCollection();
2486
private
StrokeCollection
ValidateSelectedStrokes(
StrokeCollection
strokes)
2666
StrokeCollection
strokes = GetSelectedStrokes();
3059
private
StrokeCollection
_dynamicallySelectedStrokes;
System\Windows\Controls\InkPresenter.cs (12)
111
typeof(
StrokeCollection
),
122
public
StrokeCollection
Strokes
124
get { return (
StrokeCollection
)GetValue(StrokesProperty); }
132
StrokeCollection
oldValue = (
StrokeCollection
)e.OldValue;
133
StrokeCollection
newValue = (
StrokeCollection
)e.NewValue;
159
StrokeCollection
strokes = Strokes;
458
private void SetStrokesChangedHandlers(
StrokeCollection
newStrokes,
StrokeCollection
oldStrokes)
489
private void SetStrokeChangedHandlers(
StrokeCollection
addedStrokes,
StrokeCollection
removedStrokes)
System\Windows\Controls\StickyNote.cs (2)
1585
private void StartListenToStrokesEvent(
StrokeCollection
strokes)
1595
private void StopListenToStrokesEvent(
StrokeCollection
strokes)
System\Windows\Ink\Events.cs (14)
83
internal InkCanvasStrokesReplacedEventArgs(Swi.
StrokeCollection
newStrokes, Swi.
StrokeCollection
previousStrokes)
94
public Swi.
StrokeCollection
NewStrokes
102
public Swi.
StrokeCollection
PreviousStrokes
107
private Swi.
StrokeCollection
_newStrokes;
108
private Swi.
StrokeCollection
_previousStrokes;
124
private
StrokeCollection
_strokes;
132
internal InkCanvasSelectionChangingEventArgs(
StrokeCollection
selectedStrokes, IEnumerable<UIElement> selectedElements)
194
public void SetSelectedStrokes(
StrokeCollection
selectedStrokes)
206
public
StrokeCollection
GetSelectedStrokes()
211
StrokeCollection
sc = new StrokeCollection();
298
private
StrokeCollection
_strokes;
307
public InkCanvasGestureEventArgs(
StrokeCollection
strokes, IEnumerable<GestureRecognitionResult> gestureRecognitionResults)
329
public
StrokeCollection
Strokes
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
714
case 618: t = () => typeof(
StrokeCollection
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9647
typeof(System.Windows.Ink.
StrokeCollection
),
System\Windows\Markup\KnownTypes.cs (1)
6172
case KnownElements.StrokeCollection: t = typeof(System.Windows.Ink.
StrokeCollection
); break;