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