1 instantiation of Stroke
PresentationCore (1)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (1)
98stroke = new Stroke(stylusPoints, drawingAttributes, extendedProperties);
121 references to Stroke
PresentationCore (98)
Core\CSharp\MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (2)
506foreach ( Stroke stroke in strokes ) 549Stroke stroke,
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (7)
667Stroke localStroke; 1722new System.Collections.Generic.Dictionary<Stroke, StrokeLookupEntry>(_coreStrokes.Count); 1743foreach (Stroke s in _coreStrokes) 1935Stroke s = _coreStrokes[i]; 2218private void BuildStrokeGuidList(Stroke stroke, GuidList guidList) 2626Stroke stroke = _coreStrokes[count]; 2780System.Collections.Generic.Dictionary<Stroke, StrokeLookupEntry> _strokeLookupTable = null;
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (4)
73out Stroke stroke) 700Stroke stroke, 727Stroke stroke, 853Stroke stroke,
Core\CSharp\MS\Internal\Ink\Renderer.cs (15)
46internal StrokeVisual(Stroke stroke, Renderer renderer) : base() 71internal Stroke Stroke 140private Stroke _stroke; 201_visuals = new Dictionary<Stroke, StrokeVisual>(); 265foreach (Stroke stroke in _strokes) 458foreach (Stroke stroke in added) 478foreach (Stroke stroke in removed) 501System.Diagnostics.Debug.Assert(_strokes.IndexOf(sender as Stroke) != -1); 505Stroke stroke = (Stroke)sender; 584Stroke visualStroke = visual.Stroke; 601Stroke stroke = _strokes[i]; 650private void StartListeningOnStrokeEvents(Stroke stroke) 659private void StopListeningOnStrokeEvents(Stroke stroke) 716private Dictionary<Stroke, StrokeVisual> _visuals;
Core\CSharp\MS\Internal\Ink\StrokeNodeEnumerator.cs (1)
36internal static StrokeNodeIterator GetIterator(Stroke stroke, DrawingAttributes drawingAttributes)
Core\CSharp\MS\Internal\Ink\StrokeRenderer.cs (1)
1111internal static DrawingAttributes GetHighlighterAttributes(Stroke stroke, DrawingAttributes da)
Core\CSharp\System\Windows\Ink\IncrementalHitTester.cs (9)
142Stroke stroke = strokes[x]; 245foreach (Stroke stroke in _strokes) 434bool isHit = DoubleUtil.GreaterThanOrClose(strokeInfo.HitWeight, strokeInfo.TotalWeight * _percentIntersect / 100f - Stroke.PercentageTolerance); 690internal StrokeHitEventArgs(Stroke stroke, StrokeIntersection[] hitFragments) 698public Stroke HitStroke { get { return _stroke; } } 709private Stroke _stroke; 734internal StrokeInfo(Stroke stroke) 748internal Stroke Stroke { get { return _stroke; } } 944private Stroke _stroke;
Core\CSharp\System\Windows\Ink\Stroke.cs (8)
97public virtual Stroke Clone() 105Stroke clone = (Stroke)this.MemberwiseClone(); 793Stroke stroke = Copy(sourceStylusPoints, fragment.BeginFIndex, fragment.EndFIndex); 858Stroke stroke = Copy(sourceStylusPoints, beginFIndex, fragment.BeginFIndex); 867Stroke stroke = Copy(sourceStylusPoints, beginFIndex, StrokeFIndices.AfterLast); 880private Stroke Copy(StylusPointCollection sourceStylusPoints, double beginFIndex, double endFIndex) 980Stroke stroke = null;
Core\CSharp\System\Windows\Ink\StrokeCollection.cs (30)
35public partial class StrokeCollection : Collection<Stroke>, INotifyPropertyChanged, INotifyCollectionChanged 50public StrokeCollection(IEnumerable<Stroke> strokes) 57List<Stroke> items = (List<Stroke>)this.Items; 60foreach ( Stroke stroke in strokes ) 258foreach ( Stroke stroke in this ) 277foreach ( Stroke s in this ) 310( (List<Stroke>)removed.Items ).Add(this[x]); 324Stroke removedStroke = this[index]; 328( (List<Stroke>)removed.Items ).Add(removedStroke); 335protected override sealed void InsertItem(int index, Stroke stroke) 349( (List<Stroke>)addedStrokes.Items ).Add(stroke); 356protected override sealed void SetItem(int index, Stroke stroke) 367Stroke removedStroke = this[index]; 371( (List<Stroke>)removed.Items ).Add(removedStroke); 374( (List<Stroke>)added.Items ).Add(stroke); 383public new int IndexOf(Stroke stroke) 437( (List<Stroke>)this.Items ).RemoveAt(indexes[x]); 467Stroke stroke = strokes[x]; 477( (List<Stroke>)this.Items ).AddRange(strokes); 487public void Replace(Stroke strokeToReplace, StrokeCollection strokesToReplaceWith) 544Stroke stroke = strokesToReplaceWith[x]; 558( (List<Stroke>)this.Items ).RemoveAt(indexes[x]); 564( (List<Stroke>)this.Items ).InsertRange(indexes[0], strokesToReplaceWith); 574internal void AddWithoutEvent(Stroke stroke) 577( (List<Stroke>)this.Items ).Add(stroke); 749private int OptimisticIndexOf(int startingIndex, Stroke stroke) 884internal class ReadOnlyStrokeCollection : StrokeCollection, ICollection<Stroke>, IList 890( (List<Stroke>)this.Items ).AddRange(strokeCollection); 915bool ICollection<Stroke>.IsReadOnly
Core\CSharp\System\Windows\Ink\StrokeCollection2.cs (21)
28public partial class StrokeCollection : Collection<Stroke>, INotifyPropertyChanged, INotifyCollectionChanged 39foreach (Stroke stroke in this) 115foreach (Stroke stroke in this) 130double target = strokeInfo.TotalWeight * percentageWithinLasso / 100.0f - Stroke.PercentageTolerance; 182foreach (Stroke stroke in this) 230foreach (Stroke stroke in this) 285Stroke stroke = this[i]; 329Stroke stroke = this[i]; 374Stroke stroke = this[i]; 397List<Stroke> solidStrokes = new List<Stroke>(); 398Dictionary<Color, List<Stroke>> highLighters = new Dictionary<Color, List<Stroke>>(); 402Stroke stroke = this[i]; 403List<Stroke> strokes; 411strokes = new List<Stroke>(); 422foreach (List<Stroke> strokes in highLighters.Values) 427foreach (Stroke stroke in strokes) 439foreach(Stroke stroke in solidStrokes) 488Stroke stroke = this[i]; 498private void UpdateStrokeCollection(Stroke original, StrokeCollection toReplace, ref int index)
PresentationFramework (23)
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (4)
640foreach ( Stroke s in SelectedStrokes ) 656foreach ( Stroke s in SelectedStrokes ) 813foreach (Stroke s in e.Removed) 1023foreach ( Stroke s in strokes1 )
src\Framework\MS\Internal\Ink\InkCollectionBehavior.cs (1)
355Stroke stroke =
src\Framework\MS\Internal\Ink\LassoSelectionBehavior.cs (2)
276Stroke tappedStroke; 645private void TapSelectObject(Point point, out Stroke tappedStroke, out UIElement tappedElement)
src\Framework\MS\Internal\Ink\PenCursorManager.cs (1)
366Stroke singleStroke = new Stroke(stylusPoints, da);
src\Framework\System\Windows\Controls\InkCanvas.cs (3)
2379foreach (Stroke s in strokesToDynamicallySelect) 2388foreach (Stroke s in strokesToDynamicallyUnselect) 2575Stroke stroke = subset[i];
src\Framework\System\Windows\Controls\InkPresenter.cs (2)
539private void StartListeningOnStrokeEvents(Stroke stroke) 548private void StopListeningOnStrokeEvents(Stroke stroke)
src\Framework\System\Windows\Controls\StickyNote.cs (4)
1615private void StartListenToStrokeEvent(IEnumerable<Stroke> strokes) 1617foreach (Stroke s in strokes) 1636private void StopListenToStrokeEvent(IEnumerable<Stroke> strokes) 1638foreach (Stroke s in strokes)
src\Framework\System\Windows\Ink\Events.cs (6)
40public InkCanvasStrokeCollectedEventArgs(Swi.Stroke stroke) : base(InkCanvas.StrokeCollectedEvent) 52public Swi.Stroke Stroke 73private Swi.Stroke _stroke; 292private Swi.Stroke _stroke; 296internal InkCanvasStrokeErasingEventArgs(Swi.Stroke stroke) 308public Stroke Stroke