33 references to StylusTip
PresentationCore (30)
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (4)
802
bool fStylusTipType = ( valueType == typeof(
StylusTip
) );
807
throw new ArgumentException(SR.Format(SR.InvalidValueType1, typeof(
StylusTip
), typeof(int)), nameof(value));
809
else if ( !StylusTipHelper.IsDefined((
StylusTip
)value) )
811
throw new ArgumentException(SR.Format(SR.InvalidValueOfType, value, typeof(
StylusTip
)), nameof(value));
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (7)
315
if (da.StylusTip !=
StylusTip
.Ellipse)
325
da.StylusTip =
StylusTip
.Ellipse;
332
if (da.StylusTip ==
StylusTip
.Ellipse)
338
da.StylusTip =
StylusTip
.Rectangle;
346
if (da.StylusTip ==
StylusTip
.Ellipse &&
599
System.Diagnostics.Debug.Assert(da.StylusTip !=
StylusTip
.Ellipse, "StylusTip was put in the EPC for the default value!");
645
da.StylusTip ==
StylusTip
.Ellipse &&
MS\Internal\Ink\StrokeRenderer.cs (1)
253
bool isEllipse = drawingAttributes.StylusTip ==
StylusTip
.Ellipse;
MS\Internal\Ink\StylusShape.cs (6)
27
private
StylusTip
m_tip;
39
internal StylusShape(
StylusTip
tip, double width, double height, double rotation)
69
if (tip ==
StylusTip
.Rectangle)
269
System.Diagnostics.Debug.Assert(m_tip ==
StylusTip
.Ellipse);
342
: base(
StylusTip
.Ellipse, width, height, rotation)
369
: base(
StylusTip
.Rectangle, width, height, rotation)
System\Windows\Ink\DrawingAttributes.cs (9)
87
public
StylusTip
StylusTip
94
Debug.Assert(
StylusTip
.Ellipse == (
StylusTip
)GetDefaultDrawingAttributeValue(KnownIds.StylusTip));
95
return
StylusTip
.Ellipse;
100
Debug.Assert(
StylusTip
.Rectangle == (
StylusTip
)GetExtendedPropertyBackedProperty(KnownIds.StylusTip));
101
return
StylusTip
.Rectangle;
381
if (this.StylusTip ==
StylusTip
.Rectangle)
668
return
StylusTip
.Ellipse;
System\Windows\Ink\StylusTip.cs (3)
27
internal static bool IsDefined(
StylusTip
stylusTip)
29
if (stylusTip <
StylusTip
.Rectangle || stylusTip >
StylusTip
.Ellipse)
PresentationFramework (3)
MS\Internal\Ink\PenCursorManager.cs (2)
65
da.StylusTip =
StylusTip
.Rectangle;
69
da.StylusTip =
StylusTip
.Ellipse;
System\Windows\Controls\StickyNote.cs (1)
1750
da.StylusTip =
StylusTip
.Ellipse;