12 instantiations of DrawingAttributes
PresentationCore (5)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (3)
429
DrawingAttributes dr = new
DrawingAttributes
(epc);
645
activeDrawingAttributes = new
DrawingAttributes
();
853
DrawingAttributes attributes = new
DrawingAttributes
();
System\Windows\Ink\Stroke.cs (1)
41
: this (stylusPoints, new
DrawingAttributes
(), null)
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (1)
1203
private DrawingAttributes _drawAttrsSource = new
DrawingAttributes
();
PresentationFramework (7)
MS\Internal\Ink\DrawingAttributesDefaultValueFactory.cs (2)
31
return new
DrawingAttributes
();
41
DrawingAttributes defaultValue = new
DrawingAttributes
();
MS\Internal\Ink\PenCursorManager.cs (2)
68
DrawingAttributes da = new
DrawingAttributes
();
333
DrawingAttributes da = new
DrawingAttributes
();
System\Windows\Controls\InkCanvas.cs (1)
2237
InkPresenter.AttachVisuals(visual, new
DrawingAttributes
());
System\Windows\Controls\StickyNote.cs (2)
461
(new
DrawingAttributes
()).Width,
1782
DrawingAttributes da = new
DrawingAttributes
();
140 references to DrawingAttributes
PresentationCore (118)
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (4)
876
if ( Double.IsNaN(dVal) || dVal <
DrawingAttributes
.MinHeight || dVal >
DrawingAttributes
.MaxHeight)
883
if (Double.IsNaN(dVal) || dVal <
DrawingAttributes
.MinWidth || dVal >
DrawingAttributes
.MaxWidth)
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (23)
122
internal static uint DecodeAsISF(Stream stream, GuidList guidList, uint maximumStreamSize,
DrawingAttributes
da)
244
_size += (double)(sFraction /
DrawingAttributes
.StylusPrecision);
377
double height = DoubleUtil.IsZero(stylusHeight) ? (Double)
DrawingAttributes
.GetDefaultDrawingAttributeValue(KnownIds.StylusHeight) : stylusHeight;
378
double width = DoubleUtil.IsZero(stylusWidth) ? (Double)
DrawingAttributes
.GetDefaultDrawingAttributeValue(KnownIds.StylusWidth) : stylusWidth;
431
Debug.Assert(
DrawingAttributes
.MaxHeight ==
DrawingAttributes
.MaxWidth &&
432
DrawingAttributes
.MinHeight ==
DrawingAttributes
.MinWidth);
434
if (heightOrWidth >
DrawingAttributes
.MaxHeight)
436
return
DrawingAttributes
.MaxHeight;
438
if (heightOrWidth <
DrawingAttributes
.MinHeight)
440
return
DrawingAttributes
.MinHeight;
457
internal static uint EncodeAsISF(
DrawingAttributes
da, Stream stream, GuidList guidList, byte compressionAlgorithm, bool fTag)
483
private static void PersistDrawingFlags(
DrawingAttributes
da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw)
501
private static void PersistColorAndTransparency(
DrawingAttributes
da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw)
509
System.Diagnostics.Debug.Assert(da.Color != (Color)
DrawingAttributes
.GetDefaultDrawingAttributeValue(KnownIds.Color), "Color was put in the EPC for the default value!");
534
private static void PersistRasterOperation(
DrawingAttributes
da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw)
566
private static void PersistExtendedProperties(
DrawingAttributes
da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw, byte compressionAlgorithm, bool fTag)
586
if (
DrawingAttributes
.RemoveIdFromExtendedProperties(epcClone[x].Id))
603
private static void PersistStylusTip(
DrawingAttributes
da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw)
630
private static void PersistWidthHeight(
DrawingAttributes
da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw)
673
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)
331
_drawingAttributesTable = new System.Collections.Generic.List<
DrawingAttributes
>();
429
DrawingAttributes
dr = new DrawingAttributes(epc);
624
DrawingAttributes
activeDrawingAttributes = null;
636
DrawingAttributes
currDA = (
DrawingAttributes
)_drawingAttributesTable[(int)drawingAttributesTableIndex];
853
DrawingAttributes
attributes = new DrawingAttributes();
1701
_drawingAttributesTable = new List<
DrawingAttributes
>();
2481
DrawingAttributes
drawingAttributes = _drawingAttributesTable[0];
2515
DrawingAttributes
drawingAttributes = _drawingAttributesTable[i];
2528
DrawingAttributes
drawingAttributes = _drawingAttributesTable[i];
2646
DrawingAttributes
drattrs = _coreStrokes[count].DrawingAttributes;
2709
private System.Collections.Generic.List<
DrawingAttributes
> _drawingAttributesTable = null;
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (1)
59
DrawingAttributes
drawingAttributes,
MS\Internal\Ink\Renderer.cs (4)
86
DrawingAttributes
da;
281
internal void AttachIncrementalRendering(Visual visual,
DrawingAttributes
drawingAttributes)
358
internal bool AttachedVisualIsPositionedCorrectly(Visual visual,
DrawingAttributes
drawingAttributes)
653
private ContainerVisual GetContainerVisual(
DrawingAttributes
drawingAttributes)
MS\Internal\Ink\StrokeNodeEnumerator.cs (3)
34
internal static StrokeNodeIterator GetIterator(Stroke stroke,
DrawingAttributes
drawingAttributes)
49
internal static StrokeNodeIterator GetIterator(StylusPointCollection stylusPoints,
DrawingAttributes
drawingAttributes)
92
internal StrokeNodeIterator(
DrawingAttributes
drawingAttributes)
MS\Internal\Ink\StrokeRenderer.cs (5)
38
DrawingAttributes
drawingAttributes,
206
DrawingAttributes
drawingAttributes,
1098
internal static
DrawingAttributes
GetHighlighterAttributes(Stroke stroke,
DrawingAttributes
da)
1103
DrawingAttributes
copy = stroke.DrawingAttributes.Clone();
MS\Internal\Ink\StylusShape.cs (4)
49
if (Double.IsNaN(width) || Double.IsInfinity(width) || width <
DrawingAttributes
.MinWidth || width >
DrawingAttributes
.MaxWidth)
54
if (Double.IsNaN(height) || Double.IsInfinity(height) || height <
DrawingAttributes
.MinHeight || height >
DrawingAttributes
.MaxHeight)
System\Windows\Ink\DrawingAttributes.cs (26)
164
Debug.Assert(
DrawingAttributes
.DefaultHeight == (double)GetDefaultDrawingAttributeValue(KnownIds.StylusHeight));
165
return
DrawingAttributes
.DefaultHeight;
191
Debug.Assert(
DrawingAttributes
.DefaultWidth == (double)GetDefaultDrawingAttributeValue(KnownIds.StylusWidth));
192
return
DrawingAttributes
.DefaultWidth;
317
DrawingAttributes
.ValidateStylusTipTransform(propertyDataId, propertyData);
518
DrawingAttributes
that = o as
DrawingAttributes
;
529
public static bool operator ==(
DrawingAttributes
first,
DrawingAttributes
second)
548
public static bool operator !=(
DrawingAttributes
first,
DrawingAttributes
second)
559
public virtual
DrawingAttributes
Clone()
567
DrawingAttributes
clone = (
DrawingAttributes
)this.MemberwiseClone();
676
return
DrawingAttributes
.DefaultWidth;
689
return
DrawingAttributes
.DefaultHeight;
749
internal static bool GeometricallyEqual(
DrawingAttributes
left,
DrawingAttributes
right)
775
System.Diagnostics.Debug.Assert(null !=
DrawingAttributes
.GetDefaultDrawingAttributeValue(guid));
805
=
DrawingAttributes
.GetDefaultDrawingAttributeValue(args.OldProperty.Id);
833
=
DrawingAttributes
.GetDefaultDrawingAttributeValue(args.NewProperty.Id);
860
=
DrawingAttributes
.GetDefaultDrawingAttributeValue(args.NewProperty.Id);
907
object defaultValue =
DrawingAttributes
.GetDefaultDrawingAttributeValue(id);
933
object defaultValue =
DrawingAttributes
.GetDefaultDrawingAttributeValue(id);
951
if (null !=
DrawingAttributes
.GetDefaultDrawingAttributeValue(id))
953
return
DrawingAttributes
.GetDefaultDrawingAttributeValue(id);
System\Windows\Ink\Events.cs (6)
206
public DrawingAttributesReplacedEventArgs(
DrawingAttributes
newDrawingAttributes,
DrawingAttributes
previousDrawingAttributes)
217
public
DrawingAttributes
NewDrawingAttributes
225
public
DrawingAttributes
PreviousDrawingAttributes
230
private
DrawingAttributes
_newDrawingAttributes;
231
private
DrawingAttributes
_previousDrawingAttributes;
System\Windows\Ink\IncrementalHitTester.cs (3)
831
DrawingAttributes
da = this.Stroke.DrawingAttributes;
898
if(
DrawingAttributes
.IsGeometricalDaGuid(args.PropertyGuid))
908
if (false ==
DrawingAttributes
.GeometricallyEqual(args.NewDrawingAttributes, args.PreviousDrawingAttributes))
System\Windows\Ink\Stroke.cs (8)
50
public Stroke(StylusPointCollection stylusPoints,
DrawingAttributes
drawingAttributes)
61
internal Stroke(StylusPointCollection stylusPoints,
DrawingAttributes
drawingAttributes, ExtendedPropertyCollection extendedProperties)
404
DrawingAttributes
.ValidateStylusTipTransform(propertyDataId, propertyData);
471
public
DrawingAttributes
DrawingAttributes
486
DrawingAttributes
previousDa = _drawingAttributes;
493
if (false ==
DrawingAttributes
.GeometricallyEqual(previousDa, _drawingAttributes))
1055
if (
DrawingAttributes
.IsGeometricalDaGuid(e.PropertyGuid) == true)
1112
private
DrawingAttributes
_drawingAttributes = null;
System\Windows\Ink\Stroke2.cs (11)
77
public void Draw(DrawingContext drawingContext,
DrawingAttributes
drawingAttributes)
203
if (Double.IsNaN(diameter) || diameter <
DrawingAttributes
.MinWidth || diameter >
DrawingAttributes
.MaxWidth)
379
protected virtual void DrawCore(DrawingContext drawingContext,
DrawingAttributes
drawingAttributes)
392
DrawingAttributes
selectedDA = drawingAttributes.Clone();
393
selectedDA.Height = Math.Max(selectedDA.Height,
DrawingAttributes
.DefaultHeight);
394
selectedDA.Width = Math.Max(selectedDA.Width,
DrawingAttributes
.DefaultWidth);
461
public Geometry GetGeometry(
DrawingAttributes
drawingAttributes)
465
bool geometricallyEqual =
DrawingAttributes
.GeometricallyEqual(drawingAttributes, this.DrawingAttributes);
512
internal void DrawInternal(DrawingContext dc,
DrawingAttributes
DrawingAttributes, bool drawAsHollow)
682
private static void CalcHollowTransforms(
DrawingAttributes
originalDa, out Matrix innerTransform, out Matrix outerTransform)
System\Windows\Ink\StrokeCollection.cs (1)
163
DrawingAttributes
.ValidateStylusTipTransform(propertyDataId, propertyData);
System\Windows\Ink\StrokeCollection2.cs (2)
76
if (Double.IsNaN(diameter) || diameter <
DrawingAttributes
.MinWidth || diameter >
DrawingAttributes
.MaxWidth)
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (5)
49
DrawingAttributes
_drawingAttributes;
54
public StrokeInfo(
DrawingAttributes
drawingAttributes, int stylusDeviceId, int startTimestamp, DynamicRendererHostVisual hostVisual)
121
public
DrawingAttributes
DrawingAttributes
1064
public
DrawingAttributes
DrawingAttributes
1203
private
DrawingAttributes
_drawAttrsSource = new DrawingAttributes();
PresentationFramework (22)
MS\Internal\Ink\DrawingAttributesDefaultValueFactory.cs (3)
41
DrawingAttributes
defaultValue = new DrawingAttributes();
73
DrawingAttributes
value = (
DrawingAttributes
)sender;
MS\Internal\Ink\InkCollectionBehavior.cs (3)
352
DrawingAttributes
da = this.InkCanvas.DefaultDrawingAttributes;
397
private
DrawingAttributes
_strokeDrawingAttributes;
402
private
DrawingAttributes
_cursorDrawingAttributes;
MS\Internal\Ink\PenCursorManager.cs (4)
47
internal static Cursor GetPenCursor(
DrawingAttributes
drawingAttributes, bool isHollow, bool isRightToLeft, double dpiScaleX, double dpiScaleY)
68
DrawingAttributes
da = new DrawingAttributes();
327
private static Drawing CreatePenDrawing(
DrawingAttributes
drawingAttributes, bool isHollow, bool isRightToLeft, double dpiScaleX, double dpiScaleY)
333
DrawingAttributes
da = new DrawingAttributes();
System\Windows\Controls\InkCanvas.cs (9)
711
typeof(
DrawingAttributes
),
722
public
DrawingAttributes
DefaultDrawingAttributes
724
get { return (
DrawingAttributes
)GetValue(DefaultDrawingAttributesProperty); }
732
DrawingAttributes
oldValue = (
DrawingAttributes
)e.OldValue;
733
DrawingAttributes
newValue = (
DrawingAttributes
)e.NewValue;
2584
private void UpdateDynamicRenderer(
DrawingAttributes
newDrawingAttributes)
2957
DrawingAttributes
highContrastDa = _thisInkCanvas.DefaultDrawingAttributes.Clone();
System\Windows\Controls\InkPresenter.cs (2)
75
public void AttachVisuals(Visual visual,
DrawingAttributes
drawingAttributes)
348
internal bool AttachedVisualIsPositionedCorrectly(Visual visual,
DrawingAttributes
drawingAttributes)
System\Windows\Controls\StickyNote.cs (1)
1782
DrawingAttributes
da = new DrawingAttributes();