57 references to DrawingAttributes
PresentationCore (42)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (2)
2150Guid[] guids = ExtendedPropertySerializer.GetUnknownGuids(stroke.DrawingAttributes.ExtendedProperties, out count); 2615DrawingAttributes drattrs = _coreStrokes[count].DrawingAttributes;
MS\Internal\Ink\Renderer.cs (16)
47_cachedColor = stroke.DrawingAttributes.Color; 48_cachedIsHighlighter = stroke.DrawingAttributes.IsHighlighter; 71if (highContrast && _stroke.DrawingAttributes.IsHighlighter) 80da = _stroke.DrawingAttributes.Clone(); 83else if (_stroke.DrawingAttributes.IsHighlighter) 87da = StrokeRenderer.GetHighlighterAttributes(_stroke, _stroke.DrawingAttributes); 92da = _stroke.DrawingAttributes; 488if (visual.CachedIsHighlighter != stroke.DrawingAttributes.IsHighlighter || 489(stroke.DrawingAttributes.IsHighlighter && 490StrokeRenderer.GetHighlighterColor(visual.CachedColor) != StrokeRenderer.GetHighlighterColor(stroke.DrawingAttributes.Color))) 497visual.CachedIsHighlighter = stroke.DrawingAttributes.IsHighlighter; 498visual.CachedColor = stroke.DrawingAttributes.Color; 527if (visual.Stroke.DrawingAttributes.IsHighlighter) 530ContainerVisual parent = GetContainerVisual(visual.Stroke.DrawingAttributes); 575if ((!stroke.DrawingAttributes.IsHighlighter) 589ContainerVisual parent = GetContainerVisual(visual.Stroke.DrawingAttributes);
MS\Internal\Ink\StrokeRenderer.cs (1)
1099DrawingAttributes copy = stroke.DrawingAttributes.Clone();
System\Windows\Ink\IncrementalHitTester.cs (3)
535(!_erasingStroke.EraseTest(StrokeNodeIterator.GetIterator(strokeInfo.Stroke, strokeInfo.Stroke.DrawingAttributes), eraseAt))) 753if (_stroke.DrawingAttributes.FitToCurve) 818DrawingAttributes da = this.Stroke.DrawingAttributes;
System\Windows\Ink\Stroke.cs (6)
219DrawingAttributes.FittingError)) 226StylusShape stylusShape = this.DrawingAttributes.StylusShape; 738if (this.DrawingAttributes.FitToCurve) 794if (this.DrawingAttributes.FitToCurve) 953if (stroke.DrawingAttributes.FitToCurve) 959stroke.DrawingAttributes.FitToCurve = false;
System\Windows\Ink\Stroke2.cs (8)
33StrokeNodeIterator iterator = StrokeNodeIterator.GetIterator(this, this.DrawingAttributes); 57this.Draw(context, this.DrawingAttributes); 83this.DrawInternal(drawingContext, StrokeRenderer.GetHighlighterAttributes(this, this.DrawingAttributes), false); 329return erasingStroke.HitTest(StrokeNodeIterator.GetIterator(this, this.DrawingAttributes)); 437return GetGeometry(this.DrawingAttributes); 449bool geometricallyEqual = DrawingAttributes.GeometricallyEqual(drawingAttributes, this.DrawingAttributes); 572erasingStroke.EraseTest(StrokeNodeIterator.GetIterator(this, this.DrawingAttributes), intersections); 595return lasso.HitTest(StrokeNodeIterator.GetIterator(this, this.DrawingAttributes));
System\Windows\Ink\StrokeCollection2.cs (6)
204erasingStroke.HitTest(StrokeNodeIterator.GetIterator(stroke, stroke.DrawingAttributes))) 335erasingStroke.EraseTest(StrokeNodeIterator.GetIterator(stroke, stroke.DrawingAttributes), intersections); 359if (stroke.DrawingAttributes.IsHighlighter) 363Color color = StrokeRenderer.GetHighlighterColor(stroke.DrawingAttributes.Color); 384stroke.DrawInternal(context, StrokeRenderer.GetHighlighterAttributes(stroke, stroke.DrawingAttributes), 396stroke.DrawInternal(context, stroke.DrawingAttributes, drawAsHollow: false);
PresentationFramework (15)
MS\Internal\Ink\PenCursorManager.cs (13)
339singleStroke.DrawingAttributes.Width = ConvertToPixel(singleStroke.DrawingAttributes.Width, dpiScaleX); 340singleStroke.DrawingAttributes.Height = ConvertToPixel(singleStroke.DrawingAttributes.Height, dpiScaleY); 358singleStroke.DrawingAttributes.Width = 1.0; 363singleStroke.DrawingAttributes.Width = maxLength; 369singleStroke.DrawingAttributes.Height = 1.0; 374singleStroke.DrawingAttributes.Height = maxLength; 383singleStroke.DrawingAttributes.StylusTipTransform = Matrix.Identity; 389Matrix xf = singleStroke.DrawingAttributes.StylusTipTransform; 395singleStroke.DrawingAttributes.StylusTipTransform = xf; 409singleStroke.DrawInternal(dc, singleStroke.DrawingAttributes, isHollow); 414singleStroke.Draw(dc, singleStroke.DrawingAttributes);
System\Windows\Controls\StickyNote.cs (2)
1561s.DrawingAttributes.AttributeChanged += new PropertyDataChangedEventHandler( 1582s.DrawingAttributes.AttributeChanged -= new PropertyDataChangedEventHandler(