3 instantiations of Stroke
PresentationCore (1)
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (1)
81
stroke = new
Stroke
(stylusPoints, drawingAttributes, extendedProperties);
PresentationFramework (2)
MS\Internal\Ink\InkCollectionBehavior.cs (1)
293
new
Stroke
(_stylusPoints, _strokeDrawingAttributes);
MS\Internal\Ink\PenCursorManager.cs (1)
336
Stroke singleStroke = new
Stroke
(stylusPoints, da);
121 references to Stroke
PresentationCore (98)
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (2)
397
foreach (
Stroke
stroke in strokes )
435
Stroke
stroke,
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (7)
643
Stroke
localStroke;
1675
new System.Collections.Generic.Dictionary<
Stroke
, StrokeLookupEntry>(_coreStrokes.Count);
1696
foreach (
Stroke
s in _coreStrokes)
1878
Stroke
s = _coreStrokes[i];
2143
private void BuildStrokeGuidList(
Stroke
stroke, GuidList guidList)
2534
Stroke
stroke = _coreStrokes[count];
2687
private System.Collections.Generic.Dictionary<
Stroke
, StrokeLookupEntry> _strokeLookupTable = null;
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (4)
56
out
Stroke
stroke)
653
Stroke
stroke,
680
Stroke
stroke,
797
Stroke
stroke,
MS\Internal\Ink\Renderer.cs (15)
35
internal StrokeVisual(
Stroke
stroke, Renderer renderer) : base()
57
internal
Stroke
Stroke
126
private
Stroke
_stroke;
186
_visuals = new Dictionary<
Stroke
, StrokeVisual>();
247
foreach (
Stroke
stroke in _strokes)
431
foreach (
Stroke
stroke in added)
451
foreach (
Stroke
stroke in removed)
474
System.Diagnostics.Debug.Assert(_strokes.IndexOf(sender as
Stroke
) != -1);
478
Stroke
stroke = (
Stroke
)sender;
557
Stroke
visualStroke = visual.Stroke;
574
Stroke
stroke = _strokes[i];
623
private void StartListeningOnStrokeEvents(
Stroke
stroke)
632
private void StopListeningOnStrokeEvents(
Stroke
stroke)
691
private Dictionary<
Stroke
, StrokeVisual> _visuals;
MS\Internal\Ink\StrokeNodeEnumerator.cs (1)
26
internal static StrokeNodeIterator GetIterator(
Stroke
stroke, DrawingAttributes drawingAttributes)
MS\Internal\Ink\StrokeRenderer.cs (1)
1094
internal static DrawingAttributes GetHighlighterAttributes(
Stroke
stroke, DrawingAttributes da)
System\Windows\Ink\IncrementalHitTester.cs (9)
124
Stroke
stroke = strokes[x];
227
foreach (
Stroke
stroke in _strokes)
413
bool isHit = DoubleUtil.GreaterThanOrClose(strokeInfo.HitWeight, strokeInfo.TotalWeight * _percentIntersect / 100f -
Stroke
.PercentageTolerance);
669
internal StrokeHitEventArgs(
Stroke
stroke, StrokeIntersection[] hitFragments)
677
public
Stroke
HitStroke { get { return _stroke; } }
688
private
Stroke
_stroke;
710
internal StrokeInfo(
Stroke
stroke)
724
internal
Stroke
Stroke { get { return _stroke; } }
920
private
Stroke
_stroke;
System\Windows\Ink\Stroke.cs (8)
74
public virtual
Stroke
Clone()
82
Stroke
clone = (
Stroke
)this.MemberwiseClone();
760
Stroke
stroke = Copy(sourceStylusPoints, fragment.BeginFIndex, fragment.EndFIndex);
825
Stroke
stroke = Copy(sourceStylusPoints, beginFIndex, fragment.BeginFIndex);
834
Stroke
stroke = Copy(sourceStylusPoints, beginFIndex, StrokeFIndices.AfterLast);
847
private
Stroke
Copy(StylusPointCollection sourceStylusPoints, double beginFIndex, double endFIndex)
943
Stroke
stroke = null;
System\Windows\Ink\StrokeCollection.cs (30)
20
public partial class StrokeCollection : Collection<
Stroke
>, INotifyPropertyChanged, INotifyCollectionChanged
34
public StrokeCollection(IEnumerable<
Stroke
> strokes)
38
List<
Stroke
> items = (List<
Stroke
>)this.Items;
41
foreach (
Stroke
stroke in strokes )
235
foreach (
Stroke
stroke in this )
250
foreach (
Stroke
s in this )
279
( (List<
Stroke
>)removed.Items ).Add(this[x]);
293
Stroke
removedStroke = this[index];
297
( (List<
Stroke
>)removed.Items ).Add(removedStroke);
304
protected sealed override void InsertItem(int index,
Stroke
stroke)
315
( (List<
Stroke
>)addedStrokes.Items ).Add(stroke);
322
protected sealed override void SetItem(int index,
Stroke
stroke)
330
Stroke
removedStroke = this[index];
334
( (List<
Stroke
>)removed.Items ).Add(removedStroke);
337
( (List<
Stroke
>)added.Items ).Add(stroke);
346
public new int IndexOf(
Stroke
stroke)
397
( (List<
Stroke
>)this.Items ).RemoveAt(indexes[x]);
424
Stroke
stroke = strokes[x];
434
( (List<
Stroke
>)this.Items ).AddRange(strokes);
444
public void Replace(
Stroke
strokeToReplace, StrokeCollection strokesToReplaceWith)
501
Stroke
stroke = strokesToReplaceWith[x];
515
( (List<
Stroke
>)this.Items ).RemoveAt(indexes[x]);
521
( (List<
Stroke
>)this.Items ).InsertRange(indexes[0], strokesToReplaceWith);
531
internal void AddWithoutEvent(
Stroke
stroke)
534
( (List<
Stroke
>)this.Items ).Add(stroke);
706
private int OptimisticIndexOf(int startingIndex,
Stroke
stroke)
841
internal class ReadOnlyStrokeCollection : StrokeCollection, ICollection<
Stroke
>, IList
847
( (List<
Stroke
>)this.Items ).AddRange(strokeCollection);
872
bool ICollection<
Stroke
>.IsReadOnly
System\Windows\Ink\StrokeCollection2.cs (21)
17
public partial class StrokeCollection : Collection<
Stroke
>, INotifyPropertyChanged, INotifyCollectionChanged
28
foreach (
Stroke
stroke in this)
97
foreach (
Stroke
stroke in this)
111
double target = strokeInfo.TotalWeight * percentageWithinLasso / 100.0f -
Stroke
.PercentageTolerance;
160
foreach (
Stroke
stroke in this)
198
foreach (
Stroke
stroke in this)
246
Stroke
stroke = this[i];
287
Stroke
stroke = this[i];
332
Stroke
stroke = this[i];
352
List<
Stroke
> solidStrokes = new List<
Stroke
>();
353
Dictionary<Color, List<
Stroke
>> highLighters = new Dictionary<Color, List<
Stroke
>>();
357
Stroke
stroke = this[i];
358
List<
Stroke
> strokes;
366
strokes = new List<
Stroke
>();
377
foreach (List<
Stroke
> strokes in highLighters.Values)
382
foreach (
Stroke
stroke in strokes)
394
foreach(
Stroke
stroke in solidStrokes)
440
Stroke
stroke = this[i];
450
private void UpdateStrokeCollection(
Stroke
original, StrokeCollection toReplace, ref int index)
PresentationFramework (23)
MS\Internal\Ink\InkCanvasSelection.cs (4)
617
foreach (
Stroke
s in SelectedStrokes )
633
foreach (
Stroke
s in SelectedStrokes )
790
foreach (
Stroke
s in e.Removed)
998
foreach (
Stroke
s in strokes1 )
MS\Internal\Ink\InkCollectionBehavior.cs (1)
292
Stroke
stroke =
MS\Internal\Ink\LassoSelectionBehavior.cs (2)
264
Stroke
tappedStroke;
630
private void TapSelectObject(Point point, out
Stroke
tappedStroke, out UIElement tappedElement)
MS\Internal\Ink\PenCursorManager.cs (1)
336
Stroke
singleStroke = new Stroke(stylusPoints, da);
System\Windows\Controls\InkCanvas.cs (3)
2257
foreach (
Stroke
s in strokesToDynamicallySelect)
2266
foreach (
Stroke
s in strokesToDynamicallyUnselect)
2452
Stroke
stroke = subset[i];
System\Windows\Controls\InkPresenter.cs (2)
520
private void StartListeningOnStrokeEvents(
Stroke
stroke)
529
private void StopListeningOnStrokeEvents(
Stroke
stroke)
System\Windows\Controls\StickyNote.cs (4)
1557
private void StartListenToStrokeEvent(IEnumerable<
Stroke
> strokes)
1559
foreach (
Stroke
s in strokes)
1578
private void StopListenToStrokeEvent(IEnumerable<
Stroke
> strokes)
1580
foreach (
Stroke
s in strokes)
System\Windows\Ink\Events.cs (6)
29
public InkCanvasStrokeCollectedEventArgs(Swi.
Stroke
stroke) : base(InkCanvas.StrokeCollectedEvent)
38
public Swi.
Stroke
Stroke
59
private Swi.
Stroke
_stroke;
259
private Swi.
Stroke
_stroke;
263
internal InkCanvasStrokeErasingEventArgs(Swi.
Stroke
stroke)
272
public
Stroke
Stroke