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