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