1 type derived from StrokeCollection
PresentationCore (1)
System\Windows\Ink\StrokeCollection.cs (1)
848internal 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); 428strokesHit = new StrokeCollection(); 438strokesUnhit = new StrokeCollection(); 630StrokeCollection sc = new StrokeCollection(); 636return new StrokeCollection(); 650StrokeCollection sc = new StrokeCollection(); 656return new StrokeCollection();
System\Windows\Ink\Stroke.cs (2)
725StrokeCollection leftovers = new StrokeCollection(); 787StrokeCollection leftovers = new StrokeCollection();
System\Windows\Ink\Stroke2.cs (3)
618StrokeCollection strokes = new StrokeCollection(); 642return new StrokeCollection(); 652return new StrokeCollection();
System\Windows\Ink\StrokeCollection.cs (7)
252StrokeCollection clone = new StrokeCollection(); 283StrokeCollection removed = new StrokeCollection(); 303StrokeCollection removed = new StrokeCollection(); 321StrokeCollection addedStrokes = new StrokeCollection(); 340StrokeCollection removed = new StrokeCollection(); 343StrokeCollection added = new StrokeCollection(); 458StrokeCollection strokesToReplace = new StrokeCollection();
System\Windows\Ink\StrokeCollection2.cs (8)
94return new StrokeCollection(); 101StrokeCollection lassoedStrokes = new StrokeCollection(); 163return new StrokeCollection(); 167StrokeCollection hits = new StrokeCollection(); 199return new StrokeCollection(); 207return new StrokeCollection(); 209StrokeCollection hits = new StrokeCollection(); 453StrokeCollection hits = new StrokeCollection();
System\Windows\Ink\StrokeCollectionConverter.cs (2)
89return new StrokeCollection(ms); 94return 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)
399StrokeCollection 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)
93newStrokes = new StrokeCollection(stream); 105_strokes = fSucceeded ? newStrokes : new StrokeCollection();
MS\Internal\Ink\LassoSelectionBehavior.cs (2)
236StrokeCollection selectedStrokes = new StrokeCollection(); 273selectedStrokes = new StrokeCollection();
MS\Internal\Ink\StrokeCollectionDefaultValueFactory.cs (2)
29return new StrokeCollection(); 42StrokeCollection defaultValue = new StrokeCollection();
System\Windows\Controls\InkCanvas.cs (10)
608inkCanvas.CoreChangeSelection(new StrokeCollection(), inkCanvas.InkCanvasSelection.SelectedElements, false); 1048StrokeCollection strokes = new StrokeCollection(); 1705StrokeCollection sc = new StrokeCollection(); 2084StrokeCollection newStrokes = new StrokeCollection(); 2223_dynamicallySelectedStrokes = new StrokeCollection(); 2296ChangeInkCanvasSelection(new StrokeCollection(), new UIElement[]{}); 2312CoreChangeSelection(new StrokeCollection(), new UIElement[] { }, raiseSelectionChangedEvent); 2425StrokeCollection validStrokes = new StrokeCollection(); 2481return new StrokeCollection(); 2659removeSelectedStrokes ? new StrokeCollection() : strokes,
System\Windows\Ink\Events.cs (1)
204StrokeCollection sc = new StrokeCollection();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9647bamlType.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)
117internal GestureRecognitionResult[] Recognize(StrokeCollection strokes) 394private int AddStrokes(MS.Win32.Recognizer.ContextSafeHandle recContext, StrokeCollection strokes)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (4)
41internal StrokeCollectionSerializer(StrokeCollection coreStrokes) 1995internal static uint SaveStrokeIds(StrokeCollection strokes, Stream strm, bool forceSave) 2693StrokeCollection _coreStrokes; 2721internal static int[] GetStrokeIds(StrokeCollection strokes)
MS\Internal\Ink\Renderer.cs (4)
206internal StrokeCollection Strokes 428StrokeCollection added = eventArgs.Added; 429StrokeCollection removed = eventArgs.Removed; 696private 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)
1563if ( 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); 278private StrokeCollection _strokes; 310internal IncrementalLassoHitTester(StrokeCollection strokes, int percentageWithinLasso) 340StrokeCollection strokesHit = null; 341StrokeCollection strokesUnhit = null; 499internal IncrementalStrokeHitTester(StrokeCollection strokes, StylusShape eraserShape) 615internal LassoSelectionChangedEventArgs(StrokeCollection selectedStrokes, StrokeCollection deselectedStrokes) 624public StrokeCollection SelectedStrokes 630StrokeCollection sc = new StrokeCollection(); 644public StrokeCollection DeselectedStrokes 650StrokeCollection sc = new StrokeCollection(); 661private StrokeCollection _selectedStrokes; 662private StrokeCollection _deselectedStrokes; 687public 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) 611internal StrokeCollection Erase(StrokeIntersection[] cutAt) 618StrokeCollection strokes = new StrokeCollection(); 635internal StrokeCollection Clip(StrokeIntersection[] cutAt)
System\Windows\Ink\StrokeCollection.cs (17)
250public virtual StrokeCollection Clone() 252StrokeCollection clone = new StrokeCollection(); 283StrokeCollection removed = new StrokeCollection(); 303StrokeCollection removed = new StrokeCollection(); 321StrokeCollection addedStrokes = new StrokeCollection(); 340StrokeCollection removed = new StrokeCollection(); 343StrokeCollection added = new StrokeCollection(); 375public void Remove(StrokeCollection strokes) 416public void Add(StrokeCollection strokes) 451public void Replace(Stroke strokeToReplace, StrokeCollection strokesToReplaceWith) 458StrokeCollection strokesToReplace = new StrokeCollection(); 468public void Replace(StrokeCollection strokesToReplace, StrokeCollection strokesToReplaceWith) 742private int[] GetStrokeIndexes(StrokeCollection strokes) 807private void RaiseStrokesChanged(StrokeCollection addedStrokes, StrokeCollection removedStrokes, int index) 850internal ReadOnlyStrokeCollection(StrokeCollection strokeCollection)
System\Windows\Ink\StrokeCollection2.cs (14)
56public StrokeCollection HitTest(Point point) 67public StrokeCollection HitTest(Point point, double diameter) 83public StrokeCollection HitTest(IEnumerable<Point> lassoPoints, int percentageWithinLasso) 101StrokeCollection lassoedStrokes = new StrokeCollection(); 154public StrokeCollection HitTest(Rect bounds, int percentageWithinBounds) 167StrokeCollection hits = new StrokeCollection(); 192public StrokeCollection HitTest(IEnumerable<Point> path, StylusShape stylusShape) 209StrokeCollection hits = new StrokeCollection(); 263StrokeCollection clipResult = stroke.Clip(stroke.HitTest(lasso)); 305StrokeCollection eraseResult = stroke.Erase(stroke.HitTest(lasso)); 352StrokeCollection eraseResult = stroke.Erase(intersections.ToArray()); 450private StrokeCollection PointHitTest(Point point, StylusShape shape) 453StrokeCollection hits = new StrokeCollection(); 466private void UpdateStrokeCollection(Stroke original, StrokeCollection toReplace, ref int index)
System\Windows\Ink\StrokeCollectionConverter.cs (3)
120StrokeCollection strokes = value as StrokeCollection; 136ConstructorInfo 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)
396StrokeCollection eraseResult = e.GetPointEraseResults(); 399StrokeCollection 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); 75dataObject.SetData(StrokeCollection.InkSerializedFormat, stream); 84MemoryStream stream = dataObject.GetData(StrokeCollection.InkSerializedFormat) as MemoryStream; 86StrokeCollection newStrokes = null; 119internal StrokeCollection Strokes 137StrokeCollection _strokes;
MS\Internal\Ink\LassoSelectionBehavior.cs (2)
236StrokeCollection selectedStrokes = new StrokeCollection(); 637StrokeCollection 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)
589public StrokeCollection Strokes 591get { return (StrokeCollection)GetValue(StrokesProperty); } 598StrokeCollection oldValue = (StrokeCollection)e.OldValue; 599StrokeCollection newValue = (StrokeCollection)e.NewValue; 1048StrokeCollection strokes = new StrokeCollection(); 1701public StrokeCollection GetSelectedStrokes() 1705StrokeCollection sc = new StrokeCollection(); 1714public void Select(StrokeCollection selectedStrokes) 1735public void Select(StrokeCollection selectedStrokes, IEnumerable<UIElement> selectedElements) 1747StrokeCollection validStrokes = ValidateSelectedStrokes(selectedStrokes); 2084StrokeCollection newStrokes = new StrokeCollection(); 2232internal void UpdateDynamicSelection( StrokeCollection strokesToDynamicallySelect, 2233StrokeCollection strokesToDynamicallyUnselect) 2263internal StrokeCollection EndDynamicSelection(Visual visual) 2269StrokeCollection selectedStrokes = _dynamicallySelectedStrokes; 2321internal void ChangeInkCanvasSelection(StrokeCollection strokes, UIElement[] elements) 2335StrokeCollection validStrokes = strokes; 2382StrokeCollection currentSelectedStrokes = InkCanvasSelection.SelectedStrokes; 2404private void CoreChangeSelection(StrokeCollection validStrokes, IList<UIElement> validElements, bool raiseSelectionChanged) 2423internal static StrokeCollection GetValidStrokes(StrokeCollection subset, StrokeCollection superset) 2425StrokeCollection validStrokes = new StrokeCollection(); 2474private StrokeCollection ValidateSelectedStrokes(StrokeCollection strokes) 2654StrokeCollection strokes = GetSelectedStrokes(); 3047private 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; 451private void SetStrokesChangedHandlers(StrokeCollection newStrokes, StrokeCollection oldStrokes) 482private void SetStrokeChangedHandlers(StrokeCollection addedStrokes, StrokeCollection removedStrokes)
System\Windows\Controls\StickyNote.cs (2)
1569private void StartListenToStrokesEvent(StrokeCollection strokes) 1579private 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)
9645typeof(System.Windows.Ink.StrokeCollection),
System\Windows\Markup\KnownTypes.cs (1)
6172case KnownElements.StrokeCollection: t = typeof(System.Windows.Ink.StrokeCollection); break;