57 references to DrawingAttributes
PresentationCore (42)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (2)
2151Guid[] guids = ExtendedPropertySerializer.GetUnknownGuids(stroke.DrawingAttributes.ExtendedProperties, out count); 2616DrawingAttributes drattrs = _coreStrokes[count].DrawingAttributes;
MS\Internal\Ink\Renderer.cs (16)
48_cachedColor = stroke.DrawingAttributes.Color; 49_cachedIsHighlighter = stroke.DrawingAttributes.IsHighlighter; 72if (highContrast == true && _stroke.DrawingAttributes.IsHighlighter) 81da = _stroke.DrawingAttributes.Clone(); 84else if (_stroke.DrawingAttributes.IsHighlighter == true) 88da = StrokeRenderer.GetHighlighterAttributes(_stroke, _stroke.DrawingAttributes); 93da = _stroke.DrawingAttributes; 489if (visual.CachedIsHighlighter != stroke.DrawingAttributes.IsHighlighter || 490(stroke.DrawingAttributes.IsHighlighter && 491StrokeRenderer.GetHighlighterColor(visual.CachedColor) != StrokeRenderer.GetHighlighterColor(stroke.DrawingAttributes.Color))) 498visual.CachedIsHighlighter = stroke.DrawingAttributes.IsHighlighter; 499visual.CachedColor = stroke.DrawingAttributes.Color; 528if (visual.Stroke.DrawingAttributes.IsHighlighter) 531ContainerVisual parent = GetContainerVisual(visual.Stroke.DrawingAttributes); 576if ((stroke.DrawingAttributes.IsHighlighter == false) 590ContainerVisual parent = GetContainerVisual(visual.Stroke.DrawingAttributes);
MS\Internal\Ink\StrokeRenderer.cs (1)
1100DrawingAttributes copy = stroke.DrawingAttributes.Clone();
System\Windows\Ink\IncrementalHitTester.cs (3)
539(_erasingStroke.EraseTest(StrokeNodeIterator.GetIterator(strokeInfo.Stroke, strokeInfo.Stroke.DrawingAttributes), eraseAt) == false)) 757if (_stroke.DrawingAttributes.FitToCurve) 822DrawingAttributes da = this.Stroke.DrawingAttributes;
System\Windows\Ink\Stroke.cs (6)
220DrawingAttributes.FittingError)) 227StylusShape stylusShape = this.DrawingAttributes.StylusShape; 739if (this.DrawingAttributes.FitToCurve) 795if (this.DrawingAttributes.FitToCurve) 954if (stroke.DrawingAttributes.FitToCurve) 960stroke.DrawingAttributes.FitToCurve = false;
System\Windows\Ink\Stroke2.cs (8)
34StrokeNodeIterator iterator = StrokeNodeIterator.GetIterator(this, this.DrawingAttributes); 58this.Draw(context, this.DrawingAttributes); 84this.DrawInternal(drawingContext, StrokeRenderer.GetHighlighterAttributes(this, this.DrawingAttributes), false); 336return erasingStroke.HitTest(StrokeNodeIterator.GetIterator(this, this.DrawingAttributes)); 444return GetGeometry(this.DrawingAttributes); 456bool geometricallyEqual = DrawingAttributes.GeometricallyEqual(drawingAttributes, this.DrawingAttributes); 579erasingStroke.EraseTest(StrokeNodeIterator.GetIterator(this, this.DrawingAttributes), intersections); 602return lasso.HitTest(StrokeNodeIterator.GetIterator(this, this.DrawingAttributes));
System\Windows\Ink\StrokeCollection2.cs (6)
208erasingStroke.HitTest(StrokeNodeIterator.GetIterator(stroke, stroke.DrawingAttributes))) 339erasingStroke.EraseTest(StrokeNodeIterator.GetIterator(stroke, stroke.DrawingAttributes), intersections); 363if (stroke.DrawingAttributes.IsHighlighter) 367Color color = StrokeRenderer.GetHighlighterColor(stroke.DrawingAttributes.Color); 388stroke.DrawInternal(context, StrokeRenderer.GetHighlighterAttributes(stroke, stroke.DrawingAttributes), 400stroke.DrawInternal(context, stroke.DrawingAttributes, false/*Don't draw selected stroke as hollow*/);
PresentationFramework (15)
MS\Internal\Ink\PenCursorManager.cs (13)
343singleStroke.DrawingAttributes.Width = ConvertToPixel(singleStroke.DrawingAttributes.Width, dpiScaleX); 344singleStroke.DrawingAttributes.Height = ConvertToPixel(singleStroke.DrawingAttributes.Height, dpiScaleY); 362singleStroke.DrawingAttributes.Width = 1.0; 367singleStroke.DrawingAttributes.Width = maxLength; 373singleStroke.DrawingAttributes.Height = 1.0; 378singleStroke.DrawingAttributes.Height = maxLength; 387singleStroke.DrawingAttributes.StylusTipTransform = Matrix.Identity; 393Matrix xf = singleStroke.DrawingAttributes.StylusTipTransform; 399singleStroke.DrawingAttributes.StylusTipTransform = xf; 413singleStroke.DrawInternal(dc, singleStroke.DrawingAttributes, isHollow); 418singleStroke.Draw(dc, singleStroke.DrawingAttributes);
System\Windows\Controls\StickyNote.cs (2)
1588s.DrawingAttributes.AttributeChanged += new PropertyDataChangedEventHandler( 1609s.DrawingAttributes.AttributeChanged -= new PropertyDataChangedEventHandler(