57 references to DrawingAttributes
PresentationCore (42)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (2)
2174Guid[] guids = ExtendedPropertySerializer.GetUnknownGuids(stroke.DrawingAttributes.ExtendedProperties, out count); 2646DrawingAttributes drattrs = _coreStrokes[count].DrawingAttributes;
MS\Internal\Ink\Renderer.cs (16)
56_cachedColor = stroke.DrawingAttributes.Color; 57_cachedIsHighlighter = stroke.DrawingAttributes.IsHighlighter; 80if (highContrast == true && _stroke.DrawingAttributes.IsHighlighter) 89da = _stroke.DrawingAttributes.Clone(); 92else if (_stroke.DrawingAttributes.IsHighlighter == true) 96da = StrokeRenderer.GetHighlighterAttributes(_stroke, _stroke.DrawingAttributes); 101da = _stroke.DrawingAttributes; 497if (visual.CachedIsHighlighter != stroke.DrawingAttributes.IsHighlighter || 498(stroke.DrawingAttributes.IsHighlighter && 499StrokeRenderer.GetHighlighterColor(visual.CachedColor) != StrokeRenderer.GetHighlighterColor(stroke.DrawingAttributes.Color))) 506visual.CachedIsHighlighter = stroke.DrawingAttributes.IsHighlighter; 507visual.CachedColor = stroke.DrawingAttributes.Color; 536if (visual.Stroke.DrawingAttributes.IsHighlighter) 539ContainerVisual parent = GetContainerVisual(visual.Stroke.DrawingAttributes); 584if ((stroke.DrawingAttributes.IsHighlighter == false) 598ContainerVisual parent = GetContainerVisual(visual.Stroke.DrawingAttributes);
MS\Internal\Ink\StrokeRenderer.cs (1)
1103DrawingAttributes copy = stroke.DrawingAttributes.Clone();
System\Windows\Ink\IncrementalHitTester.cs (3)
548(_erasingStroke.EraseTest(StrokeNodeIterator.GetIterator(strokeInfo.Stroke, strokeInfo.Stroke.DrawingAttributes), eraseAt) == false)) 766if (_stroke.DrawingAttributes.FitToCurve) 831DrawingAttributes da = this.Stroke.DrawingAttributes;
System\Windows\Ink\Stroke.cs (6)
235DrawingAttributes.FittingError)) 242StylusShape stylusShape = this.DrawingAttributes.StylusShape; 754if (this.DrawingAttributes.FitToCurve) 810if (this.DrawingAttributes.FitToCurve) 969if (stroke.DrawingAttributes.FitToCurve) 975stroke.DrawingAttributes.FitToCurve = false;
System\Windows\Ink\Stroke2.cs (8)
43StrokeNodeIterator iterator = StrokeNodeIterator.GetIterator(this, this.DrawingAttributes); 67this.Draw(context, this.DrawingAttributes); 93this.DrawInternal(drawingContext, StrokeRenderer.GetHighlighterAttributes(this, this.DrawingAttributes), false); 345return erasingStroke.HitTest(StrokeNodeIterator.GetIterator(this, this.DrawingAttributes)); 453return GetGeometry(this.DrawingAttributes); 465bool geometricallyEqual = DrawingAttributes.GeometricallyEqual(drawingAttributes, this.DrawingAttributes); 588erasingStroke.EraseTest(StrokeNodeIterator.GetIterator(this, this.DrawingAttributes), intersections); 611return lasso.HitTest(StrokeNodeIterator.GetIterator(this, this.DrawingAttributes));
System\Windows\Ink\StrokeCollection2.cs (6)
226erasingStroke.HitTest(StrokeNodeIterator.GetIterator(stroke, stroke.DrawingAttributes))) 358erasingStroke.EraseTest(StrokeNodeIterator.GetIterator(stroke, stroke.DrawingAttributes), intersections); 382if (stroke.DrawingAttributes.IsHighlighter) 386Color color = StrokeRenderer.GetHighlighterColor(stroke.DrawingAttributes.Color); 407stroke.DrawInternal(context, StrokeRenderer.GetHighlighterAttributes(stroke, stroke.DrawingAttributes), 419stroke.DrawInternal(context, stroke.DrawingAttributes, false/*Don't draw selected stroke as hollow*/);
PresentationFramework (15)
MS\Internal\Ink\PenCursorManager.cs (13)
344singleStroke.DrawingAttributes.Width = ConvertToPixel(singleStroke.DrawingAttributes.Width, dpiScaleX); 345singleStroke.DrawingAttributes.Height = ConvertToPixel(singleStroke.DrawingAttributes.Height, dpiScaleY); 363singleStroke.DrawingAttributes.Width = 1.0; 368singleStroke.DrawingAttributes.Width = maxLength; 374singleStroke.DrawingAttributes.Height = 1.0; 379singleStroke.DrawingAttributes.Height = maxLength; 388singleStroke.DrawingAttributes.StylusTipTransform = Matrix.Identity; 394Matrix xf = singleStroke.DrawingAttributes.StylusTipTransform; 400singleStroke.DrawingAttributes.StylusTipTransform = xf; 414singleStroke.DrawInternal(dc, singleStroke.DrawingAttributes, isHollow); 419singleStroke.Draw(dc, singleStroke.DrawingAttributes);
System\Windows\Controls\StickyNote.cs (2)
1609s.DrawingAttributes.AttributeChanged += new PropertyDataChangedEventHandler( 1630s.DrawingAttributes.AttributeChanged -= new PropertyDataChangedEventHandler(