3 instantiations of Stroke
PresentationCore (1)
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (1)
81stroke = new Stroke(stylusPoints, drawingAttributes, extendedProperties);
PresentationFramework (2)
MS\Internal\Ink\InkCollectionBehavior.cs (1)
293new Stroke(_stylusPoints, _strokeDrawingAttributes);
MS\Internal\Ink\PenCursorManager.cs (1)
336Stroke singleStroke = new Stroke(stylusPoints, da);
121 references to Stroke
PresentationCore (98)
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (2)
397foreach ( Stroke stroke in strokes ) 435Stroke stroke,
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (7)
643Stroke localStroke; 1675new System.Collections.Generic.Dictionary<Stroke, StrokeLookupEntry>(_coreStrokes.Count); 1696foreach (Stroke s in _coreStrokes) 1878Stroke s = _coreStrokes[i]; 2143private void BuildStrokeGuidList(Stroke stroke, GuidList guidList) 2534Stroke stroke = _coreStrokes[count]; 2687private System.Collections.Generic.Dictionary<Stroke, StrokeLookupEntry> _strokeLookupTable = null;
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (4)
56out Stroke stroke) 653Stroke stroke, 680Stroke stroke, 797Stroke stroke,
MS\Internal\Ink\Renderer.cs (15)
35internal StrokeVisual(Stroke stroke, Renderer renderer) : base() 57internal Stroke Stroke 126private Stroke _stroke; 186_visuals = new Dictionary<Stroke, StrokeVisual>(); 247foreach (Stroke stroke in _strokes) 431foreach (Stroke stroke in added) 451foreach (Stroke stroke in removed) 474System.Diagnostics.Debug.Assert(_strokes.IndexOf(sender as Stroke) != -1); 478Stroke stroke = (Stroke)sender; 557Stroke visualStroke = visual.Stroke; 574Stroke stroke = _strokes[i]; 623private void StartListeningOnStrokeEvents(Stroke stroke) 632private void StopListeningOnStrokeEvents(Stroke stroke) 691private Dictionary<Stroke, StrokeVisual> _visuals;
MS\Internal\Ink\StrokeNodeEnumerator.cs (1)
26internal static StrokeNodeIterator GetIterator(Stroke stroke, DrawingAttributes drawingAttributes)
MS\Internal\Ink\StrokeRenderer.cs (1)
1094internal static DrawingAttributes GetHighlighterAttributes(Stroke stroke, DrawingAttributes da)
System\Windows\Ink\IncrementalHitTester.cs (9)
124Stroke stroke = strokes[x]; 227foreach (Stroke stroke in _strokes) 413bool isHit = DoubleUtil.GreaterThanOrClose(strokeInfo.HitWeight, strokeInfo.TotalWeight * _percentIntersect / 100f - Stroke.PercentageTolerance); 669internal StrokeHitEventArgs(Stroke stroke, StrokeIntersection[] hitFragments) 677public Stroke HitStroke { get { return _stroke; } } 688private Stroke _stroke; 710internal StrokeInfo(Stroke stroke) 724internal Stroke Stroke { get { return _stroke; } } 920private Stroke _stroke;
System\Windows\Ink\Stroke.cs (8)
74public virtual Stroke Clone() 82Stroke clone = (Stroke)this.MemberwiseClone(); 760Stroke stroke = Copy(sourceStylusPoints, fragment.BeginFIndex, fragment.EndFIndex); 825Stroke stroke = Copy(sourceStylusPoints, beginFIndex, fragment.BeginFIndex); 834Stroke stroke = Copy(sourceStylusPoints, beginFIndex, StrokeFIndices.AfterLast); 847private Stroke Copy(StylusPointCollection sourceStylusPoints, double beginFIndex, double endFIndex) 943Stroke stroke = null;
System\Windows\Ink\StrokeCollection.cs (30)
20public partial class StrokeCollection : Collection<Stroke>, INotifyPropertyChanged, INotifyCollectionChanged 34public StrokeCollection(IEnumerable<Stroke> strokes) 38List<Stroke> items = (List<Stroke>)this.Items; 41foreach ( Stroke stroke in strokes ) 235foreach ( Stroke stroke in this ) 250foreach ( Stroke s in this ) 279( (List<Stroke>)removed.Items ).Add(this[x]); 293Stroke removedStroke = this[index]; 297( (List<Stroke>)removed.Items ).Add(removedStroke); 304protected sealed override void InsertItem(int index, Stroke stroke) 315( (List<Stroke>)addedStrokes.Items ).Add(stroke); 322protected sealed override void SetItem(int index, Stroke stroke) 330Stroke removedStroke = this[index]; 334( (List<Stroke>)removed.Items ).Add(removedStroke); 337( (List<Stroke>)added.Items ).Add(stroke); 346public new int IndexOf(Stroke stroke) 397( (List<Stroke>)this.Items ).RemoveAt(indexes[x]); 424Stroke stroke = strokes[x]; 434( (List<Stroke>)this.Items ).AddRange(strokes); 444public void Replace(Stroke strokeToReplace, StrokeCollection strokesToReplaceWith) 501Stroke stroke = strokesToReplaceWith[x]; 515( (List<Stroke>)this.Items ).RemoveAt(indexes[x]); 521( (List<Stroke>)this.Items ).InsertRange(indexes[0], strokesToReplaceWith); 531internal void AddWithoutEvent(Stroke stroke) 534( (List<Stroke>)this.Items ).Add(stroke); 706private int OptimisticIndexOf(int startingIndex, Stroke stroke) 841internal class ReadOnlyStrokeCollection : StrokeCollection, ICollection<Stroke>, IList 847( (List<Stroke>)this.Items ).AddRange(strokeCollection); 872bool ICollection<Stroke>.IsReadOnly
System\Windows\Ink\StrokeCollection2.cs (21)
17public partial class StrokeCollection : Collection<Stroke>, INotifyPropertyChanged, INotifyCollectionChanged 28foreach (Stroke stroke in this) 97foreach (Stroke stroke in this) 111double target = strokeInfo.TotalWeight * percentageWithinLasso / 100.0f - Stroke.PercentageTolerance; 160foreach (Stroke stroke in this) 198foreach (Stroke stroke in this) 246Stroke stroke = this[i]; 287Stroke stroke = this[i]; 332Stroke stroke = this[i]; 352List<Stroke> solidStrokes = new List<Stroke>(); 353Dictionary<Color, List<Stroke>> highLighters = new Dictionary<Color, List<Stroke>>(); 357Stroke stroke = this[i]; 358List<Stroke> strokes; 366strokes = new List<Stroke>(); 377foreach (List<Stroke> strokes in highLighters.Values) 382foreach (Stroke stroke in strokes) 394foreach(Stroke stroke in solidStrokes) 440Stroke stroke = this[i]; 450private void UpdateStrokeCollection(Stroke original, StrokeCollection toReplace, ref int index)
PresentationFramework (23)
MS\Internal\Ink\InkCanvasSelection.cs (4)
617foreach ( Stroke s in SelectedStrokes ) 633foreach ( Stroke s in SelectedStrokes ) 790foreach (Stroke s in e.Removed) 998foreach ( Stroke s in strokes1 )
MS\Internal\Ink\InkCollectionBehavior.cs (1)
292Stroke stroke =
MS\Internal\Ink\LassoSelectionBehavior.cs (2)
264Stroke tappedStroke; 630private void TapSelectObject(Point point, out Stroke tappedStroke, out UIElement tappedElement)
MS\Internal\Ink\PenCursorManager.cs (1)
336Stroke singleStroke = new Stroke(stylusPoints, da);
System\Windows\Controls\InkCanvas.cs (3)
2257foreach (Stroke s in strokesToDynamicallySelect) 2266foreach (Stroke s in strokesToDynamicallyUnselect) 2452Stroke stroke = subset[i];
System\Windows\Controls\InkPresenter.cs (2)
520private void StartListeningOnStrokeEvents(Stroke stroke) 529private void StopListeningOnStrokeEvents(Stroke stroke)
System\Windows\Controls\StickyNote.cs (4)
1557private void StartListenToStrokeEvent(IEnumerable<Stroke> strokes) 1559foreach (Stroke s in strokes) 1578private void StopListenToStrokeEvent(IEnumerable<Stroke> strokes) 1580foreach (Stroke s in strokes)
System\Windows\Ink\Events.cs (6)
29public InkCanvasStrokeCollectedEventArgs(Swi.Stroke stroke) : base(InkCanvas.StrokeCollectedEvent) 38public Swi.Stroke Stroke 59private Swi.Stroke _stroke; 259private Swi.Stroke _stroke; 263internal InkCanvasStrokeErasingEventArgs(Swi.Stroke stroke) 272public Stroke Stroke