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