12 instantiations of DrawingAttributes
PresentationCore (5)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (3)
416
DrawingAttributes dr = new
DrawingAttributes
(epc);
632
activeDrawingAttributes = new
DrawingAttributes
();
840
DrawingAttributes attributes = new
DrawingAttributes
();
System\Windows\Ink\Stroke.cs (1)
26
: this (stylusPoints, new
DrawingAttributes
(), null)
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (1)
1189
private DrawingAttributes _drawAttrsSource = new
DrawingAttributes
();
PresentationFramework (7)
MS\Internal\Ink\DrawingAttributesDefaultValueFactory.cs (2)
29
return new
DrawingAttributes
();
39
DrawingAttributes defaultValue = new
DrawingAttributes
();
MS\Internal\Ink\PenCursorManager.cs (2)
63
DrawingAttributes da = new
DrawingAttributes
();
328
DrawingAttributes da = new
DrawingAttributes
();
System\Windows\Controls\InkCanvas.cs (1)
2225
InkPresenter.AttachVisuals(visual, new
DrawingAttributes
());
System\Windows\Controls\StickyNote.cs (2)
445
(new
DrawingAttributes
()).Width,
1766
DrawingAttributes da = new
DrawingAttributes
();
140 references to DrawingAttributes
PresentationCore (118)
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (4)
864
if ( Double.IsNaN(dVal) || dVal <
DrawingAttributes
.MinHeight || dVal >
DrawingAttributes
.MaxHeight)
871
if (Double.IsNaN(dVal) || dVal <
DrawingAttributes
.MinWidth || dVal >
DrawingAttributes
.MaxWidth)
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (23)
112
internal static uint DecodeAsISF(Stream stream, GuidList guidList, uint maximumStreamSize,
DrawingAttributes
da)
234
_size += (double)(sFraction /
DrawingAttributes
.StylusPrecision);
367
double height = DoubleUtil.IsZero(stylusHeight) ? (Double)
DrawingAttributes
.GetDefaultDrawingAttributeValue(KnownIds.StylusHeight) : stylusHeight;
368
double width = DoubleUtil.IsZero(stylusWidth) ? (Double)
DrawingAttributes
.GetDefaultDrawingAttributeValue(KnownIds.StylusWidth) : stylusWidth;
421
Debug.Assert(
DrawingAttributes
.MaxHeight ==
DrawingAttributes
.MaxWidth &&
422
DrawingAttributes
.MinHeight ==
DrawingAttributes
.MinWidth);
424
if (heightOrWidth >
DrawingAttributes
.MaxHeight)
426
return
DrawingAttributes
.MaxHeight;
428
if (heightOrWidth <
DrawingAttributes
.MinHeight)
430
return
DrawingAttributes
.MinHeight;
447
internal static uint EncodeAsISF(
DrawingAttributes
da, Stream stream, GuidList guidList, byte compressionAlgorithm, bool fTag)
473
private static void PersistDrawingFlags(
DrawingAttributes
da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw)
491
private static void PersistColorAndTransparency(
DrawingAttributes
da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw)
499
System.Diagnostics.Debug.Assert(da.Color != (Color)
DrawingAttributes
.GetDefaultDrawingAttributeValue(KnownIds.Color), "Color was put in the EPC for the default value!");
524
private static void PersistRasterOperation(
DrawingAttributes
da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw)
556
private static void PersistExtendedProperties(
DrawingAttributes
da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw, byte compressionAlgorithm, bool fTag)
576
if (
DrawingAttributes
.RemoveIdFromExtendedProperties(epcClone[x].Id))
593
private static void PersistStylusTip(
DrawingAttributes
da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw)
620
private static void PersistWidthHeight(
DrawingAttributes
da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw)
663
short sFraction = (size > uIntegral) ? (short)(
DrawingAttributes
.StylusPrecision * (size - uIntegral) + 0.5f) : (short)(
DrawingAttributes
.StylusPrecision * (size - uIntegral) - 0.5);
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (12)
318
_drawingAttributesTable = new System.Collections.Generic.List<
DrawingAttributes
>();
416
DrawingAttributes
dr = new DrawingAttributes(epc);
611
DrawingAttributes
activeDrawingAttributes = null;
623
DrawingAttributes
currDA = (
DrawingAttributes
)_drawingAttributesTable[(int)drawingAttributesTableIndex];
840
DrawingAttributes
attributes = new DrawingAttributes();
1688
_drawingAttributesTable = new List<
DrawingAttributes
>();
2468
DrawingAttributes
drawingAttributes = _drawingAttributesTable[0];
2502
DrawingAttributes
drawingAttributes = _drawingAttributesTable[i];
2515
DrawingAttributes
drawingAttributes = _drawingAttributesTable[i];
2633
DrawingAttributes
drattrs = _coreStrokes[count].DrawingAttributes;
2696
private System.Collections.Generic.List<
DrawingAttributes
> _drawingAttributesTable = null;
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (1)
52
DrawingAttributes
drawingAttributes,
MS\Internal\Ink\Renderer.cs (4)
78
DrawingAttributes
da;
273
internal void AttachIncrementalRendering(Visual visual,
DrawingAttributes
drawingAttributes)
350
internal bool AttachedVisualIsPositionedCorrectly(Visual visual,
DrawingAttributes
drawingAttributes)
645
private ContainerVisual GetContainerVisual(
DrawingAttributes
drawingAttributes)
MS\Internal\Ink\StrokeNodeEnumerator.cs (3)
27
internal static StrokeNodeIterator GetIterator(Stroke stroke,
DrawingAttributes
drawingAttributes)
42
internal static StrokeNodeIterator GetIterator(StylusPointCollection stylusPoints,
DrawingAttributes
drawingAttributes)
85
internal StrokeNodeIterator(
DrawingAttributes
drawingAttributes)
MS\Internal\Ink\StrokeRenderer.cs (5)
31
DrawingAttributes
drawingAttributes,
199
DrawingAttributes
drawingAttributes,
1091
internal static
DrawingAttributes
GetHighlighterAttributes(Stroke stroke,
DrawingAttributes
da)
1096
DrawingAttributes
copy = stroke.DrawingAttributes.Clone();
MS\Internal\Ink\StylusShape.cs (4)
42
if (Double.IsNaN(width) || Double.IsInfinity(width) || width <
DrawingAttributes
.MinWidth || width >
DrawingAttributes
.MaxWidth)
47
if (Double.IsNaN(height) || Double.IsInfinity(height) || height <
DrawingAttributes
.MinHeight || height >
DrawingAttributes
.MaxHeight)
System\Windows\Ink\DrawingAttributes.cs (26)
153
Debug.Assert(
DrawingAttributes
.DefaultHeight == (double)GetDefaultDrawingAttributeValue(KnownIds.StylusHeight));
154
return
DrawingAttributes
.DefaultHeight;
180
Debug.Assert(
DrawingAttributes
.DefaultWidth == (double)GetDefaultDrawingAttributeValue(KnownIds.StylusWidth));
181
return
DrawingAttributes
.DefaultWidth;
306
DrawingAttributes
.ValidateStylusTipTransform(propertyDataId, propertyData);
507
DrawingAttributes
that = o as
DrawingAttributes
;
518
public static bool operator ==(
DrawingAttributes
first,
DrawingAttributes
second)
537
public static bool operator !=(
DrawingAttributes
first,
DrawingAttributes
second)
548
public virtual
DrawingAttributes
Clone()
556
DrawingAttributes
clone = (
DrawingAttributes
)this.MemberwiseClone();
665
return
DrawingAttributes
.DefaultWidth;
678
return
DrawingAttributes
.DefaultHeight;
738
internal static bool GeometricallyEqual(
DrawingAttributes
left,
DrawingAttributes
right)
764
System.Diagnostics.Debug.Assert(null !=
DrawingAttributes
.GetDefaultDrawingAttributeValue(guid));
794
=
DrawingAttributes
.GetDefaultDrawingAttributeValue(args.OldProperty.Id);
822
=
DrawingAttributes
.GetDefaultDrawingAttributeValue(args.NewProperty.Id);
849
=
DrawingAttributes
.GetDefaultDrawingAttributeValue(args.NewProperty.Id);
896
object defaultValue =
DrawingAttributes
.GetDefaultDrawingAttributeValue(id);
922
object defaultValue =
DrawingAttributes
.GetDefaultDrawingAttributeValue(id);
940
if (null !=
DrawingAttributes
.GetDefaultDrawingAttributeValue(id))
942
return
DrawingAttributes
.GetDefaultDrawingAttributeValue(id);
System\Windows\Ink\Events.cs (6)
200
public DrawingAttributesReplacedEventArgs(
DrawingAttributes
newDrawingAttributes,
DrawingAttributes
previousDrawingAttributes)
211
public
DrawingAttributes
NewDrawingAttributes
219
public
DrawingAttributes
PreviousDrawingAttributes
224
private
DrawingAttributes
_newDrawingAttributes;
225
private
DrawingAttributes
_previousDrawingAttributes;
System\Windows\Ink\IncrementalHitTester.cs (3)
822
DrawingAttributes
da = this.Stroke.DrawingAttributes;
889
if(
DrawingAttributes
.IsGeometricalDaGuid(args.PropertyGuid))
899
if (false ==
DrawingAttributes
.GeometricallyEqual(args.NewDrawingAttributes, args.PreviousDrawingAttributes))
System\Windows\Ink\Stroke.cs (8)
35
public Stroke(StylusPointCollection stylusPoints,
DrawingAttributes
drawingAttributes)
46
internal Stroke(StylusPointCollection stylusPoints,
DrawingAttributes
drawingAttributes, ExtendedPropertyCollection extendedProperties)
389
DrawingAttributes
.ValidateStylusTipTransform(propertyDataId, propertyData);
456
public
DrawingAttributes
DrawingAttributes
471
DrawingAttributes
previousDa = _drawingAttributes;
478
if (false ==
DrawingAttributes
.GeometricallyEqual(previousDa, _drawingAttributes))
1040
if (
DrawingAttributes
.IsGeometricalDaGuid(e.PropertyGuid) == true)
1097
private
DrawingAttributes
_drawingAttributes = null;
System\Windows\Ink\Stroke2.cs (11)
68
public void Draw(DrawingContext drawingContext,
DrawingAttributes
drawingAttributes)
194
if (Double.IsNaN(diameter) || diameter <
DrawingAttributes
.MinWidth || diameter >
DrawingAttributes
.MaxWidth)
370
protected virtual void DrawCore(DrawingContext drawingContext,
DrawingAttributes
drawingAttributes)
383
DrawingAttributes
selectedDA = drawingAttributes.Clone();
384
selectedDA.Height = Math.Max(selectedDA.Height,
DrawingAttributes
.DefaultHeight);
385
selectedDA.Width = Math.Max(selectedDA.Width,
DrawingAttributes
.DefaultWidth);
452
public Geometry GetGeometry(
DrawingAttributes
drawingAttributes)
456
bool geometricallyEqual =
DrawingAttributes
.GeometricallyEqual(drawingAttributes, this.DrawingAttributes);
503
internal void DrawInternal(DrawingContext dc,
DrawingAttributes
DrawingAttributes, bool drawAsHollow)
673
private static void CalcHollowTransforms(
DrawingAttributes
originalDa, out Matrix innerTransform, out Matrix outerTransform)
System\Windows\Ink\StrokeCollection.cs (1)
151
DrawingAttributes
.ValidateStylusTipTransform(propertyDataId, propertyData);
System\Windows\Ink\StrokeCollection2.cs (2)
69
if (Double.IsNaN(diameter) || diameter <
DrawingAttributes
.MinWidth || diameter >
DrawingAttributes
.MaxWidth)
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (5)
35
DrawingAttributes
_drawingAttributes;
40
public StrokeInfo(
DrawingAttributes
drawingAttributes, int stylusDeviceId, int startTimestamp, DynamicRendererHostVisual hostVisual)
107
public
DrawingAttributes
DrawingAttributes
1050
public
DrawingAttributes
DrawingAttributes
1189
private
DrawingAttributes
_drawAttrsSource = new DrawingAttributes();
PresentationFramework (22)
MS\Internal\Ink\DrawingAttributesDefaultValueFactory.cs (3)
39
DrawingAttributes
defaultValue = new DrawingAttributes();
71
DrawingAttributes
value = (
DrawingAttributes
)sender;
MS\Internal\Ink\InkCollectionBehavior.cs (3)
343
DrawingAttributes
da = this.InkCanvas.DefaultDrawingAttributes;
388
private
DrawingAttributes
_strokeDrawingAttributes;
393
private
DrawingAttributes
_cursorDrawingAttributes;
MS\Internal\Ink\PenCursorManager.cs (4)
42
internal static Cursor GetPenCursor(
DrawingAttributes
drawingAttributes, bool isHollow, bool isRightToLeft, double dpiScaleX, double dpiScaleY)
63
DrawingAttributes
da = new DrawingAttributes();
322
private static Drawing CreatePenDrawing(
DrawingAttributes
drawingAttributes, bool isHollow, bool isRightToLeft, double dpiScaleX, double dpiScaleY)
328
DrawingAttributes
da = new DrawingAttributes();
System\Windows\Controls\InkCanvas.cs (9)
699
typeof(
DrawingAttributes
),
710
public
DrawingAttributes
DefaultDrawingAttributes
712
get { return (
DrawingAttributes
)GetValue(DefaultDrawingAttributesProperty); }
720
DrawingAttributes
oldValue = (
DrawingAttributes
)e.OldValue;
721
DrawingAttributes
newValue = (
DrawingAttributes
)e.NewValue;
2572
private void UpdateDynamicRenderer(
DrawingAttributes
newDrawingAttributes)
2945
DrawingAttributes
highContrastDa = _thisInkCanvas.DefaultDrawingAttributes.Clone();
System\Windows\Controls\InkPresenter.cs (2)
68
public void AttachVisuals(Visual visual,
DrawingAttributes
drawingAttributes)
341
internal bool AttachedVisualIsPositionedCorrectly(Visual visual,
DrawingAttributes
drawingAttributes)
System\Windows\Controls\StickyNote.cs (1)
1766
DrawingAttributes
da = new DrawingAttributes();