57 references to DrawingAttributes
PresentationCore (42)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (2)
2151
Guid[] guids = ExtendedPropertySerializer.GetUnknownGuids(stroke.
DrawingAttributes
.ExtendedProperties, out count);
2616
DrawingAttributes drattrs = _coreStrokes[count].
DrawingAttributes
;
MS\Internal\Ink\Renderer.cs (16)
48
_cachedColor = stroke.
DrawingAttributes
.Color;
49
_cachedIsHighlighter = stroke.
DrawingAttributes
.IsHighlighter;
72
if (highContrast == true && _stroke.
DrawingAttributes
.IsHighlighter)
81
da = _stroke.
DrawingAttributes
.Clone();
84
else if (_stroke.
DrawingAttributes
.IsHighlighter == true)
88
da = StrokeRenderer.GetHighlighterAttributes(_stroke, _stroke.
DrawingAttributes
);
93
da = _stroke.
DrawingAttributes
;
489
if (visual.CachedIsHighlighter != stroke.
DrawingAttributes
.IsHighlighter ||
490
(stroke.
DrawingAttributes
.IsHighlighter &&
491
StrokeRenderer.GetHighlighterColor(visual.CachedColor) != StrokeRenderer.GetHighlighterColor(stroke.
DrawingAttributes
.Color)))
498
visual.CachedIsHighlighter = stroke.
DrawingAttributes
.IsHighlighter;
499
visual.CachedColor = stroke.
DrawingAttributes
.Color;
528
if (visual.Stroke.
DrawingAttributes
.IsHighlighter)
531
ContainerVisual parent = GetContainerVisual(visual.Stroke.
DrawingAttributes
);
576
if ((stroke.
DrawingAttributes
.IsHighlighter == false)
590
ContainerVisual parent = GetContainerVisual(visual.Stroke.
DrawingAttributes
);
MS\Internal\Ink\StrokeRenderer.cs (1)
1100
DrawingAttributes copy = stroke.
DrawingAttributes
.Clone();
System\Windows\Ink\IncrementalHitTester.cs (3)
539
(_erasingStroke.EraseTest(StrokeNodeIterator.GetIterator(strokeInfo.Stroke, strokeInfo.Stroke.
DrawingAttributes
), eraseAt) == false))
757
if (_stroke.
DrawingAttributes
.FitToCurve)
822
DrawingAttributes da = this.Stroke.
DrawingAttributes
;
System\Windows\Ink\Stroke.cs (6)
220
DrawingAttributes
.FittingError))
227
StylusShape stylusShape = this.
DrawingAttributes
.StylusShape;
739
if (this.
DrawingAttributes
.FitToCurve)
795
if (this.
DrawingAttributes
.FitToCurve)
954
if (stroke.
DrawingAttributes
.FitToCurve)
960
stroke.
DrawingAttributes
.FitToCurve = false;
System\Windows\Ink\Stroke2.cs (8)
34
StrokeNodeIterator iterator = StrokeNodeIterator.GetIterator(this, this.
DrawingAttributes
);
58
this.Draw(context, this.
DrawingAttributes
);
84
this.DrawInternal(drawingContext, StrokeRenderer.GetHighlighterAttributes(this, this.
DrawingAttributes
), false);
336
return erasingStroke.HitTest(StrokeNodeIterator.GetIterator(this, this.
DrawingAttributes
));
444
return GetGeometry(this.
DrawingAttributes
);
456
bool geometricallyEqual = DrawingAttributes.GeometricallyEqual(drawingAttributes, this.
DrawingAttributes
);
579
erasingStroke.EraseTest(StrokeNodeIterator.GetIterator(this, this.
DrawingAttributes
), intersections);
602
return lasso.HitTest(StrokeNodeIterator.GetIterator(this, this.
DrawingAttributes
));
System\Windows\Ink\StrokeCollection2.cs (6)
208
erasingStroke.HitTest(StrokeNodeIterator.GetIterator(stroke, stroke.
DrawingAttributes
)))
339
erasingStroke.EraseTest(StrokeNodeIterator.GetIterator(stroke, stroke.
DrawingAttributes
), intersections);
363
if (stroke.
DrawingAttributes
.IsHighlighter)
367
Color color = StrokeRenderer.GetHighlighterColor(stroke.
DrawingAttributes
.Color);
388
stroke.DrawInternal(context, StrokeRenderer.GetHighlighterAttributes(stroke, stroke.
DrawingAttributes
),
400
stroke.DrawInternal(context, stroke.
DrawingAttributes
, false/*Don't draw selected stroke as hollow*/);
PresentationFramework (15)
MS\Internal\Ink\PenCursorManager.cs (13)
343
singleStroke.
DrawingAttributes
.Width = ConvertToPixel(singleStroke.
DrawingAttributes
.Width, dpiScaleX);
344
singleStroke.
DrawingAttributes
.Height = ConvertToPixel(singleStroke.
DrawingAttributes
.Height, dpiScaleY);
362
singleStroke.
DrawingAttributes
.Width = 1.0;
367
singleStroke.
DrawingAttributes
.Width = maxLength;
373
singleStroke.
DrawingAttributes
.Height = 1.0;
378
singleStroke.
DrawingAttributes
.Height = maxLength;
387
singleStroke.
DrawingAttributes
.StylusTipTransform = Matrix.Identity;
393
Matrix xf = singleStroke.
DrawingAttributes
.StylusTipTransform;
399
singleStroke.
DrawingAttributes
.StylusTipTransform = xf;
413
singleStroke.DrawInternal(dc, singleStroke.
DrawingAttributes
, isHollow);
418
singleStroke.Draw(dc, singleStroke.
DrawingAttributes
);
System\Windows\Controls\StickyNote.cs (2)
1588
s.
DrawingAttributes
.AttributeChanged += new PropertyDataChangedEventHandler(
1609
s.
DrawingAttributes
.AttributeChanged -= new PropertyDataChangedEventHandler(