33 references to StylusTip
PresentationCore (30)
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (4)
819
bool fStylusTipType = ( valueType == typeof(
StylusTip
) );
824
throw new ArgumentException(SR.Format(SR.InvalidValueType1, typeof(
StylusTip
), typeof(int)), "value");
826
else if ( !StylusTipHelper.IsDefined((
StylusTip
)value) )
828
throw new ArgumentException(SR.Format(SR.InvalidValueOfType, value, typeof(
StylusTip
)), "value");
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (7)
326
if (da.StylusTip !=
StylusTip
.Ellipse)
336
da.StylusTip =
StylusTip
.Ellipse;
343
if (da.StylusTip ==
StylusTip
.Ellipse)
349
da.StylusTip =
StylusTip
.Rectangle;
357
if (da.StylusTip ==
StylusTip
.Ellipse &&
610
System.Diagnostics.Debug.Assert(da.StylusTip !=
StylusTip
.Ellipse, "StylusTip was put in the EPC for the default value!");
656
da.StylusTip ==
StylusTip
.Ellipse &&
MS\Internal\Ink\StrokeRenderer.cs (1)
257
bool isEllipse = drawingAttributes.StylusTip ==
StylusTip
.Ellipse;
MS\Internal\Ink\StylusShape.cs (6)
35
private
StylusTip
m_tip;
47
internal StylusShape(
StylusTip
tip, double width, double height, double rotation)
77
if (tip ==
StylusTip
.Rectangle)
277
System.Diagnostics.Debug.Assert(m_tip ==
StylusTip
.Ellipse);
350
: base(
StylusTip
.Ellipse, width, height, rotation)
377
: base(
StylusTip
.Rectangle, width, height, rotation)
System\Windows\Ink\DrawingAttributes.cs (9)
99
public
StylusTip
StylusTip
106
Debug.Assert(
StylusTip
.Ellipse == (
StylusTip
)GetDefaultDrawingAttributeValue(KnownIds.StylusTip));
107
return
StylusTip
.Ellipse;
112
Debug.Assert(
StylusTip
.Rectangle == (
StylusTip
)GetExtendedPropertyBackedProperty(KnownIds.StylusTip));
113
return
StylusTip
.Rectangle;
393
if (this.StylusTip ==
StylusTip
.Rectangle)
680
return
StylusTip
.Ellipse;
System\Windows\Ink\StylusTip.cs (3)
31
internal static bool IsDefined(
StylusTip
stylusTip)
33
if (stylusTip <
StylusTip
.Rectangle || stylusTip >
StylusTip
.Ellipse)
PresentationFramework (3)
MS\Internal\Ink\PenCursorManager.cs (2)
71
da.StylusTip =
StylusTip
.Rectangle;
75
da.StylusTip =
StylusTip
.Ellipse;
System\Windows\Controls\StickyNote.cs (1)
1792
da.StylusTip =
StylusTip
.Ellipse;