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