57 references to DrawingAttributes
PresentationCore (42)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (2)
2225Guid[] guids = ExtendedPropertySerializer.GetUnknownGuids(stroke.DrawingAttributes.ExtendedProperties, out count); 2707DrawingAttributes drattrs = _coreStrokes[count].DrawingAttributes;
Core\CSharp\MS\Internal\Ink\Renderer.cs (16)
61_cachedColor = stroke.DrawingAttributes.Color; 62_cachedIsHighlighter = stroke.DrawingAttributes.IsHighlighter; 85if (highContrast == true && _stroke.DrawingAttributes.IsHighlighter) 94da = _stroke.DrawingAttributes.Clone(); 97else if (_stroke.DrawingAttributes.IsHighlighter == true) 101da = StrokeRenderer.GetHighlighterAttributes(_stroke, _stroke.DrawingAttributes); 106da = _stroke.DrawingAttributes; 515if (visual.CachedIsHighlighter != stroke.DrawingAttributes.IsHighlighter || 516(stroke.DrawingAttributes.IsHighlighter && 517StrokeRenderer.GetHighlighterColor(visual.CachedColor) != StrokeRenderer.GetHighlighterColor(stroke.DrawingAttributes.Color))) 524visual.CachedIsHighlighter = stroke.DrawingAttributes.IsHighlighter; 525visual.CachedColor = stroke.DrawingAttributes.Color; 554if (visual.Stroke.DrawingAttributes.IsHighlighter) 557ContainerVisual parent = GetContainerVisual(visual.Stroke.DrawingAttributes); 602if ((stroke.DrawingAttributes.IsHighlighter == false) 616ContainerVisual parent = GetContainerVisual(visual.Stroke.DrawingAttributes);
Core\CSharp\MS\Internal\Ink\StrokeRenderer.cs (1)
1116DrawingAttributes copy = stroke.DrawingAttributes.Clone();
Core\CSharp\System\Windows\Ink\IncrementalHitTester.cs (3)
556(_erasingStroke.EraseTest(StrokeNodeIterator.GetIterator(strokeInfo.Stroke, strokeInfo.Stroke.DrawingAttributes), eraseAt) == false)) 777if (_stroke.DrawingAttributes.FitToCurve) 842DrawingAttributes da = this.Stroke.DrawingAttributes;
Core\CSharp\System\Windows\Ink\Stroke.cs (6)
242DrawingAttributes.FittingError)) 249StylusShape stylusShape = this.DrawingAttributes.StylusShape; 771if (this.DrawingAttributes.FitToCurve) 827if (this.DrawingAttributes.FitToCurve) 990if (stroke.DrawingAttributes.FitToCurve) 996stroke.DrawingAttributes.FitToCurve = false;
Core\CSharp\System\Windows\Ink\Stroke2.cs (8)
43StrokeNodeIterator iterator = StrokeNodeIterator.GetIterator(this, this.DrawingAttributes); 70this.Draw(context, this.DrawingAttributes); 102this.DrawInternal(drawingContext, StrokeRenderer.GetHighlighterAttributes(this, this.DrawingAttributes), false); 376return erasingStroke.HitTest(StrokeNodeIterator.GetIterator(this, this.DrawingAttributes)); 491return GetGeometry(this.DrawingAttributes); 506bool geometricallyEqual = DrawingAttributes.GeometricallyEqual(drawingAttributes, this.DrawingAttributes); 631erasingStroke.EraseTest(StrokeNodeIterator.GetIterator(this, this.DrawingAttributes), intersections); 654return lasso.HitTest(StrokeNodeIterator.GetIterator(this, this.DrawingAttributes));
Core\CSharp\System\Windows\Ink\StrokeCollection2.cs (6)
239erasingStroke.HitTest(StrokeNodeIterator.GetIterator(stroke, stroke.DrawingAttributes))) 377erasingStroke.EraseTest(StrokeNodeIterator.GetIterator(stroke, stroke.DrawingAttributes), intersections); 404if (stroke.DrawingAttributes.IsHighlighter) 408Color color = StrokeRenderer.GetHighlighterColor(stroke.DrawingAttributes.Color); 429stroke.DrawInternal(context, StrokeRenderer.GetHighlighterAttributes(stroke, stroke.DrawingAttributes), 441stroke.DrawInternal(context, stroke.DrawingAttributes, false/*Don't draw selected stroke as hollow*/);
PresentationFramework (15)
src\Framework\MS\Internal\Ink\PenCursorManager.cs (13)
369singleStroke.DrawingAttributes.Width = ConvertToPixel(singleStroke.DrawingAttributes.Width, dpiScaleX); 370singleStroke.DrawingAttributes.Height = ConvertToPixel(singleStroke.DrawingAttributes.Height, dpiScaleY); 388singleStroke.DrawingAttributes.Width = 1.0; 393singleStroke.DrawingAttributes.Width = maxLength; 399singleStroke.DrawingAttributes.Height = 1.0; 404singleStroke.DrawingAttributes.Height = maxLength; 413singleStroke.DrawingAttributes.StylusTipTransform = Matrix.Identity; 419Matrix xf = singleStroke.DrawingAttributes.StylusTipTransform; 425singleStroke.DrawingAttributes.StylusTipTransform = xf; 439singleStroke.DrawInternal(dc, singleStroke.DrawingAttributes, isHollow); 444singleStroke.Draw(dc, singleStroke.DrawingAttributes);
src\Framework\System\Windows\Controls\StickyNote.cs (2)
1619s.DrawingAttributes.AttributeChanged += new PropertyDataChangedEventHandler( 1640s.DrawingAttributes.AttributeChanged -= new PropertyDataChangedEventHandler(