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