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)
295
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)
400
foreach (
Stroke
stroke in strokes )
438
Stroke
stroke,
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (7)
644
Stroke
localStroke;
1678
new System.Collections.Generic.Dictionary<
Stroke
, StrokeLookupEntry>(_coreStrokes.Count);
1699
foreach (
Stroke
s in _coreStrokes)
1881
Stroke
s = _coreStrokes[i];
2154
private void BuildStrokeGuidList(
Stroke
stroke, GuidList guidList)
2552
Stroke
stroke = _coreStrokes[count];
2706
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)
690
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)
1091
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)
417
bool isHit = DoubleUtil.GreaterThanOrClose(strokeInfo.HitWeight, strokeInfo.TotalWeight * _percentIntersect / 100f -
Stroke
.PercentageTolerance);
673
internal StrokeHitEventArgs(
Stroke
stroke, StrokeIntersection[] hitFragments)
681
public
Stroke
HitStroke { get { return _stroke; } }
692
private
Stroke
_stroke;
714
internal StrokeInfo(
Stroke
stroke)
728
internal
Stroke
Stroke { get { return _stroke; } }
924
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 )
234
foreach (
Stroke
stroke in this )
253
foreach (
Stroke
s in this )
286
( (List<
Stroke
>)removed.Items ).Add(this[x]);
300
Stroke
removedStroke = this[index];
304
( (List<
Stroke
>)removed.Items ).Add(removedStroke);
311
protected override sealed void InsertItem(int index,
Stroke
stroke)
322
( (List<
Stroke
>)addedStrokes.Items ).Add(stroke);
329
protected override sealed void SetItem(int index,
Stroke
stroke)
337
Stroke
removedStroke = this[index];
341
( (List<
Stroke
>)removed.Items ).Add(removedStroke);
344
( (List<
Stroke
>)added.Items ).Add(stroke);
353
public new int IndexOf(
Stroke
stroke)
404
( (List<
Stroke
>)this.Items ).RemoveAt(indexes[x]);
431
Stroke
stroke = strokes[x];
441
( (List<
Stroke
>)this.Items ).AddRange(strokes);
451
public void Replace(
Stroke
strokeToReplace, StrokeCollection strokesToReplaceWith)
508
Stroke
stroke = strokesToReplaceWith[x];
522
( (List<
Stroke
>)this.Items ).RemoveAt(indexes[x]);
528
( (List<
Stroke
>)this.Items ).InsertRange(indexes[0], strokesToReplaceWith);
538
internal void AddWithoutEvent(
Stroke
stroke)
541
( (List<
Stroke
>)this.Items ).Add(stroke);
713
private int OptimisticIndexOf(int startingIndex,
Stroke
stroke)
848
internal class ReadOnlyStrokeCollection : StrokeCollection, ICollection<
Stroke
>, IList
854
( (List<
Stroke
>)this.Items ).AddRange(strokeCollection);
879
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)
102
foreach (
Stroke
stroke in this)
116
double target = strokeInfo.TotalWeight * percentageWithinLasso / 100.0f -
Stroke
.PercentageTolerance;
168
foreach (
Stroke
stroke in this)
210
foreach (
Stroke
stroke in this)
262
Stroke
stroke = this[i];
303
Stroke
stroke = this[i];
348
Stroke
stroke = this[i];
368
List<
Stroke
> solidStrokes = new List<
Stroke
>();
369
Dictionary<Color, List<
Stroke
>> highLighters = new Dictionary<Color, List<
Stroke
>>();
373
Stroke
stroke = this[i];
374
List<
Stroke
> strokes;
382
strokes = new List<
Stroke
>();
393
foreach (List<
Stroke
> strokes in highLighters.Values)
398
foreach (
Stroke
stroke in strokes)
410
foreach(
Stroke
stroke in solidStrokes)
456
Stroke
stroke = this[i];
466
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)
294
Stroke
stroke =
MS\Internal\Ink\LassoSelectionBehavior.cs (2)
264
Stroke
tappedStroke;
632
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)
2242
foreach (
Stroke
s in strokesToDynamicallySelect)
2251
foreach (
Stroke
s in strokesToDynamicallyUnselect)
2437
Stroke
stroke = subset[i];
System\Windows\Controls\InkPresenter.cs (2)
524
private void StartListeningOnStrokeEvents(
Stroke
stroke)
533
private void StopListeningOnStrokeEvents(
Stroke
stroke)
System\Windows\Controls\StickyNote.cs (4)
1589
private void StartListenToStrokeEvent(IEnumerable<
Stroke
> strokes)
1591
foreach (
Stroke
s in strokes)
1610
private void StopListenToStrokeEvent(IEnumerable<
Stroke
> strokes)
1612
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