11 instantiations of DrawingAttributes
PresentationCore (4)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (3)
439
DrawingAttributes dr = new
DrawingAttributes
(epc);
655
activeDrawingAttributes = new
DrawingAttributes
();
867
DrawingAttributes attributes = new
DrawingAttributes
();
Core\CSharp\System\Windows\Ink\Stroke.cs (1)
42
: this (stylusPoints, new
DrawingAttributes
(), null)
PresentationFramework (7)
src\Framework\MS\Internal\Ink\DrawingAttributesDefaultValueFactory.cs (2)
36
return new
DrawingAttributes
();
46
DrawingAttributes defaultValue = new
DrawingAttributes
();
src\Framework\MS\Internal\Ink\PenCursorManager.cs (2)
75
DrawingAttributes da = new
DrawingAttributes
();
358
DrawingAttributes da = new
DrawingAttributes
();
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
2362
InkPresenter.AttachVisuals(visual, new
DrawingAttributes
());
src\Framework\System\Windows\Controls\StickyNote.cs (2)
471
(new
DrawingAttributes
()).Width,
1819
DrawingAttributes da = new
DrawingAttributes
();
135 references to DrawingAttributes
PresentationCore (113)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (4)
914
if ( Double.IsNaN(dVal) || dVal <
DrawingAttributes
.MinHeight || dVal >
DrawingAttributes
.MaxHeight)
921
if (Double.IsNaN(dVal) || dVal <
DrawingAttributes
.MinWidth || dVal >
DrawingAttributes
.MaxWidth)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (23)
132
internal static uint DecodeAsISF(Stream stream, GuidList guidList, uint maximumStreamSize,
DrawingAttributes
da)
254
_size += (double)(sFraction /
DrawingAttributes
.StylusPrecision);
387
double height = DoubleUtil.IsZero(stylusHeight) ? (Double)
DrawingAttributes
.GetDefaultDrawingAttributeValue(KnownIds.StylusHeight) : stylusHeight;
388
double width = DoubleUtil.IsZero(stylusWidth) ? (Double)
DrawingAttributes
.GetDefaultDrawingAttributeValue(KnownIds.StylusWidth) : stylusWidth;
441
Debug.Assert(
DrawingAttributes
.MaxHeight ==
DrawingAttributes
.MaxWidth &&
442
DrawingAttributes
.MinHeight ==
DrawingAttributes
.MinWidth);
444
if (heightOrWidth >
DrawingAttributes
.MaxHeight)
446
return
DrawingAttributes
.MaxHeight;
448
if (heightOrWidth <
DrawingAttributes
.MinHeight)
450
return
DrawingAttributes
.MinHeight;
478
internal static uint EncodeAsISF(
DrawingAttributes
da, Stream stream, GuidList guidList, byte compressionAlgorithm, bool fTag)
504
private static void PersistDrawingFlags(
DrawingAttributes
da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw)
522
private static void PersistColorAndTransparency(
DrawingAttributes
da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw)
530
System.Diagnostics.Debug.Assert(da.Color != (Color)
DrawingAttributes
.GetDefaultDrawingAttributeValue(KnownIds.Color), "Color was put in the EPC for the default value!");
555
private static void PersistRasterOperation(
DrawingAttributes
da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw)
596
private static void PersistExtendedProperties(
DrawingAttributes
da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw, byte compressionAlgorithm, bool fTag)
616
if (
DrawingAttributes
.RemoveIdFromExtendedProperties(epcClone[x].Id))
642
private static void PersistStylusTip(
DrawingAttributes
da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw)
669
private static void PersistWidthHeight(
DrawingAttributes
da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw)
712
short sFraction = (size > uIntegral) ? (short)(
DrawingAttributes
.StylusPrecision * (size - uIntegral) + 0.5f) : (short)(
DrawingAttributes
.StylusPrecision * (size - uIntegral) - 0.5);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (12)
341
_drawingAttributesTable = new System.Collections.Generic.List<
DrawingAttributes
>();
439
DrawingAttributes
dr = new DrawingAttributes(epc);
634
DrawingAttributes
activeDrawingAttributes = null;
646
DrawingAttributes
currDA = (
DrawingAttributes
)_drawingAttributesTable[(int)drawingAttributesTableIndex];
867
DrawingAttributes
attributes = new DrawingAttributes();
1732
_drawingAttributesTable = new List<
DrawingAttributes
>();
2542
DrawingAttributes
drawingAttributes = _drawingAttributesTable[0];
2576
DrawingAttributes
drawingAttributes = _drawingAttributesTable[i];
2589
DrawingAttributes
drawingAttributes = _drawingAttributesTable[i];
2707
DrawingAttributes
drattrs = _coreStrokes[count].DrawingAttributes;
2770
private System.Collections.Generic.List<
DrawingAttributes
> _drawingAttributesTable = null;
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (1)
68
DrawingAttributes
drawingAttributes,
Core\CSharp\MS\Internal\Ink\Renderer.cs (4)
91
DrawingAttributes
da;
290
internal void AttachIncrementalRendering(Visual visual,
DrawingAttributes
drawingAttributes)
376
internal bool AttachedVisualIsPositionedCorrectly(Visual visual,
DrawingAttributes
drawingAttributes)
671
private ContainerVisual GetContainerVisual(
DrawingAttributes
drawingAttributes)
Core\CSharp\MS\Internal\Ink\StrokeNodeEnumerator.cs (3)
36
internal static StrokeNodeIterator GetIterator(Stroke stroke,
DrawingAttributes
drawingAttributes)
57
internal static StrokeNodeIterator GetIterator(StylusPointCollection stylusPoints,
DrawingAttributes
drawingAttributes)
106
internal StrokeNodeIterator(
DrawingAttributes
drawingAttributes)
Core\CSharp\MS\Internal\Ink\StrokeRenderer.cs (5)
41
DrawingAttributes
drawingAttributes,
210
DrawingAttributes
drawingAttributes,
1111
internal static
DrawingAttributes
GetHighlighterAttributes(Stroke stroke,
DrawingAttributes
da)
1116
DrawingAttributes
copy = stroke.DrawingAttributes.Clone();
Core\CSharp\MS\Internal\Ink\StylusShape.cs (4)
51
if (Double.IsNaN(width) || Double.IsInfinity(width) || width <
DrawingAttributes
.MinWidth || width >
DrawingAttributes
.MaxWidth)
56
if (Double.IsNaN(height) || Double.IsInfinity(height) || height <
DrawingAttributes
.MinHeight || height >
DrawingAttributes
.MaxHeight)
Core\CSharp\System\Windows\Ink\DrawingAttributes.cs (26)
166
Debug.Assert(
DrawingAttributes
.DefaultHeight == (double)GetDefaultDrawingAttributeValue(KnownIds.StylusHeight));
167
return
DrawingAttributes
.DefaultHeight;
193
Debug.Assert(
DrawingAttributes
.DefaultWidth == (double)GetDefaultDrawingAttributeValue(KnownIds.StylusWidth));
194
return
DrawingAttributes
.DefaultWidth;
319
DrawingAttributes
.ValidateStylusTipTransform(propertyDataId, propertyData);
520
DrawingAttributes
that = o as
DrawingAttributes
;
531
public static bool operator ==(
DrawingAttributes
first,
DrawingAttributes
second)
550
public static bool operator !=(
DrawingAttributes
first,
DrawingAttributes
second)
561
public virtual
DrawingAttributes
Clone()
569
DrawingAttributes
clone = (
DrawingAttributes
)this.MemberwiseClone();
678
return
DrawingAttributes
.DefaultWidth;
691
return
DrawingAttributes
.DefaultHeight;
753
internal static bool GeometricallyEqual(
DrawingAttributes
left,
DrawingAttributes
right)
780
System.Diagnostics.Debug.Assert(null !=
DrawingAttributes
.GetDefaultDrawingAttributeValue(guid));
810
=
DrawingAttributes
.GetDefaultDrawingAttributeValue(args.OldProperty.Id);
839
=
DrawingAttributes
.GetDefaultDrawingAttributeValue(args.NewProperty.Id);
867
=
DrawingAttributes
.GetDefaultDrawingAttributeValue(args.NewProperty.Id);
914
object defaultValue =
DrawingAttributes
.GetDefaultDrawingAttributeValue(id);
940
object defaultValue =
DrawingAttributes
.GetDefaultDrawingAttributeValue(id);
958
if (null !=
DrawingAttributes
.GetDefaultDrawingAttributeValue(id))
960
return
DrawingAttributes
.GetDefaultDrawingAttributeValue(id);
Core\CSharp\System\Windows\Ink\Events.cs (6)
204
public DrawingAttributesReplacedEventArgs(
DrawingAttributes
newDrawingAttributes,
DrawingAttributes
previousDrawingAttributes)
221
public
DrawingAttributes
NewDrawingAttributes
229
public
DrawingAttributes
PreviousDrawingAttributes
234
private
DrawingAttributes
_newDrawingAttributes;
235
private
DrawingAttributes
_previousDrawingAttributes;
Core\CSharp\System\Windows\Ink\IncrementalHitTester.cs (3)
842
DrawingAttributes
da = this.Stroke.DrawingAttributes;
909
if(
DrawingAttributes
.IsGeometricalDaGuid(args.PropertyGuid))
919
if (false ==
DrawingAttributes
.GeometricallyEqual(args.NewDrawingAttributes, args.PreviousDrawingAttributes))
Core\CSharp\System\Windows\Ink\Stroke.cs (8)
51
public Stroke(StylusPointCollection stylusPoints,
DrawingAttributes
drawingAttributes)
62
internal Stroke(StylusPointCollection stylusPoints,
DrawingAttributes
drawingAttributes, ExtendedPropertyCollection extendedProperties)
412
DrawingAttributes
.ValidateStylusTipTransform(propertyDataId, propertyData);
479
public
DrawingAttributes
DrawingAttributes
497
DrawingAttributes
previousDa = _drawingAttributes;
504
if (false ==
DrawingAttributes
.GeometricallyEqual(previousDa, _drawingAttributes))
1076
if (
DrawingAttributes
.IsGeometricalDaGuid(e.PropertyGuid) == true)
1133
private
DrawingAttributes
_drawingAttributes = null;
Core\CSharp\System\Windows\Ink\Stroke2.cs (11)
80
public void Draw(DrawingContext drawingContext,
DrawingAttributes
drawingAttributes)
224
if (Double.IsNaN(diameter) || diameter <
DrawingAttributes
.MinWidth || diameter >
DrawingAttributes
.MaxWidth)
410
protected virtual void DrawCore(DrawingContext drawingContext,
DrawingAttributes
drawingAttributes)
430
DrawingAttributes
selectedDA = drawingAttributes.Clone();
431
selectedDA.Height = Math.Max(selectedDA.Height,
DrawingAttributes
.DefaultHeight);
432
selectedDA.Width = Math.Max(selectedDA.Width,
DrawingAttributes
.DefaultWidth);
499
public Geometry GetGeometry(
DrawingAttributes
drawingAttributes)
506
bool geometricallyEqual =
DrawingAttributes
.GeometricallyEqual(drawingAttributes, this.DrawingAttributes);
554
internal void DrawInternal(DrawingContext dc,
DrawingAttributes
DrawingAttributes, bool drawAsHollow)
725
private static void CalcHollowTransforms(
DrawingAttributes
originalDa, out Matrix innerTransform, out Matrix outerTransform)
Core\CSharp\System\Windows\Ink\StrokeCollection.cs (1)
175
DrawingAttributes
.ValidateStylusTipTransform(propertyDataId, propertyData);
Core\CSharp\System\Windows\Ink\StrokeCollection2.cs (2)
79
if (Double.IsNaN(diameter) || diameter <
DrawingAttributes
.MinWidth || diameter >
DrawingAttributes
.MaxWidth)
PresentationFramework (22)
src\Framework\MS\Internal\Ink\DrawingAttributesDefaultValueFactory.cs (3)
46
DrawingAttributes
defaultValue = new DrawingAttributes();
78
DrawingAttributes
value = (
DrawingAttributes
)sender;
src\Framework\MS\Internal\Ink\InkCollectionBehavior.cs (3)
404
DrawingAttributes
da = this.InkCanvas.DefaultDrawingAttributes;
459
private
DrawingAttributes
_strokeDrawingAttributes;
464
private
DrawingAttributes
_cursorDrawingAttributes;
src\Framework\MS\Internal\Ink\PenCursorManager.cs (4)
54
internal static Cursor GetPenCursor(
DrawingAttributes
drawingAttributes, bool isHollow, bool isRightToLeft, double dpiScaleX, double dpiScaleY)
75
DrawingAttributes
da = new DrawingAttributes();
352
private static Drawing CreatePenDrawing(
DrawingAttributes
drawingAttributes, bool isHollow, bool isRightToLeft, double dpiScaleX, double dpiScaleY)
358
DrawingAttributes
da = new DrawingAttributes();
src\Framework\System\Windows\Controls\InkCanvas.cs (9)
724
typeof(
DrawingAttributes
),
735
public
DrawingAttributes
DefaultDrawingAttributes
737
get { return (
DrawingAttributes
)GetValue(DefaultDrawingAttributesProperty); }
745
DrawingAttributes
oldValue = (
DrawingAttributes
)e.OldValue;
746
DrawingAttributes
newValue = (
DrawingAttributes
)e.NewValue;
2724
private void UpdateDynamicRenderer(
DrawingAttributes
newDrawingAttributes)
3104
DrawingAttributes
highContrastDa = _thisInkCanvas.DefaultDrawingAttributes.Clone();
src\Framework\System\Windows\Controls\InkPresenter.cs (2)
83
public void AttachVisuals(Visual visual,
DrawingAttributes
drawingAttributes)
356
internal bool AttachedVisualIsPositionedCorrectly(Visual visual,
DrawingAttributes
drawingAttributes)
src\Framework\System\Windows\Controls\StickyNote.cs (1)
1819
DrawingAttributes
da = new DrawingAttributes();