1 type derived from StrokeCollection
PresentationCore (1)
System\Windows\Ink\StrokeCollection.cs (1)
842internal 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)
179StrokeCollection localRemoved = new StrokeCollection(removed); 425strokesHit = new StrokeCollection(); 435strokesUnhit = new StrokeCollection(); 627StrokeCollection sc = new StrokeCollection(); 633return new StrokeCollection(); 647StrokeCollection sc = new StrokeCollection(); 653return new StrokeCollection();
System\Windows\Ink\Stroke.cs (2)
725StrokeCollection leftovers = new StrokeCollection(); 787StrokeCollection leftovers = new StrokeCollection();
System\Windows\Ink\Stroke2.cs (3)
612StrokeCollection strokes = new StrokeCollection(); 636return new StrokeCollection(); 646return new StrokeCollection();
System\Windows\Ink\StrokeCollection.cs (7)
250StrokeCollection clone = new StrokeCollection(); 277StrokeCollection removed = new StrokeCollection(); 297StrokeCollection removed = new StrokeCollection(); 315StrokeCollection addedStrokes = new StrokeCollection(); 334StrokeCollection removed = new StrokeCollection(); 337StrokeCollection added = new StrokeCollection(); 452StrokeCollection strokesToReplace = new StrokeCollection();
System\Windows\Ink\StrokeCollection2.cs (8)
90return new StrokeCollection(); 97StrokeCollection lassoedStrokes = new StrokeCollection(); 156return new StrokeCollection(); 160StrokeCollection hits = new StrokeCollection(); 188return new StrokeCollection(); 196return new StrokeCollection(); 198StrokeCollection hits = new StrokeCollection(); 438StrokeCollection hits = new StrokeCollection();
System\Windows\Ink\StrokeCollectionConverter.cs (2)
85return new StrokeCollection(ms); 90return new StrokeCollection();
PresentationFramework (26)
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (2)
402strokes = new StrokeCollection(); 408strokes = new StrokeCollection(stream);
MS\Internal\Ink\ClipboardProcessor.cs (1)
111StrokeCollection orderedStrokes = new StrokeCollection();
MS\Internal\Ink\EraserBehavior.cs (1)
398StrokeCollection strokesToReplace = new StrokeCollection();
MS\Internal\Ink\InkCanvasSelection.cs (3)
66_selectedStrokes = new StrokeCollection(); 775new StrokeCollectionChangedEventArgs(new StrokeCollection(), new StrokeCollection()));
MS\Internal\Ink\ISFClipboardData.cs (2)
88newStrokes = new StrokeCollection(stream); 100_strokes = fSucceeded ? newStrokes : new StrokeCollection();
MS\Internal\Ink\LassoSelectionBehavior.cs (2)
237StrokeCollection selectedStrokes = new StrokeCollection(); 274selectedStrokes = new StrokeCollection();
MS\Internal\Ink\StrokeCollectionDefaultValueFactory.cs (2)
29return new StrokeCollection(); 42StrokeCollection defaultValue = new StrokeCollection();
System\Windows\Controls\InkCanvas.cs (10)
618inkCanvas.CoreChangeSelection(new StrokeCollection(), inkCanvas.InkCanvasSelection.SelectedElements, false); 1060StrokeCollection strokes = new StrokeCollection(); 1717StrokeCollection sc = new StrokeCollection(); 2098StrokeCollection newStrokes = new StrokeCollection(); 2239_dynamicallySelectedStrokes = new StrokeCollection(); 2312ChangeInkCanvasSelection(new StrokeCollection(), new UIElement[]{}); 2328CoreChangeSelection(new StrokeCollection(), new UIElement[] { }, raiseSelectionChangedEvent); 2441StrokeCollection validStrokes = new StrokeCollection(); 2497return new StrokeCollection(); 2675removeSelectedStrokes ? new StrokeCollection() : strokes,
System\Windows\Ink\Events.cs (1)
204StrokeCollection sc = new StrokeCollection();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10700DefaultConstructor = delegate () { return new System.Windows.Ink.StrokeCollection(); },
System\Windows\Markup\KnownTypes.cs (1)
1570case KnownElements.StrokeCollection: o = new System.Windows.Ink.StrokeCollection(); break;
182 references to StrokeCollection
PresentationCore (92)
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (2)
115internal GestureRecognitionResult[] Recognize(StrokeCollection strokes) 392private int AddStrokes(MS.Win32.Recognizer.ContextSafeHandle recContext, StrokeCollection strokes)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (4)
41internal StrokeCollectionSerializer(StrokeCollection coreStrokes) 1993internal static uint SaveStrokeIds(StrokeCollection strokes, Stream strm, bool forceSave) 2676StrokeCollection _coreStrokes; 2704internal static int[] GetStrokeIds(StrokeCollection strokes)
MS\Internal\Ink\Renderer.cs (4)
206internal StrokeCollection Strokes 428StrokeCollection added = eventArgs.Added; 429StrokeCollection removed = eventArgs.Removed; 698private StrokeCollection _strokes = null;
System\Windows\DataFormats.cs (2)
441int inkServicesFrameworkFormatId = UnsafeNativeMethods.RegisterClipboardFormat(System.Windows.Ink.StrokeCollection.InkSerializedFormat); 445_formatList.Add(new DataFormat(System.Windows.Ink.StrokeCollection.InkSerializedFormat,
System\Windows\dataobject.cs (1)
1559if ( format == System.Windows.Ink.StrokeCollection.InkSerializedFormat )
System\Windows\Ink\Events.cs (12)
22private StrokeCollection.ReadOnlyStrokeCollection _added; 23private StrokeCollection.ReadOnlyStrokeCollection _removed; 27internal StrokeCollectionChangedEventArgs(StrokeCollection added, StrokeCollection removed, int index) : 34public StrokeCollectionChangedEventArgs(StrokeCollection added, StrokeCollection removed) 40_added = ( added == null ) ? null : new StrokeCollection.ReadOnlyStrokeCollection(added); 41_removed = ( removed == null ) ? null : new StrokeCollection.ReadOnlyStrokeCollection(removed); 45public StrokeCollection Added 51_added = new StrokeCollection.ReadOnlyStrokeCollection(new StrokeCollection()); 58public StrokeCollection Removed 64_removed = new StrokeCollection.ReadOnlyStrokeCollection(new StrokeCollection());
System\Windows\Ink\GestureRecognizer.cs (3)
135public ReadOnlyCollection<GestureRecognitionResult> Recognize(StrokeCollection strokes) 149internal ReadOnlyCollection<GestureRecognitionResult> CriticalRecognize(StrokeCollection strokes) 160private ReadOnlyCollection<GestureRecognitionResult> RecognizeImpl(StrokeCollection strokes)
System\Windows\Ink\IncrementalHitTester.cs (18)
117internal IncrementalHitTester(StrokeCollection strokes) 164StrokeCollection added = args.Added; 165StrokeCollection removed = args.Removed; 179StrokeCollection localRemoved = new StrokeCollection(removed); 275private StrokeCollection _strokes; 307internal IncrementalLassoHitTester(StrokeCollection strokes, int percentageWithinLasso) 337StrokeCollection strokesHit = null; 338StrokeCollection strokesUnhit = null; 496internal IncrementalStrokeHitTester(StrokeCollection strokes, StylusShape eraserShape) 612internal LassoSelectionChangedEventArgs(StrokeCollection selectedStrokes, StrokeCollection deselectedStrokes) 621public StrokeCollection SelectedStrokes 627StrokeCollection sc = new StrokeCollection(); 641public StrokeCollection DeselectedStrokes 647StrokeCollection sc = new StrokeCollection(); 658private StrokeCollection _selectedStrokes; 659private StrokeCollection _deselectedStrokes; 684public StrokeCollection GetPointEraseResults()
System\Windows\Ink\Stroke.cs (4)
713private StrokeCollection Clip(StrokeFIndices[] cutAt) 725StrokeCollection leftovers = new StrokeCollection(); 775private StrokeCollection Erase(StrokeFIndices[] cutAt) 787StrokeCollection leftovers = new StrokeCollection();
System\Windows\Ink\Stroke2.cs (8)
103public StrokeCollection GetClipResult(Rect bounds) 114public StrokeCollection GetClipResult(IEnumerable<Point> lassoPoints) 135public StrokeCollection GetEraseResult(Rect bounds) 145public StrokeCollection GetEraseResult(IEnumerable<Point> lassoPoints) 166public StrokeCollection GetEraseResult(IEnumerable<Point> eraserPath, StylusShape eraserShape) 605internal StrokeCollection Erase(StrokeIntersection[] cutAt) 612StrokeCollection strokes = new StrokeCollection(); 629internal StrokeCollection Clip(StrokeIntersection[] cutAt)
System\Windows\Ink\StrokeCollection.cs (17)
248public virtual StrokeCollection Clone() 250StrokeCollection clone = new StrokeCollection(); 277StrokeCollection removed = new StrokeCollection(); 297StrokeCollection removed = new StrokeCollection(); 315StrokeCollection addedStrokes = new StrokeCollection(); 334StrokeCollection removed = new StrokeCollection(); 337StrokeCollection added = new StrokeCollection(); 369public void Remove(StrokeCollection strokes) 410public void Add(StrokeCollection strokes) 445public void Replace(Stroke strokeToReplace, StrokeCollection strokesToReplaceWith) 452StrokeCollection strokesToReplace = new StrokeCollection(); 462public void Replace(StrokeCollection strokesToReplace, StrokeCollection strokesToReplaceWith) 736private int[] GetStrokeIndexes(StrokeCollection strokes) 801private void RaiseStrokesChanged(StrokeCollection addedStrokes, StrokeCollection removedStrokes, int index) 844internal ReadOnlyStrokeCollection(StrokeCollection strokeCollection)
System\Windows\Ink\StrokeCollection2.cs (14)
52public StrokeCollection HitTest(Point point) 63public StrokeCollection HitTest(Point point, double diameter) 79public StrokeCollection HitTest(IEnumerable<Point> lassoPoints, int percentageWithinLasso) 97StrokeCollection lassoedStrokes = new StrokeCollection(); 147public StrokeCollection HitTest(Rect bounds, int percentageWithinBounds) 160StrokeCollection hits = new StrokeCollection(); 181public StrokeCollection HitTest(IEnumerable<Point> path, StylusShape stylusShape) 198StrokeCollection hits = new StrokeCollection(); 248StrokeCollection clipResult = stroke.Clip(stroke.HitTest(lasso)); 290StrokeCollection eraseResult = stroke.Erase(stroke.HitTest(lasso)); 337StrokeCollection eraseResult = stroke.Erase(intersections.ToArray()); 435private StrokeCollection PointHitTest(Point point, StylusShape shape) 438StrokeCollection hits = new StrokeCollection(); 451private void UpdateStrokeCollection(Stroke original, StrokeCollection toReplace, ref int index)
System\Windows\Ink\StrokeCollectionConverter.cs (3)
114StrokeCollection strokes = value as StrokeCollection; 130ConstructorInfo ci = typeof(StrokeCollection).GetConstructor(new Type[] { typeof(Stream) });
PresentationFramework (90)
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (2)
375StrokeCollection strokes = ((InkCanvas)InnerControl).Strokes; 397StrokeCollection strokes = null;
MS\Internal\Ink\ClipboardProcessor.cs (6)
104StrokeCollection strokes = inkCanvasSelection.SelectedStrokes; 111StrokeCollection orderedStrokes = new StrokeCollection(); 112StrokeCollection inkCanvasStrokes = InkCanvas.Strokes; //cache to avoid multiple property gets 181internal bool PasteData(IDataObject dataObject, ref StrokeCollection newStrokes, ref List<UIElement> newElements) 315private bool CopySelectionInXAML(IDataObject dataObject, StrokeCollection strokes, List<UIElement> elements, Matrix transform, Size size) 371private void TearDownInkCanvasContainer(InkCanvas rootInkCanvas, ref StrokeCollection newStrokes, ref List<UIElement> newElements)
MS\Internal\Ink\EraserBehavior.cs (2)
395StrokeCollection eraseResult = e.GetPointEraseResults(); 398StrokeCollection strokesToReplace = new StrokeCollection();
MS\Internal\Ink\InkCanvasSelection.cs (7)
60internal StrokeCollection SelectedStrokes 193internal void Select(StrokeCollection strokes, IList<UIElement> elements, bool raiseSelectionChanged) 485internal void TransformStrokes(StrokeCollection strokes, Matrix matrix) 537internal void SelectionIsDifferentThanCurrent(StrokeCollection strokes, 980private static bool StrokesAreEqual(StrokeCollection strokes1, StrokeCollection strokes2) 1099private StrokeCollection _selectedStrokes;
MS\Internal\Ink\ISFClipboardData.cs (7)
34internal ISFClipboardData(StrokeCollection strokes) 42return dataObject.GetDataPresent(StrokeCollection.InkSerializedFormat, false); 72dataObject.SetData(StrokeCollection.InkSerializedFormat, stream); 79MemoryStream stream = dataObject.GetData(StrokeCollection.InkSerializedFormat) as MemoryStream; 81StrokeCollection newStrokes = null; 114internal StrokeCollection Strokes 132StrokeCollection _strokes;
MS\Internal\Ink\LassoSelectionBehavior.cs (2)
237StrokeCollection selectedStrokes = new StrokeCollection(); 636StrokeCollection hitTestStrokes = InkCanvas.Strokes.HitTest(point, 5.0d);
MS\Internal\Ink\StrokeCollectionDefaultValueFactory.cs (4)
38Debug.Assert(property.PropertyType == typeof(StrokeCollection), 42StrokeCollection defaultValue = new StrokeCollection(); 78StrokeCollection value = (StrokeCollection)sender;
System\Windows\Controls\InkCanvas.cs (29)
599public StrokeCollection Strokes 601get { return (StrokeCollection)GetValue(StrokesProperty); } 608StrokeCollection oldValue = (StrokeCollection)e.OldValue; 609StrokeCollection 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); 2098StrokeCollection newStrokes = new StrokeCollection(); 2248internal void UpdateDynamicSelection( StrokeCollection strokesToDynamicallySelect, 2249StrokeCollection strokesToDynamicallyUnselect) 2279internal StrokeCollection EndDynamicSelection(Visual visual) 2285StrokeCollection selectedStrokes = _dynamicallySelectedStrokes; 2337internal void ChangeInkCanvasSelection(StrokeCollection strokes, UIElement[] elements) 2351StrokeCollection validStrokes = strokes; 2398StrokeCollection currentSelectedStrokes = InkCanvasSelection.SelectedStrokes; 2420private void CoreChangeSelection(StrokeCollection validStrokes, IList<UIElement> validElements, bool raiseSelectionChanged) 2439internal static StrokeCollection GetValidStrokes(StrokeCollection subset, StrokeCollection superset) 2441StrokeCollection validStrokes = new StrokeCollection(); 2490private StrokeCollection ValidateSelectedStrokes(StrokeCollection strokes) 2670StrokeCollection strokes = GetSelectedStrokes(); 3063private StrokeCollection _dynamicallySelectedStrokes;
System\Windows\Controls\InkPresenter.cs (12)
104typeof(StrokeCollection), 115public StrokeCollection Strokes 117get { return (StrokeCollection)GetValue(StrokesProperty); } 125StrokeCollection oldValue = (StrokeCollection)e.OldValue; 126StrokeCollection newValue = (StrokeCollection)e.NewValue; 152StrokeCollection strokes = Strokes; 448private void SetStrokesChangedHandlers(StrokeCollection newStrokes, StrokeCollection oldStrokes) 479private void SetStrokeChangedHandlers(StrokeCollection addedStrokes, StrokeCollection removedStrokes)
System\Windows\Controls\StickyNote.cs (2)
1538private void StartListenToStrokesEvent(StrokeCollection strokes) 1548private void StopListenToStrokesEvent(StrokeCollection strokes)
System\Windows\Ink\Events.cs (14)
76internal InkCanvasStrokesReplacedEventArgs(Swi.StrokeCollection newStrokes, Swi.StrokeCollection previousStrokes) 87public Swi.StrokeCollection NewStrokes 95public Swi.StrokeCollection PreviousStrokes 100private Swi.StrokeCollection _newStrokes; 101private Swi.StrokeCollection _previousStrokes; 117private StrokeCollection _strokes; 125internal InkCanvasSelectionChangingEventArgs(StrokeCollection selectedStrokes, IEnumerable<UIElement> selectedElements) 187public void SetSelectedStrokes(StrokeCollection selectedStrokes) 199public StrokeCollection GetSelectedStrokes() 204StrokeCollection sc = new StrokeCollection(); 291private StrokeCollection _strokes; 300public InkCanvasGestureEventArgs(StrokeCollection strokes, IEnumerable<GestureRecognitionResult> gestureRecognitionResults) 322public StrokeCollection Strokes
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
712case 618: t = () => typeof(StrokeCollection); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10697typeof(System.Windows.Ink.StrokeCollection),
System\Windows\Markup\KnownTypes.cs (1)
6166case KnownElements.StrokeCollection: t = typeof(System.Windows.Ink.StrokeCollection); break;