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