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