12 instantiations of DrawingAttributes
PresentationCore (5)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (3)
416DrawingAttributes dr = new DrawingAttributes(epc); 632activeDrawingAttributes = new DrawingAttributes(); 840DrawingAttributes attributes = new DrawingAttributes();
System\Windows\Ink\Stroke.cs (1)
26: this (stylusPoints, new DrawingAttributes(), null)
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (1)
1189private DrawingAttributes _drawAttrsSource = new DrawingAttributes();
PresentationFramework (7)
MS\Internal\Ink\DrawingAttributesDefaultValueFactory.cs (2)
29return new DrawingAttributes(); 39DrawingAttributes defaultValue = new DrawingAttributes();
MS\Internal\Ink\PenCursorManager.cs (2)
63DrawingAttributes da = new DrawingAttributes(); 328DrawingAttributes da = new DrawingAttributes();
System\Windows\Controls\InkCanvas.cs (1)
2225InkPresenter.AttachVisuals(visual, new DrawingAttributes());
System\Windows\Controls\StickyNote.cs (2)
445(new DrawingAttributes()).Width, 1766DrawingAttributes da = new DrawingAttributes();
140 references to DrawingAttributes
PresentationCore (118)
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (4)
864if ( Double.IsNaN(dVal) || dVal < DrawingAttributes.MinHeight || dVal > DrawingAttributes.MaxHeight) 871if (Double.IsNaN(dVal) || dVal < DrawingAttributes.MinWidth || dVal > DrawingAttributes.MaxWidth)
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (23)
112internal static uint DecodeAsISF(Stream stream, GuidList guidList, uint maximumStreamSize, DrawingAttributes da) 234_size += (double)(sFraction / DrawingAttributes.StylusPrecision); 367double height = DoubleUtil.IsZero(stylusHeight) ? (Double)DrawingAttributes.GetDefaultDrawingAttributeValue(KnownIds.StylusHeight) : stylusHeight; 368double width = DoubleUtil.IsZero(stylusWidth) ? (Double)DrawingAttributes.GetDefaultDrawingAttributeValue(KnownIds.StylusWidth) : stylusWidth; 421Debug.Assert(DrawingAttributes.MaxHeight == DrawingAttributes.MaxWidth && 422DrawingAttributes.MinHeight == DrawingAttributes.MinWidth); 424if (heightOrWidth > DrawingAttributes.MaxHeight) 426return DrawingAttributes.MaxHeight; 428if (heightOrWidth < DrawingAttributes.MinHeight) 430return DrawingAttributes.MinHeight; 447internal static uint EncodeAsISF(DrawingAttributes da, Stream stream, GuidList guidList, byte compressionAlgorithm, bool fTag) 473private static void PersistDrawingFlags(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw) 491private static void PersistColorAndTransparency(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw) 499System.Diagnostics.Debug.Assert(da.Color != (Color)DrawingAttributes.GetDefaultDrawingAttributeValue(KnownIds.Color), "Color was put in the EPC for the default value!"); 524private static void PersistRasterOperation(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw) 556private static void PersistExtendedProperties(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw, byte compressionAlgorithm, bool fTag) 576if (DrawingAttributes.RemoveIdFromExtendedProperties(epcClone[x].Id)) 593private static void PersistStylusTip(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw) 620private static void PersistWidthHeight(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw) 663short sFraction = (size > uIntegral) ? (short)(DrawingAttributes.StylusPrecision * (size - uIntegral) + 0.5f) : (short)(DrawingAttributes.StylusPrecision * (size - uIntegral) - 0.5);
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (12)
318_drawingAttributesTable = new System.Collections.Generic.List<DrawingAttributes>(); 416DrawingAttributes dr = new DrawingAttributes(epc); 611DrawingAttributes activeDrawingAttributes = null; 623DrawingAttributes currDA = (DrawingAttributes)_drawingAttributesTable[(int)drawingAttributesTableIndex]; 840DrawingAttributes attributes = new DrawingAttributes(); 1688_drawingAttributesTable = new List<DrawingAttributes>(); 2468DrawingAttributes drawingAttributes = _drawingAttributesTable[0]; 2502DrawingAttributes drawingAttributes = _drawingAttributesTable[i]; 2515DrawingAttributes drawingAttributes = _drawingAttributesTable[i]; 2633DrawingAttributes drattrs = _coreStrokes[count].DrawingAttributes; 2696private System.Collections.Generic.List<DrawingAttributes> _drawingAttributesTable = null;
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (1)
52DrawingAttributes drawingAttributes,
MS\Internal\Ink\Renderer.cs (4)
78DrawingAttributes da; 273internal void AttachIncrementalRendering(Visual visual, DrawingAttributes drawingAttributes) 350internal bool AttachedVisualIsPositionedCorrectly(Visual visual, DrawingAttributes drawingAttributes) 645private ContainerVisual GetContainerVisual(DrawingAttributes drawingAttributes)
MS\Internal\Ink\StrokeNodeEnumerator.cs (3)
27internal static StrokeNodeIterator GetIterator(Stroke stroke, DrawingAttributes drawingAttributes) 42internal static StrokeNodeIterator GetIterator(StylusPointCollection stylusPoints, DrawingAttributes drawingAttributes) 85internal StrokeNodeIterator(DrawingAttributes drawingAttributes)
MS\Internal\Ink\StrokeRenderer.cs (5)
31DrawingAttributes drawingAttributes, 199DrawingAttributes drawingAttributes, 1091internal static DrawingAttributes GetHighlighterAttributes(Stroke stroke, DrawingAttributes da) 1096DrawingAttributes copy = stroke.DrawingAttributes.Clone();
MS\Internal\Ink\StylusShape.cs (4)
42if (Double.IsNaN(width) || Double.IsInfinity(width) || width < DrawingAttributes.MinWidth || width > DrawingAttributes.MaxWidth) 47if (Double.IsNaN(height) || Double.IsInfinity(height) || height < DrawingAttributes.MinHeight || height > DrawingAttributes.MaxHeight)
System\Windows\Ink\DrawingAttributes.cs (26)
153Debug.Assert(DrawingAttributes.DefaultHeight == (double)GetDefaultDrawingAttributeValue(KnownIds.StylusHeight)); 154return DrawingAttributes.DefaultHeight; 180Debug.Assert(DrawingAttributes.DefaultWidth == (double)GetDefaultDrawingAttributeValue(KnownIds.StylusWidth)); 181return DrawingAttributes.DefaultWidth; 306DrawingAttributes.ValidateStylusTipTransform(propertyDataId, propertyData); 507DrawingAttributes that = o as DrawingAttributes; 518public static bool operator ==(DrawingAttributes first, DrawingAttributes second) 537public static bool operator !=(DrawingAttributes first, DrawingAttributes second) 548public virtual DrawingAttributes Clone() 556DrawingAttributes clone = (DrawingAttributes)this.MemberwiseClone(); 665return DrawingAttributes.DefaultWidth; 678return DrawingAttributes.DefaultHeight; 738internal static bool GeometricallyEqual(DrawingAttributes left, DrawingAttributes right) 764System.Diagnostics.Debug.Assert(null != DrawingAttributes.GetDefaultDrawingAttributeValue(guid)); 794= DrawingAttributes.GetDefaultDrawingAttributeValue(args.OldProperty.Id); 822= DrawingAttributes.GetDefaultDrawingAttributeValue(args.NewProperty.Id); 849= DrawingAttributes.GetDefaultDrawingAttributeValue(args.NewProperty.Id); 896object defaultValue = DrawingAttributes.GetDefaultDrawingAttributeValue(id); 922object defaultValue = DrawingAttributes.GetDefaultDrawingAttributeValue(id); 940if (null != DrawingAttributes.GetDefaultDrawingAttributeValue(id)) 942return DrawingAttributes.GetDefaultDrawingAttributeValue(id);
System\Windows\Ink\Events.cs (6)
200public DrawingAttributesReplacedEventArgs(DrawingAttributes newDrawingAttributes, DrawingAttributes previousDrawingAttributes) 211public DrawingAttributes NewDrawingAttributes 219public DrawingAttributes PreviousDrawingAttributes 224private DrawingAttributes _newDrawingAttributes; 225private DrawingAttributes _previousDrawingAttributes;
System\Windows\Ink\IncrementalHitTester.cs (3)
822DrawingAttributes da = this.Stroke.DrawingAttributes; 889if(DrawingAttributes.IsGeometricalDaGuid(args.PropertyGuid)) 899if (false == DrawingAttributes.GeometricallyEqual(args.NewDrawingAttributes, args.PreviousDrawingAttributes))
System\Windows\Ink\Stroke.cs (8)
35public Stroke(StylusPointCollection stylusPoints, DrawingAttributes drawingAttributes) 46internal Stroke(StylusPointCollection stylusPoints, DrawingAttributes drawingAttributes, ExtendedPropertyCollection extendedProperties) 389DrawingAttributes.ValidateStylusTipTransform(propertyDataId, propertyData); 456public DrawingAttributes DrawingAttributes 471DrawingAttributes previousDa = _drawingAttributes; 478if (false == DrawingAttributes.GeometricallyEqual(previousDa, _drawingAttributes)) 1040if (DrawingAttributes.IsGeometricalDaGuid(e.PropertyGuid) == true) 1097private DrawingAttributes _drawingAttributes = null;
System\Windows\Ink\Stroke2.cs (11)
68public void Draw(DrawingContext drawingContext, DrawingAttributes drawingAttributes) 194if (Double.IsNaN(diameter) || diameter < DrawingAttributes.MinWidth || diameter > DrawingAttributes.MaxWidth) 370protected virtual void DrawCore(DrawingContext drawingContext, DrawingAttributes drawingAttributes) 383DrawingAttributes selectedDA = drawingAttributes.Clone(); 384selectedDA.Height = Math.Max(selectedDA.Height, DrawingAttributes.DefaultHeight); 385selectedDA.Width = Math.Max(selectedDA.Width, DrawingAttributes.DefaultWidth); 452public Geometry GetGeometry(DrawingAttributes drawingAttributes) 456bool geometricallyEqual = DrawingAttributes.GeometricallyEqual(drawingAttributes, this.DrawingAttributes); 503internal void DrawInternal(DrawingContext dc, DrawingAttributes DrawingAttributes, bool drawAsHollow) 673private static void CalcHollowTransforms(DrawingAttributes originalDa, out Matrix innerTransform, out Matrix outerTransform)
System\Windows\Ink\StrokeCollection.cs (1)
151DrawingAttributes.ValidateStylusTipTransform(propertyDataId, propertyData);
System\Windows\Ink\StrokeCollection2.cs (2)
69if (Double.IsNaN(diameter) || diameter < DrawingAttributes.MinWidth || diameter > DrawingAttributes.MaxWidth)
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (5)
35DrawingAttributes _drawingAttributes; 40public StrokeInfo(DrawingAttributes drawingAttributes, int stylusDeviceId, int startTimestamp, DynamicRendererHostVisual hostVisual) 107public DrawingAttributes DrawingAttributes 1050public DrawingAttributes DrawingAttributes 1189private DrawingAttributes _drawAttrsSource = new DrawingAttributes();
PresentationFramework (22)
MS\Internal\Ink\DrawingAttributesDefaultValueFactory.cs (3)
39DrawingAttributes defaultValue = new DrawingAttributes(); 71DrawingAttributes value = (DrawingAttributes)sender;
MS\Internal\Ink\InkCollectionBehavior.cs (3)
343DrawingAttributes da = this.InkCanvas.DefaultDrawingAttributes; 388private DrawingAttributes _strokeDrawingAttributes; 393private DrawingAttributes _cursorDrawingAttributes;
MS\Internal\Ink\PenCursorManager.cs (4)
42internal static Cursor GetPenCursor(DrawingAttributes drawingAttributes, bool isHollow, bool isRightToLeft, double dpiScaleX, double dpiScaleY) 63DrawingAttributes da = new DrawingAttributes(); 322private static Drawing CreatePenDrawing(DrawingAttributes drawingAttributes, bool isHollow, bool isRightToLeft, double dpiScaleX, double dpiScaleY) 328DrawingAttributes da = new DrawingAttributes();
System\Windows\Controls\InkCanvas.cs (9)
699typeof(DrawingAttributes), 710public DrawingAttributes DefaultDrawingAttributes 712get { return (DrawingAttributes)GetValue(DefaultDrawingAttributesProperty); } 720DrawingAttributes oldValue = (DrawingAttributes)e.OldValue; 721DrawingAttributes newValue = (DrawingAttributes)e.NewValue; 2572private void UpdateDynamicRenderer(DrawingAttributes newDrawingAttributes) 2945DrawingAttributes highContrastDa = _thisInkCanvas.DefaultDrawingAttributes.Clone();
System\Windows\Controls\InkPresenter.cs (2)
68public void AttachVisuals(Visual visual, DrawingAttributes drawingAttributes) 341internal bool AttachedVisualIsPositionedCorrectly(Visual visual, DrawingAttributes drawingAttributes)
System\Windows\Controls\StickyNote.cs (1)
1766DrawingAttributes da = new DrawingAttributes();