33 references to StylusTip
PresentationCore (30)
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (4)
803
bool fStylusTipType = ( valueType == typeof(
StylusTip
) );
808
throw new ArgumentException(SR.Format(SR.InvalidValueType1, typeof(
StylusTip
), typeof(int)), "value");
810
else if ( !StylusTipHelper.IsDefined((
StylusTip
)value) )
812
throw new ArgumentException(SR.Format(SR.InvalidValueOfType, value, typeof(
StylusTip
)), "value");
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (7)
316
if (da.StylusTip !=
StylusTip
.Ellipse)
326
da.StylusTip =
StylusTip
.Ellipse;
333
if (da.StylusTip ==
StylusTip
.Ellipse)
339
da.StylusTip =
StylusTip
.Rectangle;
347
if (da.StylusTip ==
StylusTip
.Ellipse &&
600
System.Diagnostics.Debug.Assert(da.StylusTip !=
StylusTip
.Ellipse, "StylusTip was put in the EPC for the default value!");
646
da.StylusTip ==
StylusTip
.Ellipse &&
MS\Internal\Ink\StrokeRenderer.cs (1)
254
bool isEllipse = drawingAttributes.StylusTip ==
StylusTip
.Ellipse;
MS\Internal\Ink\StylusShape.cs (6)
28
private
StylusTip
m_tip;
40
internal StylusShape(
StylusTip
tip, double width, double height, double rotation)
70
if (tip ==
StylusTip
.Rectangle)
270
System.Diagnostics.Debug.Assert(m_tip ==
StylusTip
.Ellipse);
343
: base(
StylusTip
.Ellipse, width, height, rotation)
370
: base(
StylusTip
.Rectangle, width, height, rotation)
System\Windows\Ink\DrawingAttributes.cs (9)
88
public
StylusTip
StylusTip
95
Debug.Assert(
StylusTip
.Ellipse == (
StylusTip
)GetDefaultDrawingAttributeValue(KnownIds.StylusTip));
96
return
StylusTip
.Ellipse;
101
Debug.Assert(
StylusTip
.Rectangle == (
StylusTip
)GetExtendedPropertyBackedProperty(KnownIds.StylusTip));
102
return
StylusTip
.Rectangle;
382
if (this.StylusTip ==
StylusTip
.Rectangle)
669
return
StylusTip
.Ellipse;
System\Windows\Ink\StylusTip.cs (3)
28
internal static bool IsDefined(
StylusTip
stylusTip)
30
if (stylusTip <
StylusTip
.Rectangle || stylusTip >
StylusTip
.Ellipse)
PresentationFramework (3)
MS\Internal\Ink\PenCursorManager.cs (2)
66
da.StylusTip =
StylusTip
.Rectangle;
70
da.StylusTip =
StylusTip
.Ellipse;
System\Windows\Controls\StickyNote.cs (1)
1751
da.StylusTip =
StylusTip
.Ellipse;