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