12 instantiations of DrawingAttributes
PresentationCore (5)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (3)
429DrawingAttributes dr = new DrawingAttributes(epc); 645activeDrawingAttributes = new DrawingAttributes(); 853DrawingAttributes attributes = new DrawingAttributes();
System\Windows\Ink\Stroke.cs (1)
41: this (stylusPoints, new DrawingAttributes(), null)
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (1)
1203private DrawingAttributes _drawAttrsSource = new DrawingAttributes();
PresentationFramework (7)
MS\Internal\Ink\DrawingAttributesDefaultValueFactory.cs (2)
31return new DrawingAttributes(); 41DrawingAttributes defaultValue = new DrawingAttributes();
MS\Internal\Ink\PenCursorManager.cs (2)
68DrawingAttributes da = new DrawingAttributes(); 333DrawingAttributes da = new DrawingAttributes();
System\Windows\Controls\InkCanvas.cs (1)
2237InkPresenter.AttachVisuals(visual, new DrawingAttributes());
System\Windows\Controls\StickyNote.cs (2)
461(new DrawingAttributes()).Width, 1782DrawingAttributes da = new DrawingAttributes();
140 references to DrawingAttributes
PresentationCore (118)
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (4)
876if ( Double.IsNaN(dVal) || dVal < DrawingAttributes.MinHeight || dVal > DrawingAttributes.MaxHeight) 883if (Double.IsNaN(dVal) || dVal < DrawingAttributes.MinWidth || dVal > DrawingAttributes.MaxWidth)
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (23)
122internal static uint DecodeAsISF(Stream stream, GuidList guidList, uint maximumStreamSize, DrawingAttributes da) 244_size += (double)(sFraction / DrawingAttributes.StylusPrecision); 377double height = DoubleUtil.IsZero(stylusHeight) ? (Double)DrawingAttributes.GetDefaultDrawingAttributeValue(KnownIds.StylusHeight) : stylusHeight; 378double width = DoubleUtil.IsZero(stylusWidth) ? (Double)DrawingAttributes.GetDefaultDrawingAttributeValue(KnownIds.StylusWidth) : stylusWidth; 431Debug.Assert(DrawingAttributes.MaxHeight == DrawingAttributes.MaxWidth && 432DrawingAttributes.MinHeight == DrawingAttributes.MinWidth); 434if (heightOrWidth > DrawingAttributes.MaxHeight) 436return DrawingAttributes.MaxHeight; 438if (heightOrWidth < DrawingAttributes.MinHeight) 440return DrawingAttributes.MinHeight; 457internal static uint EncodeAsISF(DrawingAttributes da, Stream stream, GuidList guidList, byte compressionAlgorithm, bool fTag) 483private static void PersistDrawingFlags(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw) 501private static void PersistColorAndTransparency(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw) 509System.Diagnostics.Debug.Assert(da.Color != (Color)DrawingAttributes.GetDefaultDrawingAttributeValue(KnownIds.Color), "Color was put in the EPC for the default value!"); 534private static void PersistRasterOperation(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw) 566private static void PersistExtendedProperties(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw, byte compressionAlgorithm, bool fTag) 586if (DrawingAttributes.RemoveIdFromExtendedProperties(epcClone[x].Id)) 603private static void PersistStylusTip(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw) 630private static void PersistWidthHeight(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw) 673short sFraction = (size > uIntegral) ? (short)(DrawingAttributes.StylusPrecision * (size - uIntegral) + 0.5f) : (short)(DrawingAttributes.StylusPrecision * (size - uIntegral) - 0.5);
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (12)
331_drawingAttributesTable = new System.Collections.Generic.List<DrawingAttributes>(); 429DrawingAttributes dr = new DrawingAttributes(epc); 624DrawingAttributes activeDrawingAttributes = null; 636DrawingAttributes currDA = (DrawingAttributes)_drawingAttributesTable[(int)drawingAttributesTableIndex]; 853DrawingAttributes attributes = new DrawingAttributes(); 1701_drawingAttributesTable = new List<DrawingAttributes>(); 2481DrawingAttributes drawingAttributes = _drawingAttributesTable[0]; 2515DrawingAttributes drawingAttributes = _drawingAttributesTable[i]; 2528DrawingAttributes drawingAttributes = _drawingAttributesTable[i]; 2646DrawingAttributes drattrs = _coreStrokes[count].DrawingAttributes; 2709private System.Collections.Generic.List<DrawingAttributes> _drawingAttributesTable = null;
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (1)
59DrawingAttributes drawingAttributes,
MS\Internal\Ink\Renderer.cs (4)
86DrawingAttributes da; 281internal void AttachIncrementalRendering(Visual visual, DrawingAttributes drawingAttributes) 358internal bool AttachedVisualIsPositionedCorrectly(Visual visual, DrawingAttributes drawingAttributes) 653private ContainerVisual GetContainerVisual(DrawingAttributes drawingAttributes)
MS\Internal\Ink\StrokeNodeEnumerator.cs (3)
34internal static StrokeNodeIterator GetIterator(Stroke stroke, DrawingAttributes drawingAttributes) 49internal static StrokeNodeIterator GetIterator(StylusPointCollection stylusPoints, DrawingAttributes drawingAttributes) 92internal StrokeNodeIterator(DrawingAttributes drawingAttributes)
MS\Internal\Ink\StrokeRenderer.cs (5)
38DrawingAttributes drawingAttributes, 206DrawingAttributes drawingAttributes, 1098internal static DrawingAttributes GetHighlighterAttributes(Stroke stroke, DrawingAttributes da) 1103DrawingAttributes copy = stroke.DrawingAttributes.Clone();
MS\Internal\Ink\StylusShape.cs (4)
49if (Double.IsNaN(width) || Double.IsInfinity(width) || width < DrawingAttributes.MinWidth || width > DrawingAttributes.MaxWidth) 54if (Double.IsNaN(height) || Double.IsInfinity(height) || height < DrawingAttributes.MinHeight || height > DrawingAttributes.MaxHeight)
System\Windows\Ink\DrawingAttributes.cs (26)
164Debug.Assert(DrawingAttributes.DefaultHeight == (double)GetDefaultDrawingAttributeValue(KnownIds.StylusHeight)); 165return DrawingAttributes.DefaultHeight; 191Debug.Assert(DrawingAttributes.DefaultWidth == (double)GetDefaultDrawingAttributeValue(KnownIds.StylusWidth)); 192return DrawingAttributes.DefaultWidth; 317DrawingAttributes.ValidateStylusTipTransform(propertyDataId, propertyData); 518DrawingAttributes that = o as DrawingAttributes; 529public static bool operator ==(DrawingAttributes first, DrawingAttributes second) 548public static bool operator !=(DrawingAttributes first, DrawingAttributes second) 559public virtual DrawingAttributes Clone() 567DrawingAttributes clone = (DrawingAttributes)this.MemberwiseClone(); 676return DrawingAttributes.DefaultWidth; 689return DrawingAttributes.DefaultHeight; 749internal static bool GeometricallyEqual(DrawingAttributes left, DrawingAttributes right) 775System.Diagnostics.Debug.Assert(null != DrawingAttributes.GetDefaultDrawingAttributeValue(guid)); 805= DrawingAttributes.GetDefaultDrawingAttributeValue(args.OldProperty.Id); 833= DrawingAttributes.GetDefaultDrawingAttributeValue(args.NewProperty.Id); 860= DrawingAttributes.GetDefaultDrawingAttributeValue(args.NewProperty.Id); 907object defaultValue = DrawingAttributes.GetDefaultDrawingAttributeValue(id); 933object defaultValue = DrawingAttributes.GetDefaultDrawingAttributeValue(id); 951if (null != DrawingAttributes.GetDefaultDrawingAttributeValue(id)) 953return DrawingAttributes.GetDefaultDrawingAttributeValue(id);
System\Windows\Ink\Events.cs (6)
206public DrawingAttributesReplacedEventArgs(DrawingAttributes newDrawingAttributes, DrawingAttributes previousDrawingAttributes) 217public DrawingAttributes NewDrawingAttributes 225public DrawingAttributes PreviousDrawingAttributes 230private DrawingAttributes _newDrawingAttributes; 231private DrawingAttributes _previousDrawingAttributes;
System\Windows\Ink\IncrementalHitTester.cs (3)
831DrawingAttributes da = this.Stroke.DrawingAttributes; 898if(DrawingAttributes.IsGeometricalDaGuid(args.PropertyGuid)) 908if (false == DrawingAttributes.GeometricallyEqual(args.NewDrawingAttributes, args.PreviousDrawingAttributes))
System\Windows\Ink\Stroke.cs (8)
50public Stroke(StylusPointCollection stylusPoints, DrawingAttributes drawingAttributes) 61internal Stroke(StylusPointCollection stylusPoints, DrawingAttributes drawingAttributes, ExtendedPropertyCollection extendedProperties) 404DrawingAttributes.ValidateStylusTipTransform(propertyDataId, propertyData); 471public DrawingAttributes DrawingAttributes 486DrawingAttributes previousDa = _drawingAttributes; 493if (false == DrawingAttributes.GeometricallyEqual(previousDa, _drawingAttributes)) 1055if (DrawingAttributes.IsGeometricalDaGuid(e.PropertyGuid) == true) 1112private DrawingAttributes _drawingAttributes = null;
System\Windows\Ink\Stroke2.cs (11)
77public void Draw(DrawingContext drawingContext, DrawingAttributes drawingAttributes) 203if (Double.IsNaN(diameter) || diameter < DrawingAttributes.MinWidth || diameter > DrawingAttributes.MaxWidth) 379protected virtual void DrawCore(DrawingContext drawingContext, DrawingAttributes drawingAttributes) 392DrawingAttributes selectedDA = drawingAttributes.Clone(); 393selectedDA.Height = Math.Max(selectedDA.Height, DrawingAttributes.DefaultHeight); 394selectedDA.Width = Math.Max(selectedDA.Width, DrawingAttributes.DefaultWidth); 461public Geometry GetGeometry(DrawingAttributes drawingAttributes) 465bool geometricallyEqual = DrawingAttributes.GeometricallyEqual(drawingAttributes, this.DrawingAttributes); 512internal void DrawInternal(DrawingContext dc, DrawingAttributes DrawingAttributes, bool drawAsHollow) 682private static void CalcHollowTransforms(DrawingAttributes originalDa, out Matrix innerTransform, out Matrix outerTransform)
System\Windows\Ink\StrokeCollection.cs (1)
163DrawingAttributes.ValidateStylusTipTransform(propertyDataId, propertyData);
System\Windows\Ink\StrokeCollection2.cs (2)
76if (Double.IsNaN(diameter) || diameter < DrawingAttributes.MinWidth || diameter > DrawingAttributes.MaxWidth)
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (5)
49DrawingAttributes _drawingAttributes; 54public StrokeInfo(DrawingAttributes drawingAttributes, int stylusDeviceId, int startTimestamp, DynamicRendererHostVisual hostVisual) 121public DrawingAttributes DrawingAttributes 1064public DrawingAttributes DrawingAttributes 1203private DrawingAttributes _drawAttrsSource = new DrawingAttributes();
PresentationFramework (22)
MS\Internal\Ink\DrawingAttributesDefaultValueFactory.cs (3)
41DrawingAttributes defaultValue = new DrawingAttributes(); 73DrawingAttributes value = (DrawingAttributes)sender;
MS\Internal\Ink\InkCollectionBehavior.cs (3)
352DrawingAttributes da = this.InkCanvas.DefaultDrawingAttributes; 397private DrawingAttributes _strokeDrawingAttributes; 402private DrawingAttributes _cursorDrawingAttributes;
MS\Internal\Ink\PenCursorManager.cs (4)
47internal static Cursor GetPenCursor(DrawingAttributes drawingAttributes, bool isHollow, bool isRightToLeft, double dpiScaleX, double dpiScaleY) 68DrawingAttributes da = new DrawingAttributes(); 327private static Drawing CreatePenDrawing(DrawingAttributes drawingAttributes, bool isHollow, bool isRightToLeft, double dpiScaleX, double dpiScaleY) 333DrawingAttributes da = new DrawingAttributes();
System\Windows\Controls\InkCanvas.cs (9)
711typeof(DrawingAttributes), 722public DrawingAttributes DefaultDrawingAttributes 724get { return (DrawingAttributes)GetValue(DefaultDrawingAttributesProperty); } 732DrawingAttributes oldValue = (DrawingAttributes)e.OldValue; 733DrawingAttributes newValue = (DrawingAttributes)e.NewValue; 2584private void UpdateDynamicRenderer(DrawingAttributes newDrawingAttributes) 2957DrawingAttributes highContrastDa = _thisInkCanvas.DefaultDrawingAttributes.Clone();
System\Windows\Controls\InkPresenter.cs (2)
75public void AttachVisuals(Visual visual, DrawingAttributes drawingAttributes) 348internal bool AttachedVisualIsPositionedCorrectly(Visual visual, DrawingAttributes drawingAttributes)
System\Windows\Controls\StickyNote.cs (1)
1782DrawingAttributes da = new DrawingAttributes();