12 instantiations of DrawingAttributes
PresentationCore (5)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (3)
415DrawingAttributes dr = new DrawingAttributes(epc); 631activeDrawingAttributes = new DrawingAttributes(); 839DrawingAttributes attributes = new DrawingAttributes
System\Windows\Ink\Stroke.cs (1)
25: this (stylusPoints, new DrawingAttributes(), null)
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (1)
1171private DrawingAttributes _drawAttrsSource = new DrawingAttributes();
PresentationFramework (7)
MS\Internal\Ink\DrawingAttributesDefaultValueFactory.cs (2)
28return new DrawingAttributes(); 38DrawingAttributes defaultValue = new DrawingAttributes();
MS\Internal\Ink\PenCursorManager.cs (2)
62DrawingAttributes da = new DrawingAttributes(); 326DrawingAttributes da = new DrawingAttributes
System\Windows\Controls\InkCanvas.cs (1)
2240InkPresenter.AttachVisuals(visual, new DrawingAttributes());
System\Windows\Controls\StickyNote.cs (2)
427(new DrawingAttributes()).Width, 1740DrawingAttributes da = new DrawingAttributes();
140 references to DrawingAttributes
PresentationCore (118)
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (4)
859if ( Double.IsNaN(dVal) || dVal < DrawingAttributes.MinHeight || dVal > DrawingAttributes.MaxHeight) 866if (Double.IsNaN(dVal) || dVal < DrawingAttributes.MinWidth || dVal > DrawingAttributes.MaxWidth)
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (23)
111internal static uint DecodeAsISF(Stream stream, GuidList guidList, uint maximumStreamSize, DrawingAttributes da) 233_size += (double)(sFraction / DrawingAttributes.StylusPrecision); 366double height = DoubleUtil.IsZero(stylusHeight) ? (Double)DrawingAttributes.GetDefaultDrawingAttributeValue(KnownIds.StylusHeight) : stylusHeight; 367double width = DoubleUtil.IsZero(stylusWidth) ? (Double)DrawingAttributes.GetDefaultDrawingAttributeValue(KnownIds.StylusWidth) : stylusWidth; 420Debug.Assert(DrawingAttributes.MaxHeight == DrawingAttributes.MaxWidth && 421DrawingAttributes.MinHeight == DrawingAttributes.MinWidth); 423if (heightOrWidth > DrawingAttributes.MaxHeight) 425return DrawingAttributes.MaxHeight; 427if (heightOrWidth < DrawingAttributes.MinHeight) 429return DrawingAttributes.MinHeight; 446internal static uint EncodeAsISF(DrawingAttributes da, Stream stream, GuidList guidList, byte compressionAlgorithm, bool fTag) 472private static void PersistDrawingFlags(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw) 490private static void PersistColorAndTransparency(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw) 498System.Diagnostics.Debug.Assert(da.Color != (Color)DrawingAttributes.GetDefaultDrawingAttributeValue(KnownIds.Color), "Color was put in the EPC for the default value!"); 523private static void PersistRasterOperation(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw) 555private static void PersistExtendedProperties(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw, byte compressionAlgorithm, bool fTag) 575if (DrawingAttributes.RemoveIdFromExtendedProperties(epcClone[x].Id)) 592private static void PersistStylusTip(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw) 619private static void PersistWidthHeight(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw) 662short sFraction = (size > uIntegral) ? (short)(DrawingAttributes.StylusPrecision * (size - uIntegral) + 0.5f) : (short)(DrawingAttributes.StylusPrecision * (size - uIntegral) - 0.5);
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (12)
317_drawingAttributesTable = new System.Collections.Generic.List<DrawingAttributes>(); 415DrawingAttributes dr = new DrawingAttributes(epc); 610DrawingAttributes activeDrawingAttributes = null; 622DrawingAttributes currDA = (DrawingAttributes)_drawingAttributesTable[(int)drawingAttributesTableIndex]; 839DrawingAttributes attributes = new DrawingAttributes 1685_drawingAttributesTable = new List<DrawingAttributes>(); 2450DrawingAttributes drawingAttributes = _drawingAttributesTable[0]; 2484DrawingAttributes drawingAttributes = _drawingAttributesTable[i]; 2497DrawingAttributes drawingAttributes = _drawingAttributesTable[i]; 2615DrawingAttributes drattrs = _coreStrokes[count].DrawingAttributes; 2678private System.Collections.Generic.List<DrawingAttributes> _drawingAttributesTable = null;
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (1)
51DrawingAttributes drawingAttributes,
MS\Internal\Ink\Renderer.cs (4)
77DrawingAttributes da; 272internal void AttachIncrementalRendering(Visual visual, DrawingAttributes drawingAttributes) 349internal bool AttachedVisualIsPositionedCorrectly(Visual visual, DrawingAttributes drawingAttributes) 644private ContainerVisual GetContainerVisual(DrawingAttributes drawingAttributes)
MS\Internal\Ink\StrokeNodeEnumerator.cs (3)
26internal static StrokeNodeIterator GetIterator(Stroke stroke, DrawingAttributes drawingAttributes) 41internal static StrokeNodeIterator GetIterator(StylusPointCollection stylusPoints, DrawingAttributes drawingAttributes) 84internal StrokeNodeIterator(DrawingAttributes drawingAttributes)
MS\Internal\Ink\StrokeRenderer.cs (5)
30DrawingAttributes drawingAttributes, 200DrawingAttributes drawingAttributes, 1094internal static DrawingAttributes GetHighlighterAttributes(Stroke stroke, DrawingAttributes da) 1099DrawingAttributes copy = stroke.DrawingAttributes.Clone();
MS\Internal\Ink\StylusShape.cs (4)
41if (Double.IsNaN(width) || Double.IsInfinity(width) || width < DrawingAttributes.MinWidth || width > DrawingAttributes.MaxWidth) 46if (Double.IsNaN(height) || Double.IsInfinity(height) || height < DrawingAttributes.MinHeight || height > DrawingAttributes.MaxHeight)
System\Windows\Ink\DrawingAttributes.cs (26)
152Debug.Assert(DrawingAttributes.DefaultHeight == (double)GetDefaultDrawingAttributeValue(KnownIds.StylusHeight)); 153return DrawingAttributes.DefaultHeight; 179Debug.Assert(DrawingAttributes.DefaultWidth == (double)GetDefaultDrawingAttributeValue(KnownIds.StylusWidth)); 180return DrawingAttributes.DefaultWidth; 305DrawingAttributes.ValidateStylusTipTransform(propertyDataId, propertyData); 506DrawingAttributes that = o as DrawingAttributes; 517public static bool operator ==(DrawingAttributes first, DrawingAttributes second) 536public static bool operator !=(DrawingAttributes first, DrawingAttributes second) 547public virtual DrawingAttributes Clone() 555DrawingAttributes clone = (DrawingAttributes)this.MemberwiseClone(); 664return DrawingAttributes.DefaultWidth; 677return DrawingAttributes.DefaultHeight; 737internal static bool GeometricallyEqual(DrawingAttributes left, DrawingAttributes right) 763System.Diagnostics.Debug.Assert(null != DrawingAttributes.GetDefaultDrawingAttributeValue(guid)); 793= DrawingAttributes.GetDefaultDrawingAttributeValue(args.OldProperty.Id); 821= DrawingAttributes.GetDefaultDrawingAttributeValue(args.NewProperty.Id); 848= DrawingAttributes.GetDefaultDrawingAttributeValue(args.NewProperty.Id); 895object defaultValue = DrawingAttributes.GetDefaultDrawingAttributeValue(id); 921object defaultValue = DrawingAttributes.GetDefaultDrawingAttributeValue(id); 939if (null != DrawingAttributes.GetDefaultDrawingAttributeValue(id)) 941return DrawingAttributes.GetDefaultDrawingAttributeValue(id);
System\Windows\Ink\Events.cs (6)
199public DrawingAttributesReplacedEventArgs(DrawingAttributes newDrawingAttributes, DrawingAttributes previousDrawingAttributes) 210public DrawingAttributes NewDrawingAttributes 218public DrawingAttributes PreviousDrawingAttributes 223private DrawingAttributes _newDrawingAttributes; 224private DrawingAttributes _previousDrawingAttributes;
System\Windows\Ink\IncrementalHitTester.cs (3)
818DrawingAttributes da = this.Stroke.DrawingAttributes; 885if(DrawingAttributes.IsGeometricalDaGuid(args.PropertyGuid)) 895if (!DrawingAttributes.GeometricallyEqual(args.NewDrawingAttributes, args.PreviousDrawingAttributes))
System\Windows\Ink\Stroke.cs (8)
34public Stroke(StylusPointCollection stylusPoints, DrawingAttributes drawingAttributes) 45internal Stroke(StylusPointCollection stylusPoints, DrawingAttributes drawingAttributes, ExtendedPropertyCollection extendedProperties) 388DrawingAttributes.ValidateStylusTipTransform(propertyDataId, propertyData); 455public DrawingAttributes DrawingAttributes 470DrawingAttributes previousDa = _drawingAttributes; 477if (!DrawingAttributes.GeometricallyEqual(previousDa, _drawingAttributes)) 1039if (DrawingAttributes.IsGeometricalDaGuid(e.PropertyGuid)) 1096private DrawingAttributes _drawingAttributes = null;
System\Windows\Ink\Stroke2.cs (11)
67public void Draw(DrawingContext drawingContext, DrawingAttributes drawingAttributes) 193if (Double.IsNaN(diameter) || diameter < DrawingAttributes.MinWidth || diameter > DrawingAttributes.MaxWidth) 363protected virtual void DrawCore(DrawingContext drawingContext, DrawingAttributes drawingAttributes) 376DrawingAttributes selectedDA = drawingAttributes.Clone(); 377selectedDA.Height = Math.Max(selectedDA.Height, DrawingAttributes.DefaultHeight); 378selectedDA.Width = Math.Max(selectedDA.Width, DrawingAttributes.DefaultWidth); 445public Geometry GetGeometry(DrawingAttributes drawingAttributes) 449bool geometricallyEqual = DrawingAttributes.GeometricallyEqual(drawingAttributes, this.DrawingAttributes); 496internal void DrawInternal(DrawingContext dc, DrawingAttributes DrawingAttributes, bool drawAsHollow) 666private static void CalcHollowTransforms(DrawingAttributes originalDa, out Matrix innerTransform, out Matrix outerTransform)
System\Windows\Ink\StrokeCollection.cs (1)
152DrawingAttributes.ValidateStylusTipTransform(propertyDataId, propertyData);
System\Windows\Ink\StrokeCollection2.cs (2)
64if (Double.IsNaN(diameter) || diameter < DrawingAttributes.MinWidth || diameter > DrawingAttributes.MaxWidth)
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (5)
34private DrawingAttributes _drawingAttributes; 39public StrokeInfo(DrawingAttributes drawingAttributes, int stylusDeviceId, int startTimestamp, DynamicRendererHostVisual hostVisual) 106public DrawingAttributes DrawingAttributes 1035public DrawingAttributes DrawingAttributes 1171private DrawingAttributes _drawAttrsSource = new DrawingAttributes();
PresentationFramework (22)
MS\Internal\Ink\DrawingAttributesDefaultValueFactory.cs (3)
38DrawingAttributes defaultValue = new DrawingAttributes(); 70DrawingAttributes value = (DrawingAttributes)sender;
MS\Internal\Ink\InkCollectionBehavior.cs (3)
341DrawingAttributes da = this.InkCanvas.DefaultDrawingAttributes; 386private DrawingAttributes _strokeDrawingAttributes; 391private DrawingAttributes _cursorDrawingAttributes;
MS\Internal\Ink\PenCursorManager.cs (4)
41internal static Cursor GetPenCursor(DrawingAttributes drawingAttributes, bool isHollow, bool isRightToLeft, double dpiScaleX, double dpiScaleY) 62DrawingAttributes da = new DrawingAttributes(); 320private static Drawing CreatePenDrawing(DrawingAttributes drawingAttributes, bool isHollow, bool isRightToLeft, double dpiScaleX, double dpiScaleY) 326DrawingAttributes da = new DrawingAttributes
System\Windows\Controls\InkCanvas.cs (9)
710typeof(DrawingAttributes), 721public DrawingAttributes DefaultDrawingAttributes 723get { return (DrawingAttributes)GetValue(DefaultDrawingAttributesProperty); } 731DrawingAttributes oldValue = (DrawingAttributes)e.OldValue; 732DrawingAttributes newValue = (DrawingAttributes)e.NewValue; 2587private void UpdateDynamicRenderer(DrawingAttributes newDrawingAttributes) 2960DrawingAttributes highContrastDa = _thisInkCanvas.DefaultDrawingAttributes.Clone();
System\Windows\Controls\InkPresenter.cs (2)
67public void AttachVisuals(Visual visual, DrawingAttributes drawingAttributes) 337internal bool AttachedVisualIsPositionedCorrectly(Visual visual, DrawingAttributes drawingAttributes)
System\Windows\Controls\StickyNote.cs (1)
1740DrawingAttributes da = new DrawingAttributes();