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)
1172private 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(); 327DrawingAttributes da = new DrawingAttributes
System\Windows\Controls\InkCanvas.cs (1)
2241InkPresenter.AttachVisuals(visual, new DrawingAttributes());
System\Windows\Controls\StickyNote.cs (2)
428(new DrawingAttributes()).Width, 1741DrawingAttributes da = new DrawingAttributes();
140 references to DrawingAttributes
PresentationCore (118)
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (4)
860if ( Double.IsNaN(dVal) || dVal < DrawingAttributes.MinHeight || dVal > DrawingAttributes.MaxHeight) 867if (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 1686_drawingAttributesTable = new List<DrawingAttributes>(); 2451DrawingAttributes drawingAttributes = _drawingAttributesTable[0]; 2485DrawingAttributes drawingAttributes = _drawingAttributesTable[i]; 2498DrawingAttributes drawingAttributes = _drawingAttributesTable[i]; 2616DrawingAttributes drattrs = _coreStrokes[count].DrawingAttributes; 2679private 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, 201DrawingAttributes drawingAttributes, 1095internal static DrawingAttributes GetHighlighterAttributes(Stroke stroke, DrawingAttributes da) 1100DrawingAttributes 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)
819DrawingAttributes da = this.Stroke.DrawingAttributes; 886if(DrawingAttributes.IsGeometricalDaGuid(args.PropertyGuid)) 896if (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) 364protected virtual void DrawCore(DrawingContext drawingContext, DrawingAttributes drawingAttributes) 377DrawingAttributes selectedDA = drawingAttributes.Clone(); 378selectedDA.Height = Math.Max(selectedDA.Height, DrawingAttributes.DefaultHeight); 379selectedDA.Width = Math.Max(selectedDA.Width, DrawingAttributes.DefaultWidth); 446public Geometry GetGeometry(DrawingAttributes drawingAttributes) 450bool geometricallyEqual = DrawingAttributes.GeometricallyEqual(drawingAttributes, this.DrawingAttributes); 497internal void DrawInternal(DrawingContext dc, DrawingAttributes DrawingAttributes, bool drawAsHollow) 667private static void CalcHollowTransforms(DrawingAttributes originalDa, out Matrix innerTransform, out Matrix outerTransform)
System\Windows\Ink\StrokeCollection.cs (1)
153DrawingAttributes.ValidateStylusTipTransform(propertyDataId, propertyData);
System\Windows\Ink\StrokeCollection2.cs (2)
65if (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 1036public DrawingAttributes DrawingAttributes 1172private 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)
342DrawingAttributes da = this.InkCanvas.DefaultDrawingAttributes; 387private DrawingAttributes _strokeDrawingAttributes; 392private 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(); 321private static Drawing CreatePenDrawing(DrawingAttributes drawingAttributes, bool isHollow, bool isRightToLeft, double dpiScaleX, double dpiScaleY) 327DrawingAttributes 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; 2588private void UpdateDynamicRenderer(DrawingAttributes newDrawingAttributes) 2961DrawingAttributes highContrastDa = _thisInkCanvas.DefaultDrawingAttributes.Clone();
System\Windows\Controls\InkPresenter.cs (2)
68public void AttachVisuals(Visual visual, DrawingAttributes drawingAttributes) 338internal bool AttachedVisualIsPositionedCorrectly(Visual visual, DrawingAttributes drawingAttributes)
System\Windows\Controls\StickyNote.cs (1)
1741DrawingAttributes da = new DrawingAttributes();