3 instantiations of Stroke
PresentationCore (1)
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (1)
89stroke = new Stroke(stylusPoints, drawingAttributes, extendedProperties);
PresentationFramework (2)
MS\Internal\Ink\InkCollectionBehavior.cs (1)
304new Stroke(_stylusPoints, _strokeDrawingAttributes);
MS\Internal\Ink\PenCursorManager.cs (1)
341Stroke singleStroke = new Stroke(stylusPoints, da);
121 references to Stroke
PresentationCore (98)
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (2)
419foreach ( Stroke stroke in strokes ) 457Stroke stroke,
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (7)
657Stroke localStroke; 1691new System.Collections.Generic.Dictionary<Stroke, StrokeLookupEntry>(_coreStrokes.Count); 1712foreach (Stroke s in _coreStrokes) 1894Stroke s = _coreStrokes[i]; 2167private void BuildStrokeGuidList(Stroke stroke, GuidList guidList) 2565Stroke stroke = _coreStrokes[count]; 2719System.Collections.Generic.Dictionary<Stroke, StrokeLookupEntry> _strokeLookupTable = null;
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (4)
64out Stroke stroke) 661Stroke stroke, 688Stroke stroke, 805Stroke stroke,
MS\Internal\Ink\Renderer.cs (15)
44internal StrokeVisual(Stroke stroke, Renderer renderer) : base() 66internal Stroke Stroke 135private Stroke _stroke; 195_visuals = new Dictionary<Stroke, StrokeVisual>(); 256foreach (Stroke stroke in _strokes) 440foreach (Stroke stroke in added) 460foreach (Stroke stroke in removed) 483System.Diagnostics.Debug.Assert(_strokes.IndexOf(sender as Stroke) != -1); 487Stroke stroke = (Stroke)sender; 566Stroke visualStroke = visual.Stroke; 583Stroke stroke = _strokes[i]; 632private void StartListeningOnStrokeEvents(Stroke stroke) 641private void StopListeningOnStrokeEvents(Stroke stroke) 698private Dictionary<Stroke, StrokeVisual> _visuals;
MS\Internal\Ink\StrokeNodeEnumerator.cs (1)
34internal static StrokeNodeIterator GetIterator(Stroke stroke, DrawingAttributes drawingAttributes)
MS\Internal\Ink\StrokeRenderer.cs (1)
1098internal static DrawingAttributes GetHighlighterAttributes(Stroke stroke, DrawingAttributes da)
System\Windows\Ink\IncrementalHitTester.cs (9)
134Stroke stroke = strokes[x]; 237foreach (Stroke stroke in _strokes) 426bool isHit = DoubleUtil.GreaterThanOrClose(strokeInfo.HitWeight, strokeInfo.TotalWeight * _percentIntersect / 100f - Stroke.PercentageTolerance); 682internal StrokeHitEventArgs(Stroke stroke, StrokeIntersection[] hitFragments) 690public Stroke HitStroke { get { return _stroke; } } 701private Stroke _stroke; 723internal StrokeInfo(Stroke stroke) 737internal Stroke Stroke { get { return _stroke; } } 933private Stroke _stroke;
System\Windows\Ink\Stroke.cs (8)
90public virtual Stroke Clone() 98Stroke clone = (Stroke)this.MemberwiseClone(); 776Stroke stroke = Copy(sourceStylusPoints, fragment.BeginFIndex, fragment.EndFIndex); 841Stroke stroke = Copy(sourceStylusPoints, beginFIndex, fragment.BeginFIndex); 850Stroke stroke = Copy(sourceStylusPoints, beginFIndex, StrokeFIndices.AfterLast); 863private Stroke Copy(StylusPointCollection sourceStylusPoints, double beginFIndex, double endFIndex) 959Stroke stroke = null;
System\Windows\Ink\StrokeCollection.cs (30)
33public partial class StrokeCollection : Collection<Stroke>, INotifyPropertyChanged, INotifyCollectionChanged 47public StrokeCollection(IEnumerable<Stroke> strokes) 51List<Stroke> items = (List<Stroke>)this.Items; 54foreach ( Stroke stroke in strokes ) 246foreach ( Stroke stroke in this ) 265foreach ( Stroke s in this ) 298( (List<Stroke>)removed.Items ).Add(this[x]); 312Stroke removedStroke = this[index]; 316( (List<Stroke>)removed.Items ).Add(removedStroke); 323protected override sealed void InsertItem(int index, Stroke stroke) 334( (List<Stroke>)addedStrokes.Items ).Add(stroke); 341protected override sealed void SetItem(int index, Stroke stroke) 349Stroke removedStroke = this[index]; 353( (List<Stroke>)removed.Items ).Add(removedStroke); 356( (List<Stroke>)added.Items ).Add(stroke); 365public new int IndexOf(Stroke stroke) 416( (List<Stroke>)this.Items ).RemoveAt(indexes[x]); 443Stroke stroke = strokes[x]; 453( (List<Stroke>)this.Items ).AddRange(strokes); 463public void Replace(Stroke strokeToReplace, StrokeCollection strokesToReplaceWith) 520Stroke stroke = strokesToReplaceWith[x]; 534( (List<Stroke>)this.Items ).RemoveAt(indexes[x]); 540( (List<Stroke>)this.Items ).InsertRange(indexes[0], strokesToReplaceWith); 550internal void AddWithoutEvent(Stroke stroke) 553( (List<Stroke>)this.Items ).Add(stroke); 725private int OptimisticIndexOf(int startingIndex, Stroke stroke) 860internal class ReadOnlyStrokeCollection : StrokeCollection, ICollection<Stroke>, IList 866( (List<Stroke>)this.Items ).AddRange(strokeCollection); 891bool ICollection<Stroke>.IsReadOnly
System\Windows\Ink\StrokeCollection2.cs (21)
25public partial class StrokeCollection : Collection<Stroke>, INotifyPropertyChanged, INotifyCollectionChanged 36foreach (Stroke stroke in this) 109foreach (Stroke stroke in this) 123double target = strokeInfo.TotalWeight * percentageWithinLasso / 100.0f - Stroke.PercentageTolerance; 175foreach (Stroke stroke in this) 217foreach (Stroke stroke in this) 269Stroke stroke = this[i]; 310Stroke stroke = this[i]; 355Stroke stroke = this[i]; 375List<Stroke> solidStrokes = new List<Stroke>(); 376Dictionary<Color, List<Stroke>> highLighters = new Dictionary<Color, List<Stroke>>(); 380Stroke stroke = this[i]; 381List<Stroke> strokes; 389strokes = new List<Stroke>(); 400foreach (List<Stroke> strokes in highLighters.Values) 405foreach (Stroke stroke in strokes) 417foreach(Stroke stroke in solidStrokes) 463Stroke stroke = this[i]; 473private void UpdateStrokeCollection(Stroke original, StrokeCollection toReplace, ref int index)
PresentationFramework (23)
MS\Internal\Ink\InkCanvasSelection.cs (4)
630foreach ( Stroke s in SelectedStrokes ) 646foreach ( Stroke s in SelectedStrokes ) 803foreach (Stroke s in e.Removed) 1011foreach ( Stroke s in strokes1 )
MS\Internal\Ink\InkCollectionBehavior.cs (1)
303Stroke stroke =
MS\Internal\Ink\LassoSelectionBehavior.cs (2)
273Stroke tappedStroke; 641private void TapSelectObject(Point point, out Stroke tappedStroke, out UIElement tappedElement)
MS\Internal\Ink\PenCursorManager.cs (1)
341Stroke singleStroke = new Stroke(stylusPoints, da);
System\Windows\Controls\InkCanvas.cs (3)
2254foreach (Stroke s in strokesToDynamicallySelect) 2263foreach (Stroke s in strokesToDynamicallyUnselect) 2449Stroke stroke = subset[i];
System\Windows\Controls\InkPresenter.cs (2)
531private void StartListeningOnStrokeEvents(Stroke stroke) 540private void StopListeningOnStrokeEvents(Stroke stroke)
System\Windows\Controls\StickyNote.cs (4)
1605private void StartListenToStrokeEvent(IEnumerable<Stroke> strokes) 1607foreach (Stroke s in strokes) 1626private void StopListenToStrokeEvent(IEnumerable<Stroke> strokes) 1628foreach (Stroke s in strokes)
System\Windows\Ink\Events.cs (6)
37public InkCanvasStrokeCollectedEventArgs(Swi.Stroke stroke) : base(InkCanvas.StrokeCollectedEvent) 46public Swi.Stroke Stroke 67private Swi.Stroke _stroke; 267private Swi.Stroke _stroke; 271internal InkCanvasStrokeErasingEventArgs(Swi.Stroke stroke) 280public Stroke Stroke