3 instantiations of Stroke
PresentationCore (1)
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (1)
82stroke = new Stroke(stylusPoints, drawingAttributes, extendedProperties);
PresentationFramework (2)
MS\Internal\Ink\InkCollectionBehavior.cs (1)
295new 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)
400foreach ( Stroke stroke in strokes ) 438Stroke stroke,
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (7)
644Stroke localStroke; 1678new System.Collections.Generic.Dictionary<Stroke, StrokeLookupEntry>(_coreStrokes.Count); 1699foreach (Stroke s in _coreStrokes) 1881Stroke s = _coreStrokes[i]; 2154private void BuildStrokeGuidList(Stroke stroke, GuidList guidList) 2552Stroke stroke = _coreStrokes[count]; 2706System.Collections.Generic.Dictionary<Stroke, StrokeLookupEntry> _strokeLookupTable = null;
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (4)
57out Stroke stroke) 654Stroke stroke, 681Stroke stroke, 798Stroke stroke,
MS\Internal\Ink\Renderer.cs (15)
36internal StrokeVisual(Stroke stroke, Renderer renderer) : base() 58internal Stroke Stroke 127private Stroke _stroke; 187_visuals = new Dictionary<Stroke, StrokeVisual>(); 248foreach (Stroke stroke in _strokes) 432foreach (Stroke stroke in added) 452foreach (Stroke stroke in removed) 475System.Diagnostics.Debug.Assert(_strokes.IndexOf(sender as Stroke) != -1); 479Stroke stroke = (Stroke)sender; 558Stroke visualStroke = visual.Stroke; 575Stroke stroke = _strokes[i]; 624private void StartListeningOnStrokeEvents(Stroke stroke) 633private void StopListeningOnStrokeEvents(Stroke stroke) 690private Dictionary<Stroke, StrokeVisual> _visuals;
MS\Internal\Ink\StrokeNodeEnumerator.cs (1)
27internal static StrokeNodeIterator GetIterator(Stroke stroke, DrawingAttributes drawingAttributes)
MS\Internal\Ink\StrokeRenderer.cs (1)
1091internal static DrawingAttributes GetHighlighterAttributes(Stroke stroke, DrawingAttributes da)
System\Windows\Ink\IncrementalHitTester.cs (9)
125Stroke stroke = strokes[x]; 228foreach (Stroke stroke in _strokes) 417bool isHit = DoubleUtil.GreaterThanOrClose(strokeInfo.HitWeight, strokeInfo.TotalWeight * _percentIntersect / 100f - Stroke.PercentageTolerance); 673internal StrokeHitEventArgs(Stroke stroke, StrokeIntersection[] hitFragments) 681public Stroke HitStroke { get { return _stroke; } } 692private Stroke _stroke; 714internal StrokeInfo(Stroke stroke) 728internal Stroke Stroke { get { return _stroke; } } 924private Stroke _stroke;
System\Windows\Ink\Stroke.cs (8)
75public virtual Stroke Clone() 83Stroke clone = (Stroke)this.MemberwiseClone(); 761Stroke stroke = Copy(sourceStylusPoints, fragment.BeginFIndex, fragment.EndFIndex); 826Stroke stroke = Copy(sourceStylusPoints, beginFIndex, fragment.BeginFIndex); 835Stroke stroke = Copy(sourceStylusPoints, beginFIndex, StrokeFIndices.AfterLast); 848private Stroke Copy(StylusPointCollection sourceStylusPoints, double beginFIndex, double endFIndex) 944Stroke stroke = null;
System\Windows\Ink\StrokeCollection.cs (30)
21public partial class StrokeCollection : Collection<Stroke>, INotifyPropertyChanged, INotifyCollectionChanged 35public StrokeCollection(IEnumerable<Stroke> strokes) 39List<Stroke> items = (List<Stroke>)this.Items; 42foreach ( Stroke stroke in strokes ) 234foreach ( Stroke stroke in this ) 253foreach ( Stroke s in this ) 286( (List<Stroke>)removed.Items ).Add(this[x]); 300Stroke removedStroke = this[index]; 304( (List<Stroke>)removed.Items ).Add(removedStroke); 311protected override sealed void InsertItem(int index, Stroke stroke) 322( (List<Stroke>)addedStrokes.Items ).Add(stroke); 329protected override sealed void SetItem(int index, Stroke stroke) 337Stroke removedStroke = this[index]; 341( (List<Stroke>)removed.Items ).Add(removedStroke); 344( (List<Stroke>)added.Items ).Add(stroke); 353public new int IndexOf(Stroke stroke) 404( (List<Stroke>)this.Items ).RemoveAt(indexes[x]); 431Stroke stroke = strokes[x]; 441( (List<Stroke>)this.Items ).AddRange(strokes); 451public void Replace(Stroke strokeToReplace, StrokeCollection strokesToReplaceWith) 508Stroke stroke = strokesToReplaceWith[x]; 522( (List<Stroke>)this.Items ).RemoveAt(indexes[x]); 528( (List<Stroke>)this.Items ).InsertRange(indexes[0], strokesToReplaceWith); 538internal void AddWithoutEvent(Stroke stroke) 541( (List<Stroke>)this.Items ).Add(stroke); 713private int OptimisticIndexOf(int startingIndex, Stroke stroke) 848internal class ReadOnlyStrokeCollection : StrokeCollection, ICollection<Stroke>, IList 854( (List<Stroke>)this.Items ).AddRange(strokeCollection); 879bool ICollection<Stroke>.IsReadOnly
System\Windows\Ink\StrokeCollection2.cs (21)
18public partial class StrokeCollection : Collection<Stroke>, INotifyPropertyChanged, INotifyCollectionChanged 29foreach (Stroke stroke in this) 102foreach (Stroke stroke in this) 116double target = strokeInfo.TotalWeight * percentageWithinLasso / 100.0f - Stroke.PercentageTolerance; 168foreach (Stroke stroke in this) 210foreach (Stroke stroke in this) 262Stroke stroke = this[i]; 303Stroke stroke = this[i]; 348Stroke stroke = this[i]; 368List<Stroke> solidStrokes = new List<Stroke>(); 369Dictionary<Color, List<Stroke>> highLighters = new Dictionary<Color, List<Stroke>>(); 373Stroke stroke = this[i]; 374List<Stroke> strokes; 382strokes = new List<Stroke>(); 393foreach (List<Stroke> strokes in highLighters.Values) 398foreach (Stroke stroke in strokes) 410foreach(Stroke stroke in solidStrokes) 456Stroke stroke = this[i]; 466private void UpdateStrokeCollection(Stroke original, StrokeCollection toReplace, ref int index)
PresentationFramework (23)
MS\Internal\Ink\InkCanvasSelection.cs (4)
618foreach ( Stroke s in SelectedStrokes ) 634foreach ( Stroke s in SelectedStrokes ) 791foreach (Stroke s in e.Removed) 999foreach ( Stroke s in strokes1 )
MS\Internal\Ink\InkCollectionBehavior.cs (1)
294Stroke stroke =
MS\Internal\Ink\LassoSelectionBehavior.cs (2)
264Stroke tappedStroke; 632private 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)
2242foreach (Stroke s in strokesToDynamicallySelect) 2251foreach (Stroke s in strokesToDynamicallyUnselect) 2437Stroke stroke = subset[i];
System\Windows\Controls\InkPresenter.cs (2)
524private void StartListeningOnStrokeEvents(Stroke stroke) 533private void StopListeningOnStrokeEvents(Stroke stroke)
System\Windows\Controls\StickyNote.cs (4)
1589private void StartListenToStrokeEvent(IEnumerable<Stroke> strokes) 1591foreach (Stroke s in strokes) 1610private void StopListenToStrokeEvent(IEnumerable<Stroke> strokes) 1612foreach (Stroke s in strokes)
System\Windows\Ink\Events.cs (6)
30public InkCanvasStrokeCollectedEventArgs(Swi.Stroke stroke) : base(InkCanvas.StrokeCollectedEvent) 39public Swi.Stroke Stroke 60private Swi.Stroke _stroke; 260private Swi.Stroke _stroke; 264internal InkCanvasStrokeErasingEventArgs(Swi.Stroke stroke) 273public Stroke Stroke