7 instantiations of StylusPoint
PresentationCore (6)
MS\Internal\Ink\StrokeNodeEnumerator.cs (1)
202StylusPoint previousStylusPoint = (previousIndex == -1 ? new StylusPoint() : _stylusPoints[previousIndex]);
System\Windows\Ink\Stroke.cs (1)
376new StylusPoint(xVal, yVal, pressure, bezierStylusPoints.Description, additionalData, false, false);
System\Windows\Input\Stylus\Common\StylusPointCollection.cs (3)
119stylusPoints.Add(new StylusPoint(point.X, point.Y)); 181StylusPoint newPoint = new StylusPoint(p.X, p.Y, StylusPoint.DefaultPressure, _stylusPointDescription, data, false, false); 497new StylusPoint(xCoord, yCoord, pressure, subsetToReformatToWithCurrentMetrics, newData, false, false);
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (1)
1962StylusPoint _rawPosition = new StylusPoint(0, 0);
PresentationFramework (1)
MS\Internal\Ink\PenCursorManager.cs (1)
326stylusPoints.Add(new StylusPoint(0f, 0f));
79 references to StylusPoint
PresentationCore (79)
MS\Internal\Ink\StrokeNodeEnumerator.cs (4)
124StylusPoint sp = stylusPoints[0]; 125StylusPoint lastStylusPoint = _stylusPoints[_stylusPoints.Count - 1]; 201StylusPoint stylusPoint = _stylusPoints[index]; 202StylusPoint previousStylusPoint = (previousIndex == -1 ? new StylusPoint() : _stylusPoints[previousIndex]);
System\Windows\Ink\Stroke.cs (15)
306StylusPoint prevStylusPoint = _stylusPoints[stylusPointsIndex - 1]; 366double xVal = bezierPoint.X > StylusPoint.MaxXY ? 367StylusPoint.MaxXY : 368(bezierPoint.X < StylusPoint.MinXY ? StylusPoint.MinXY : bezierPoint.X); 370double yVal = bezierPoint.Y > StylusPoint.MaxXY ? 371StylusPoint.MaxXY : 372(bezierPoint.Y < StylusPoint.MinXY ? StylusPoint.MinXY : bezierPoint.Y); 375StylusPoint newBezierPoint = 874StylusPoint stylusPoint = sourceStylusPoints[i + beginIndex]; 933StylusPoint tempEnd = stylusPoints[stylusPoints.Count - 1]; 938StylusPoint tempBegin = stylusPoints[0]; 977private Point GetIntermediatePoint(StylusPoint p1, StylusPoint p2, double findex)
System\Windows\Input\Stylus\Common\StylusDeviceBase.cs (1)
104internal abstract StylusPoint RawStylusPoint { get; }
System\Windows\Input\Stylus\Common\StylusPoint.cs (16)
12public struct StylusPoint : IEquatable<StylusPoint> 423public static explicit operator Point(StylusPoint stylusPoint) 450public static bool operator ==(StylusPoint stylusPoint1, StylusPoint stylusPoint2) 452return StylusPoint.Equals(stylusPoint1, stylusPoint2); 466public static bool operator !=(StylusPoint stylusPoint1, StylusPoint stylusPoint2) 468return !StylusPoint.Equals(stylusPoint1, stylusPoint2); 483public static bool Equals(StylusPoint stylusPoint1, StylusPoint stylusPoint2) 549if ((null == o) || !(o is StylusPoint)) 554StylusPoint value = (StylusPoint)o; 555return StylusPoint.Equals(this, value); 569public bool Equals(StylusPoint value) 571return StylusPoint.Equals(this, value);
System\Windows\Input\Stylus\Common\StylusPointCollection.cs (29)
15public class StylusPointCollection : Collection<StylusPoint> 48((List<StylusPoint>)this.Items).Capacity = initialCapacity; 73((List<StylusPoint>)this.Items).Capacity = initialCapacity; 81public StylusPointCollection(IEnumerable<StylusPoint> stylusPoints) 86List<StylusPoint> points = new List<StylusPoint>(stylusPoints); 97((List<StylusPoint>)this.Items).Capacity = points.Count; 113List<StylusPoint> stylusPoints = new List<StylusPoint>(); 127((List<StylusPoint>)this.Items).Capacity = stylusPoints.Count; 128((List<StylusPoint>)this.Items).AddRange(stylusPoints); 150((List<StylusPoint>)this.Items).Capacity = logicalPointCount; 181StylusPoint newPoint = new StylusPoint(p.X, p.Y, StylusPoint.DefaultPressure, _stylusPointDescription, data, false, false); 190((List<StylusPoint>)this.Items).Add(newPoint); 213StylusPoint stylusPoint = stylusPoints[x]; 216((List<StylusPoint>)this.Items).Add(stylusPoint); 278protected override sealed void InsertItem(int index, StylusPoint stylusPoint) 296protected override sealed void SetItem(int index, StylusPoint stylusPoint) 377((List<StylusPoint>)newCollection.Items).Add(this[x]); 382StylusPoint stylusPoint = this[x]; 388((List<StylusPoint>)newCollection.Items).Add(stylusPoint); 416StylusPoint stylusPoint = this[i]; 424((List<StylusPoint>)this.Items)[i] = stylusPoint; 475StylusPoint stylusPoint = this[i]; 496StylusPoint newStylusPoint = 506((List<StylusPoint>)newCollection.Items).Add(newStylusPoint); 524StylusPoint stylusPoint = this[i]; 593StylusPoint stylusPoint = this[b];
System\Windows\Input\Stylus\Common\StylusTouchDeviceBase.cs (4)
51private Rect GetBounds(StylusPoint stylusPoint, Point position, IInputElement relativeTo) 59private Rect GetBounds(StylusPoint stylusPoint, 86protected abstract double GetStylusPointWidthOrHeight(StylusPoint stylusPoint, bool isWidth); 107StylusPoint stylusPoint = stylusPoints[i];
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (3)
343internal override StylusPoint RawStylusPoint 633StylusPoint stylusPoint = _currentStylusPoints[_currentStylusPoints.Count - 1]; 857StylusPoint flickPoint = _currentStylusPoints[_currentStylusPoints.Count - 1];
System\Windows\Input\Stylus\Pointer\PointerTouchDevice.cs (1)
73protected override double GetStylusPointWidthOrHeight(StylusPoint stylusPoint, bool isWidth)
System\Windows\Input\Stylus\Wisp\WispLogic.cs (1)
2878StylusPoint stylusPoint = stylusPoints[stylusPoints.Count - 1];
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (4)
345StylusPoint stylusPoint = _eventStylusPoints[_eventStylusPoints.Count - 1]; 1212internal override StylusPoint RawStylusPoint 1612StylusPoint stylusPoint = _eventStylusPoints[_eventStylusPoints.Count - 1]; 1962StylusPoint _rawPosition = new StylusPoint(0, 0);
System\Windows\Input\Stylus\Wisp\WispStylusTouchDevice.cs (1)
36protected override double GetStylusPointWidthOrHeight(StylusPoint stylusPoint, bool isWidth)