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)
294new Stroke(_stylusPoints, _strokeDrawingAttributes);
MS\Internal\Ink\PenCursorManager.cs (1)
337Stroke singleStroke = new Stroke(stylusPoints, da);
121 references to Stroke
PresentationCore (98)
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (2)
398foreach ( Stroke stroke in strokes ) 436Stroke stroke,
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (7)
644Stroke localStroke; 1676new System.Collections.Generic.Dictionary<Stroke, StrokeLookupEntry>(_coreStrokes.Count); 1697foreach (Stroke s in _coreStrokes) 1879Stroke s = _coreStrokes[i]; 2144private void BuildStrokeGuidList(Stroke stroke, GuidList guidList) 2535Stroke stroke = _coreStrokes[count]; 2689System.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) 692private Dictionary<Stroke, StrokeVisual> _visuals;
MS\Internal\Ink\StrokeNodeEnumerator.cs (1)
27internal static StrokeNodeIterator GetIterator(Stroke stroke, DrawingAttributes drawingAttributes)
MS\Internal\Ink\StrokeRenderer.cs (1)
1095internal static DrawingAttributes GetHighlighterAttributes(Stroke stroke, DrawingAttributes da)
System\Windows\Ink\IncrementalHitTester.cs (9)
125Stroke stroke = strokes[x]; 228foreach (Stroke stroke in _strokes) 414bool isHit = DoubleUtil.GreaterThanOrClose(strokeInfo.HitWeight, strokeInfo.TotalWeight * _percentIntersect / 100f - Stroke.PercentageTolerance); 670internal StrokeHitEventArgs(Stroke stroke, StrokeIntersection[] hitFragments) 678public Stroke HitStroke { get { return _stroke; } } 689private Stroke _stroke; 711internal StrokeInfo(Stroke stroke) 725internal Stroke Stroke { get { return _stroke; } } 921private 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 ) 236foreach ( Stroke stroke in this ) 251foreach ( Stroke s in this ) 280( (List<Stroke>)removed.Items ).Add(this[x]); 294Stroke removedStroke = this[index]; 298( (List<Stroke>)removed.Items ).Add(removedStroke); 305protected override sealed void InsertItem(int index, Stroke stroke) 316( (List<Stroke>)addedStrokes.Items ).Add(stroke); 323protected override sealed void SetItem(int index, Stroke stroke) 331Stroke removedStroke = this[index]; 335( (List<Stroke>)removed.Items ).Add(removedStroke); 338( (List<Stroke>)added.Items ).Add(stroke); 347public new int IndexOf(Stroke stroke) 398( (List<Stroke>)this.Items ).RemoveAt(indexes[x]); 425Stroke stroke = strokes[x]; 435( (List<Stroke>)this.Items ).AddRange(strokes); 445public void Replace(Stroke strokeToReplace, StrokeCollection strokesToReplaceWith) 502Stroke stroke = strokesToReplaceWith[x]; 516( (List<Stroke>)this.Items ).RemoveAt(indexes[x]); 522( (List<Stroke>)this.Items ).InsertRange(indexes[0], strokesToReplaceWith); 532internal void AddWithoutEvent(Stroke stroke) 535( (List<Stroke>)this.Items ).Add(stroke); 707private int OptimisticIndexOf(int startingIndex, Stroke stroke) 842internal class ReadOnlyStrokeCollection : StrokeCollection, ICollection<Stroke>, IList 848( (List<Stroke>)this.Items ).AddRange(strokeCollection); 873bool ICollection<Stroke>.IsReadOnly
System\Windows\Ink\StrokeCollection2.cs (21)
18public partial class StrokeCollection : Collection<Stroke>, INotifyPropertyChanged, INotifyCollectionChanged 29foreach (Stroke stroke in this) 98foreach (Stroke stroke in this) 112double target = strokeInfo.TotalWeight * percentageWithinLasso / 100.0f - Stroke.PercentageTolerance; 161foreach (Stroke stroke in this) 199foreach (Stroke stroke in this) 247Stroke stroke = this[i]; 288Stroke stroke = this[i]; 333Stroke stroke = this[i]; 353List<Stroke> solidStrokes = new List<Stroke>(); 354Dictionary<Color, List<Stroke>> highLighters = new Dictionary<Color, List<Stroke>>(); 358Stroke stroke = this[i]; 359List<Stroke> strokes; 367strokes = new List<Stroke>(); 378foreach (List<Stroke> strokes in highLighters.Values) 383foreach (Stroke stroke in strokes) 395foreach(Stroke stroke in solidStrokes) 441Stroke stroke = this[i]; 451private 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)
293Stroke stroke =
MS\Internal\Ink\LassoSelectionBehavior.cs (2)
265Stroke tappedStroke; 631private void TapSelectObject(Point point, out Stroke tappedStroke, out UIElement tappedElement)
MS\Internal\Ink\PenCursorManager.cs (1)
337Stroke singleStroke = new Stroke(stylusPoints, da);
System\Windows\Controls\InkCanvas.cs (3)
2258foreach (Stroke s in strokesToDynamicallySelect) 2267foreach (Stroke s in strokesToDynamicallyUnselect) 2453Stroke stroke = subset[i];
System\Windows\Controls\InkPresenter.cs (2)
521private void StartListeningOnStrokeEvents(Stroke stroke) 530private void StopListeningOnStrokeEvents(Stroke stroke)
System\Windows\Controls\StickyNote.cs (4)
1558private void StartListenToStrokeEvent(IEnumerable<Stroke> strokes) 1560foreach (Stroke s in strokes) 1579private void StopListenToStrokeEvent(IEnumerable<Stroke> strokes) 1581foreach (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