11 instantiations of DrawingAttributes
PresentationCore (4)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (3)
439DrawingAttributes dr = new DrawingAttributes(epc); 655activeDrawingAttributes = new DrawingAttributes(); 867DrawingAttributes attributes = new DrawingAttributes();
Core\CSharp\System\Windows\Ink\Stroke.cs (1)
42: this (stylusPoints, new DrawingAttributes(), null)
PresentationFramework (7)
src\Framework\MS\Internal\Ink\DrawingAttributesDefaultValueFactory.cs (2)
36return new DrawingAttributes(); 46DrawingAttributes defaultValue = new DrawingAttributes();
src\Framework\MS\Internal\Ink\PenCursorManager.cs (2)
75DrawingAttributes da = new DrawingAttributes(); 358DrawingAttributes da = new DrawingAttributes();
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
2362InkPresenter.AttachVisuals(visual, new DrawingAttributes());
src\Framework\System\Windows\Controls\StickyNote.cs (2)
471(new DrawingAttributes()).Width, 1819DrawingAttributes da = new DrawingAttributes();
135 references to DrawingAttributes
PresentationCore (113)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (4)
914if ( Double.IsNaN(dVal) || dVal < DrawingAttributes.MinHeight || dVal > DrawingAttributes.MaxHeight) 921if (Double.IsNaN(dVal) || dVal < DrawingAttributes.MinWidth || dVal > DrawingAttributes.MaxWidth)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (23)
132internal static uint DecodeAsISF(Stream stream, GuidList guidList, uint maximumStreamSize, DrawingAttributes da) 254_size += (double)(sFraction / DrawingAttributes.StylusPrecision); 387double height = DoubleUtil.IsZero(stylusHeight) ? (Double)DrawingAttributes.GetDefaultDrawingAttributeValue(KnownIds.StylusHeight) : stylusHeight; 388double width = DoubleUtil.IsZero(stylusWidth) ? (Double)DrawingAttributes.GetDefaultDrawingAttributeValue(KnownIds.StylusWidth) : stylusWidth; 441Debug.Assert(DrawingAttributes.MaxHeight == DrawingAttributes.MaxWidth && 442DrawingAttributes.MinHeight == DrawingAttributes.MinWidth); 444if (heightOrWidth > DrawingAttributes.MaxHeight) 446return DrawingAttributes.MaxHeight; 448if (heightOrWidth < DrawingAttributes.MinHeight) 450return DrawingAttributes.MinHeight; 478internal static uint EncodeAsISF(DrawingAttributes da, Stream stream, GuidList guidList, byte compressionAlgorithm, bool fTag) 504private static void PersistDrawingFlags(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw) 522private static void PersistColorAndTransparency(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw) 530System.Diagnostics.Debug.Assert(da.Color != (Color)DrawingAttributes.GetDefaultDrawingAttributeValue(KnownIds.Color), "Color was put in the EPC for the default value!"); 555private static void PersistRasterOperation(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw) 596private static void PersistExtendedProperties(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw, byte compressionAlgorithm, bool fTag) 616if (DrawingAttributes.RemoveIdFromExtendedProperties(epcClone[x].Id)) 642private static void PersistStylusTip(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw) 669private static void PersistWidthHeight(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw) 712short sFraction = (size > uIntegral) ? (short)(DrawingAttributes.StylusPrecision * (size - uIntegral) + 0.5f) : (short)(DrawingAttributes.StylusPrecision * (size - uIntegral) - 0.5);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (12)
341_drawingAttributesTable = new System.Collections.Generic.List<DrawingAttributes>(); 439DrawingAttributes dr = new DrawingAttributes(epc); 634DrawingAttributes activeDrawingAttributes = null; 646DrawingAttributes currDA = (DrawingAttributes)_drawingAttributesTable[(int)drawingAttributesTableIndex]; 867DrawingAttributes attributes = new DrawingAttributes(); 1732_drawingAttributesTable = new List<DrawingAttributes>(); 2542DrawingAttributes drawingAttributes = _drawingAttributesTable[0]; 2576DrawingAttributes drawingAttributes = _drawingAttributesTable[i]; 2589DrawingAttributes drawingAttributes = _drawingAttributesTable[i]; 2707DrawingAttributes drattrs = _coreStrokes[count].DrawingAttributes; 2770private System.Collections.Generic.List<DrawingAttributes> _drawingAttributesTable = null;
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (1)
68DrawingAttributes drawingAttributes,
Core\CSharp\MS\Internal\Ink\Renderer.cs (4)
91DrawingAttributes da; 290internal void AttachIncrementalRendering(Visual visual, DrawingAttributes drawingAttributes) 376internal bool AttachedVisualIsPositionedCorrectly(Visual visual, DrawingAttributes drawingAttributes) 671private ContainerVisual GetContainerVisual(DrawingAttributes drawingAttributes)
Core\CSharp\MS\Internal\Ink\StrokeNodeEnumerator.cs (3)
36internal static StrokeNodeIterator GetIterator(Stroke stroke, DrawingAttributes drawingAttributes) 57internal static StrokeNodeIterator GetIterator(StylusPointCollection stylusPoints, DrawingAttributes drawingAttributes) 106internal StrokeNodeIterator(DrawingAttributes drawingAttributes)
Core\CSharp\MS\Internal\Ink\StrokeRenderer.cs (5)
41DrawingAttributes drawingAttributes, 210DrawingAttributes drawingAttributes, 1111internal static DrawingAttributes GetHighlighterAttributes(Stroke stroke, DrawingAttributes da) 1116DrawingAttributes copy = stroke.DrawingAttributes.Clone();
Core\CSharp\MS\Internal\Ink\StylusShape.cs (4)
51if (Double.IsNaN(width) || Double.IsInfinity(width) || width < DrawingAttributes.MinWidth || width > DrawingAttributes.MaxWidth) 56if (Double.IsNaN(height) || Double.IsInfinity(height) || height < DrawingAttributes.MinHeight || height > DrawingAttributes.MaxHeight)
Core\CSharp\System\Windows\Ink\DrawingAttributes.cs (26)
166Debug.Assert(DrawingAttributes.DefaultHeight == (double)GetDefaultDrawingAttributeValue(KnownIds.StylusHeight)); 167return DrawingAttributes.DefaultHeight; 193Debug.Assert(DrawingAttributes.DefaultWidth == (double)GetDefaultDrawingAttributeValue(KnownIds.StylusWidth)); 194return DrawingAttributes.DefaultWidth; 319DrawingAttributes.ValidateStylusTipTransform(propertyDataId, propertyData); 520DrawingAttributes that = o as DrawingAttributes; 531public static bool operator ==(DrawingAttributes first, DrawingAttributes second) 550public static bool operator !=(DrawingAttributes first, DrawingAttributes second) 561public virtual DrawingAttributes Clone() 569DrawingAttributes clone = (DrawingAttributes)this.MemberwiseClone(); 678return DrawingAttributes.DefaultWidth; 691return DrawingAttributes.DefaultHeight; 753internal static bool GeometricallyEqual(DrawingAttributes left, DrawingAttributes right) 780System.Diagnostics.Debug.Assert(null != DrawingAttributes.GetDefaultDrawingAttributeValue(guid)); 810= DrawingAttributes.GetDefaultDrawingAttributeValue(args.OldProperty.Id); 839= DrawingAttributes.GetDefaultDrawingAttributeValue(args.NewProperty.Id); 867= DrawingAttributes.GetDefaultDrawingAttributeValue(args.NewProperty.Id); 914object defaultValue = DrawingAttributes.GetDefaultDrawingAttributeValue(id); 940object defaultValue = DrawingAttributes.GetDefaultDrawingAttributeValue(id); 958if (null != DrawingAttributes.GetDefaultDrawingAttributeValue(id)) 960return DrawingAttributes.GetDefaultDrawingAttributeValue(id);
Core\CSharp\System\Windows\Ink\Events.cs (6)
204public DrawingAttributesReplacedEventArgs(DrawingAttributes newDrawingAttributes, DrawingAttributes previousDrawingAttributes) 221public DrawingAttributes NewDrawingAttributes 229public DrawingAttributes PreviousDrawingAttributes 234private DrawingAttributes _newDrawingAttributes; 235private DrawingAttributes _previousDrawingAttributes;
Core\CSharp\System\Windows\Ink\IncrementalHitTester.cs (3)
842DrawingAttributes da = this.Stroke.DrawingAttributes; 909if(DrawingAttributes.IsGeometricalDaGuid(args.PropertyGuid)) 919if (false == DrawingAttributes.GeometricallyEqual(args.NewDrawingAttributes, args.PreviousDrawingAttributes))
Core\CSharp\System\Windows\Ink\Stroke.cs (8)
51public Stroke(StylusPointCollection stylusPoints, DrawingAttributes drawingAttributes) 62internal Stroke(StylusPointCollection stylusPoints, DrawingAttributes drawingAttributes, ExtendedPropertyCollection extendedProperties) 412DrawingAttributes.ValidateStylusTipTransform(propertyDataId, propertyData); 479public DrawingAttributes DrawingAttributes 497DrawingAttributes previousDa = _drawingAttributes; 504if (false == DrawingAttributes.GeometricallyEqual(previousDa, _drawingAttributes)) 1076if (DrawingAttributes.IsGeometricalDaGuid(e.PropertyGuid) == true) 1133private DrawingAttributes _drawingAttributes = null;
Core\CSharp\System\Windows\Ink\Stroke2.cs (11)
80public void Draw(DrawingContext drawingContext, DrawingAttributes drawingAttributes) 224if (Double.IsNaN(diameter) || diameter < DrawingAttributes.MinWidth || diameter > DrawingAttributes.MaxWidth) 410protected virtual void DrawCore(DrawingContext drawingContext, DrawingAttributes drawingAttributes) 430DrawingAttributes selectedDA = drawingAttributes.Clone(); 431selectedDA.Height = Math.Max(selectedDA.Height, DrawingAttributes.DefaultHeight); 432selectedDA.Width = Math.Max(selectedDA.Width, DrawingAttributes.DefaultWidth); 499public Geometry GetGeometry(DrawingAttributes drawingAttributes) 506bool geometricallyEqual = DrawingAttributes.GeometricallyEqual(drawingAttributes, this.DrawingAttributes); 554internal void DrawInternal(DrawingContext dc, DrawingAttributes DrawingAttributes, bool drawAsHollow) 725private static void CalcHollowTransforms(DrawingAttributes originalDa, out Matrix innerTransform, out Matrix outerTransform)
Core\CSharp\System\Windows\Ink\StrokeCollection.cs (1)
175DrawingAttributes.ValidateStylusTipTransform(propertyDataId, propertyData);
Core\CSharp\System\Windows\Ink\StrokeCollection2.cs (2)
79if (Double.IsNaN(diameter) || diameter < DrawingAttributes.MinWidth || diameter > DrawingAttributes.MaxWidth)
PresentationFramework (22)
src\Framework\MS\Internal\Ink\DrawingAttributesDefaultValueFactory.cs (3)
46DrawingAttributes defaultValue = new DrawingAttributes(); 78DrawingAttributes value = (DrawingAttributes)sender;
src\Framework\MS\Internal\Ink\InkCollectionBehavior.cs (3)
404DrawingAttributes da = this.InkCanvas.DefaultDrawingAttributes; 459private DrawingAttributes _strokeDrawingAttributes; 464private DrawingAttributes _cursorDrawingAttributes;
src\Framework\MS\Internal\Ink\PenCursorManager.cs (4)
54internal static Cursor GetPenCursor(DrawingAttributes drawingAttributes, bool isHollow, bool isRightToLeft, double dpiScaleX, double dpiScaleY) 75DrawingAttributes da = new DrawingAttributes(); 352private static Drawing CreatePenDrawing(DrawingAttributes drawingAttributes, bool isHollow, bool isRightToLeft, double dpiScaleX, double dpiScaleY) 358DrawingAttributes da = new DrawingAttributes();
src\Framework\System\Windows\Controls\InkCanvas.cs (9)
724typeof(DrawingAttributes), 735public DrawingAttributes DefaultDrawingAttributes 737get { return (DrawingAttributes)GetValue(DefaultDrawingAttributesProperty); } 745DrawingAttributes oldValue = (DrawingAttributes)e.OldValue; 746DrawingAttributes newValue = (DrawingAttributes)e.NewValue; 2724private void UpdateDynamicRenderer(DrawingAttributes newDrawingAttributes) 3104DrawingAttributes highContrastDa = _thisInkCanvas.DefaultDrawingAttributes.Clone();
src\Framework\System\Windows\Controls\InkPresenter.cs (2)
83public void AttachVisuals(Visual visual, DrawingAttributes drawingAttributes) 356internal bool AttachedVisualIsPositionedCorrectly(Visual visual, DrawingAttributes drawingAttributes)
src\Framework\System\Windows\Controls\StickyNote.cs (1)
1819DrawingAttributes da = new DrawingAttributes();