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