3 instantiations of Stroke
PresentationCore (1)
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (1)
82
stroke = new
Stroke
(stylusPoints, drawingAttributes, extendedProperties);
PresentationFramework (2)
MS\Internal\Ink\InkCollectionBehavior.cs (1)
294
new
Stroke
(_stylusPoints, _strokeDrawingAttributes);
MS\Internal\Ink\PenCursorManager.cs (1)
337
Stroke singleStroke = new
Stroke
(stylusPoints, da);
121 references to Stroke
PresentationCore (98)
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (2)
398
foreach (
Stroke
stroke in strokes )
436
Stroke
stroke,
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (7)
644
Stroke
localStroke;
1676
new System.Collections.Generic.Dictionary<
Stroke
, StrokeLookupEntry>(_coreStrokes.Count);
1697
foreach (
Stroke
s in _coreStrokes)
1879
Stroke
s = _coreStrokes[i];
2144
private void BuildStrokeGuidList(
Stroke
stroke, GuidList guidList)
2535
Stroke
stroke = _coreStrokes[count];
2689
System.Collections.Generic.Dictionary<
Stroke
, StrokeLookupEntry> _strokeLookupTable = null;
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (4)
57
out
Stroke
stroke)
654
Stroke
stroke,
681
Stroke
stroke,
798
Stroke
stroke,
MS\Internal\Ink\Renderer.cs (15)
36
internal StrokeVisual(
Stroke
stroke, Renderer renderer) : base()
58
internal
Stroke
Stroke
127
private
Stroke
_stroke;
187
_visuals = new Dictionary<
Stroke
, StrokeVisual>();
248
foreach (
Stroke
stroke in _strokes)
432
foreach (
Stroke
stroke in added)
452
foreach (
Stroke
stroke in removed)
475
System.Diagnostics.Debug.Assert(_strokes.IndexOf(sender as
Stroke
) != -1);
479
Stroke
stroke = (
Stroke
)sender;
558
Stroke
visualStroke = visual.Stroke;
575
Stroke
stroke = _strokes[i];
624
private void StartListeningOnStrokeEvents(
Stroke
stroke)
633
private void StopListeningOnStrokeEvents(
Stroke
stroke)
692
private Dictionary<
Stroke
, StrokeVisual> _visuals;
MS\Internal\Ink\StrokeNodeEnumerator.cs (1)
27
internal static StrokeNodeIterator GetIterator(
Stroke
stroke, DrawingAttributes drawingAttributes)
MS\Internal\Ink\StrokeRenderer.cs (1)
1095
internal static DrawingAttributes GetHighlighterAttributes(
Stroke
stroke, DrawingAttributes da)
System\Windows\Ink\IncrementalHitTester.cs (9)
125
Stroke
stroke = strokes[x];
228
foreach (
Stroke
stroke in _strokes)
414
bool isHit = DoubleUtil.GreaterThanOrClose(strokeInfo.HitWeight, strokeInfo.TotalWeight * _percentIntersect / 100f -
Stroke
.PercentageTolerance);
670
internal StrokeHitEventArgs(
Stroke
stroke, StrokeIntersection[] hitFragments)
678
public
Stroke
HitStroke { get { return _stroke; } }
689
private
Stroke
_stroke;
711
internal StrokeInfo(
Stroke
stroke)
725
internal
Stroke
Stroke { get { return _stroke; } }
921
private
Stroke
_stroke;
System\Windows\Ink\Stroke.cs (8)
75
public virtual
Stroke
Clone()
83
Stroke
clone = (
Stroke
)this.MemberwiseClone();
761
Stroke
stroke = Copy(sourceStylusPoints, fragment.BeginFIndex, fragment.EndFIndex);
826
Stroke
stroke = Copy(sourceStylusPoints, beginFIndex, fragment.BeginFIndex);
835
Stroke
stroke = Copy(sourceStylusPoints, beginFIndex, StrokeFIndices.AfterLast);
848
private
Stroke
Copy(StylusPointCollection sourceStylusPoints, double beginFIndex, double endFIndex)
944
Stroke
stroke = null;
System\Windows\Ink\StrokeCollection.cs (30)
21
public partial class StrokeCollection : Collection<
Stroke
>, INotifyPropertyChanged, INotifyCollectionChanged
35
public StrokeCollection(IEnumerable<
Stroke
> strokes)
39
List<
Stroke
> items = (List<
Stroke
>)this.Items;
42
foreach (
Stroke
stroke in strokes )
236
foreach (
Stroke
stroke in this )
251
foreach (
Stroke
s in this )
280
( (List<
Stroke
>)removed.Items ).Add(this[x]);
294
Stroke
removedStroke = this[index];
298
( (List<
Stroke
>)removed.Items ).Add(removedStroke);
305
protected override sealed void InsertItem(int index,
Stroke
stroke)
316
( (List<
Stroke
>)addedStrokes.Items ).Add(stroke);
323
protected override sealed void SetItem(int index,
Stroke
stroke)
331
Stroke
removedStroke = this[index];
335
( (List<
Stroke
>)removed.Items ).Add(removedStroke);
338
( (List<
Stroke
>)added.Items ).Add(stroke);
347
public new int IndexOf(
Stroke
stroke)
398
( (List<
Stroke
>)this.Items ).RemoveAt(indexes[x]);
425
Stroke
stroke = strokes[x];
435
( (List<
Stroke
>)this.Items ).AddRange(strokes);
445
public void Replace(
Stroke
strokeToReplace, StrokeCollection strokesToReplaceWith)
502
Stroke
stroke = strokesToReplaceWith[x];
516
( (List<
Stroke
>)this.Items ).RemoveAt(indexes[x]);
522
( (List<
Stroke
>)this.Items ).InsertRange(indexes[0], strokesToReplaceWith);
532
internal void AddWithoutEvent(
Stroke
stroke)
535
( (List<
Stroke
>)this.Items ).Add(stroke);
707
private int OptimisticIndexOf(int startingIndex,
Stroke
stroke)
842
internal class ReadOnlyStrokeCollection : StrokeCollection, ICollection<
Stroke
>, IList
848
( (List<
Stroke
>)this.Items ).AddRange(strokeCollection);
873
bool ICollection<
Stroke
>.IsReadOnly
System\Windows\Ink\StrokeCollection2.cs (21)
18
public partial class StrokeCollection : Collection<
Stroke
>, INotifyPropertyChanged, INotifyCollectionChanged
29
foreach (
Stroke
stroke in this)
98
foreach (
Stroke
stroke in this)
112
double target = strokeInfo.TotalWeight * percentageWithinLasso / 100.0f -
Stroke
.PercentageTolerance;
161
foreach (
Stroke
stroke in this)
199
foreach (
Stroke
stroke in this)
247
Stroke
stroke = this[i];
288
Stroke
stroke = this[i];
333
Stroke
stroke = this[i];
353
List<
Stroke
> solidStrokes = new List<
Stroke
>();
354
Dictionary<Color, List<
Stroke
>> highLighters = new Dictionary<Color, List<
Stroke
>>();
358
Stroke
stroke = this[i];
359
List<
Stroke
> strokes;
367
strokes = new List<
Stroke
>();
378
foreach (List<
Stroke
> strokes in highLighters.Values)
383
foreach (
Stroke
stroke in strokes)
395
foreach(
Stroke
stroke in solidStrokes)
441
Stroke
stroke = this[i];
451
private void UpdateStrokeCollection(
Stroke
original, StrokeCollection toReplace, ref int index)
PresentationFramework (23)
MS\Internal\Ink\InkCanvasSelection.cs (4)
618
foreach (
Stroke
s in SelectedStrokes )
634
foreach (
Stroke
s in SelectedStrokes )
791
foreach (
Stroke
s in e.Removed)
999
foreach (
Stroke
s in strokes1 )
MS\Internal\Ink\InkCollectionBehavior.cs (1)
293
Stroke
stroke =
MS\Internal\Ink\LassoSelectionBehavior.cs (2)
265
Stroke
tappedStroke;
631
private void TapSelectObject(Point point, out
Stroke
tappedStroke, out UIElement tappedElement)
MS\Internal\Ink\PenCursorManager.cs (1)
337
Stroke
singleStroke = new Stroke(stylusPoints, da);
System\Windows\Controls\InkCanvas.cs (3)
2258
foreach (
Stroke
s in strokesToDynamicallySelect)
2267
foreach (
Stroke
s in strokesToDynamicallyUnselect)
2453
Stroke
stroke = subset[i];
System\Windows\Controls\InkPresenter.cs (2)
521
private void StartListeningOnStrokeEvents(
Stroke
stroke)
530
private void StopListeningOnStrokeEvents(
Stroke
stroke)
System\Windows\Controls\StickyNote.cs (4)
1558
private void StartListenToStrokeEvent(IEnumerable<
Stroke
> strokes)
1560
foreach (
Stroke
s in strokes)
1579
private void StopListenToStrokeEvent(IEnumerable<
Stroke
> strokes)
1581
foreach (
Stroke
s in strokes)
System\Windows\Ink\Events.cs (6)
30
public InkCanvasStrokeCollectedEventArgs(Swi.
Stroke
stroke) : base(InkCanvas.StrokeCollectedEvent)
39
public Swi.
Stroke
Stroke
60
private Swi.
Stroke
_stroke;
260
private Swi.
Stroke
_stroke;
264
internal InkCanvasStrokeErasingEventArgs(Swi.
Stroke
stroke)
273
public
Stroke
Stroke