12 instantiations of DrawingAttributes
PresentationCore (5)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (3)
415
DrawingAttributes dr = new
DrawingAttributes
(epc);
631
activeDrawingAttributes = new
DrawingAttributes
();
839
DrawingAttributes attributes = new
DrawingAttributes
System\Windows\Ink\Stroke.cs (1)
25
: this (stylusPoints, new
DrawingAttributes
(), null)
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (1)
1171
private DrawingAttributes _drawAttrsSource = new
DrawingAttributes
();
PresentationFramework (7)
MS\Internal\Ink\DrawingAttributesDefaultValueFactory.cs (2)
28
return new
DrawingAttributes
();
38
DrawingAttributes defaultValue = new
DrawingAttributes
();
MS\Internal\Ink\PenCursorManager.cs (2)
62
DrawingAttributes da = new
DrawingAttributes
();
326
DrawingAttributes da = new
DrawingAttributes
System\Windows\Controls\InkCanvas.cs (1)
2240
InkPresenter.AttachVisuals(visual, new
DrawingAttributes
());
System\Windows\Controls\StickyNote.cs (2)
427
(new
DrawingAttributes
()).Width,
1740
DrawingAttributes da = new
DrawingAttributes
();
140 references to DrawingAttributes
PresentationCore (118)
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (4)
859
if ( Double.IsNaN(dVal) || dVal <
DrawingAttributes
.MinHeight || dVal >
DrawingAttributes
.MaxHeight)
866
if (Double.IsNaN(dVal) || dVal <
DrawingAttributes
.MinWidth || dVal >
DrawingAttributes
.MaxWidth)
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (23)
111
internal static uint DecodeAsISF(Stream stream, GuidList guidList, uint maximumStreamSize,
DrawingAttributes
da)
233
_size += (double)(sFraction /
DrawingAttributes
.StylusPrecision);
366
double height = DoubleUtil.IsZero(stylusHeight) ? (Double)
DrawingAttributes
.GetDefaultDrawingAttributeValue(KnownIds.StylusHeight) : stylusHeight;
367
double width = DoubleUtil.IsZero(stylusWidth) ? (Double)
DrawingAttributes
.GetDefaultDrawingAttributeValue(KnownIds.StylusWidth) : stylusWidth;
420
Debug.Assert(
DrawingAttributes
.MaxHeight ==
DrawingAttributes
.MaxWidth &&
421
DrawingAttributes
.MinHeight ==
DrawingAttributes
.MinWidth);
423
if (heightOrWidth >
DrawingAttributes
.MaxHeight)
425
return
DrawingAttributes
.MaxHeight;
427
if (heightOrWidth <
DrawingAttributes
.MinHeight)
429
return
DrawingAttributes
.MinHeight;
446
internal static uint EncodeAsISF(
DrawingAttributes
da, Stream stream, GuidList guidList, byte compressionAlgorithm, bool fTag)
472
private static void PersistDrawingFlags(
DrawingAttributes
da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw)
490
private static void PersistColorAndTransparency(
DrawingAttributes
da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw)
498
System.Diagnostics.Debug.Assert(da.Color != (Color)
DrawingAttributes
.GetDefaultDrawingAttributeValue(KnownIds.Color), "Color was put in the EPC for the default value!");
523
private static void PersistRasterOperation(
DrawingAttributes
da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw)
555
private static void PersistExtendedProperties(
DrawingAttributes
da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw, byte compressionAlgorithm, bool fTag)
575
if (
DrawingAttributes
.RemoveIdFromExtendedProperties(epcClone[x].Id))
592
private static void PersistStylusTip(
DrawingAttributes
da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw)
619
private static void PersistWidthHeight(
DrawingAttributes
da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw)
662
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)
317
_drawingAttributesTable = new System.Collections.Generic.List<
DrawingAttributes
>();
415
DrawingAttributes
dr = new DrawingAttributes(epc);
610
DrawingAttributes
activeDrawingAttributes = null;
622
DrawingAttributes
currDA = (
DrawingAttributes
)_drawingAttributesTable[(int)drawingAttributesTableIndex];
839
DrawingAttributes
attributes = new DrawingAttributes
1685
_drawingAttributesTable = new List<
DrawingAttributes
>();
2450
DrawingAttributes
drawingAttributes = _drawingAttributesTable[0];
2484
DrawingAttributes
drawingAttributes = _drawingAttributesTable[i];
2497
DrawingAttributes
drawingAttributes = _drawingAttributesTable[i];
2615
DrawingAttributes
drattrs = _coreStrokes[count].DrawingAttributes;
2678
private System.Collections.Generic.List<
DrawingAttributes
> _drawingAttributesTable = null;
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (1)
51
DrawingAttributes
drawingAttributes,
MS\Internal\Ink\Renderer.cs (4)
77
DrawingAttributes
da;
272
internal void AttachIncrementalRendering(Visual visual,
DrawingAttributes
drawingAttributes)
349
internal bool AttachedVisualIsPositionedCorrectly(Visual visual,
DrawingAttributes
drawingAttributes)
644
private ContainerVisual GetContainerVisual(
DrawingAttributes
drawingAttributes)
MS\Internal\Ink\StrokeNodeEnumerator.cs (3)
26
internal static StrokeNodeIterator GetIterator(Stroke stroke,
DrawingAttributes
drawingAttributes)
41
internal static StrokeNodeIterator GetIterator(StylusPointCollection stylusPoints,
DrawingAttributes
drawingAttributes)
84
internal StrokeNodeIterator(
DrawingAttributes
drawingAttributes)
MS\Internal\Ink\StrokeRenderer.cs (5)
30
DrawingAttributes
drawingAttributes,
200
DrawingAttributes
drawingAttributes,
1094
internal static
DrawingAttributes
GetHighlighterAttributes(Stroke stroke,
DrawingAttributes
da)
1099
DrawingAttributes
copy = stroke.DrawingAttributes.Clone();
MS\Internal\Ink\StylusShape.cs (4)
41
if (Double.IsNaN(width) || Double.IsInfinity(width) || width <
DrawingAttributes
.MinWidth || width >
DrawingAttributes
.MaxWidth)
46
if (Double.IsNaN(height) || Double.IsInfinity(height) || height <
DrawingAttributes
.MinHeight || height >
DrawingAttributes
.MaxHeight)
System\Windows\Ink\DrawingAttributes.cs (26)
152
Debug.Assert(
DrawingAttributes
.DefaultHeight == (double)GetDefaultDrawingAttributeValue(KnownIds.StylusHeight));
153
return
DrawingAttributes
.DefaultHeight;
179
Debug.Assert(
DrawingAttributes
.DefaultWidth == (double)GetDefaultDrawingAttributeValue(KnownIds.StylusWidth));
180
return
DrawingAttributes
.DefaultWidth;
305
DrawingAttributes
.ValidateStylusTipTransform(propertyDataId, propertyData);
506
DrawingAttributes
that = o as
DrawingAttributes
;
517
public static bool operator ==(
DrawingAttributes
first,
DrawingAttributes
second)
536
public static bool operator !=(
DrawingAttributes
first,
DrawingAttributes
second)
547
public virtual
DrawingAttributes
Clone()
555
DrawingAttributes
clone = (
DrawingAttributes
)this.MemberwiseClone();
664
return
DrawingAttributes
.DefaultWidth;
677
return
DrawingAttributes
.DefaultHeight;
737
internal static bool GeometricallyEqual(
DrawingAttributes
left,
DrawingAttributes
right)
763
System.Diagnostics.Debug.Assert(null !=
DrawingAttributes
.GetDefaultDrawingAttributeValue(guid));
793
=
DrawingAttributes
.GetDefaultDrawingAttributeValue(args.OldProperty.Id);
821
=
DrawingAttributes
.GetDefaultDrawingAttributeValue(args.NewProperty.Id);
848
=
DrawingAttributes
.GetDefaultDrawingAttributeValue(args.NewProperty.Id);
895
object defaultValue =
DrawingAttributes
.GetDefaultDrawingAttributeValue(id);
921
object defaultValue =
DrawingAttributes
.GetDefaultDrawingAttributeValue(id);
939
if (null !=
DrawingAttributes
.GetDefaultDrawingAttributeValue(id))
941
return
DrawingAttributes
.GetDefaultDrawingAttributeValue(id);
System\Windows\Ink\Events.cs (6)
199
public DrawingAttributesReplacedEventArgs(
DrawingAttributes
newDrawingAttributes,
DrawingAttributes
previousDrawingAttributes)
210
public
DrawingAttributes
NewDrawingAttributes
218
public
DrawingAttributes
PreviousDrawingAttributes
223
private
DrawingAttributes
_newDrawingAttributes;
224
private
DrawingAttributes
_previousDrawingAttributes;
System\Windows\Ink\IncrementalHitTester.cs (3)
818
DrawingAttributes
da = this.Stroke.DrawingAttributes;
885
if(
DrawingAttributes
.IsGeometricalDaGuid(args.PropertyGuid))
895
if (!
DrawingAttributes
.GeometricallyEqual(args.NewDrawingAttributes, args.PreviousDrawingAttributes))
System\Windows\Ink\Stroke.cs (8)
34
public Stroke(StylusPointCollection stylusPoints,
DrawingAttributes
drawingAttributes)
45
internal Stroke(StylusPointCollection stylusPoints,
DrawingAttributes
drawingAttributes, ExtendedPropertyCollection extendedProperties)
388
DrawingAttributes
.ValidateStylusTipTransform(propertyDataId, propertyData);
455
public
DrawingAttributes
DrawingAttributes
470
DrawingAttributes
previousDa = _drawingAttributes;
477
if (!
DrawingAttributes
.GeometricallyEqual(previousDa, _drawingAttributes))
1039
if (
DrawingAttributes
.IsGeometricalDaGuid(e.PropertyGuid))
1096
private
DrawingAttributes
_drawingAttributes = null;
System\Windows\Ink\Stroke2.cs (11)
67
public void Draw(DrawingContext drawingContext,
DrawingAttributes
drawingAttributes)
193
if (Double.IsNaN(diameter) || diameter <
DrawingAttributes
.MinWidth || diameter >
DrawingAttributes
.MaxWidth)
363
protected virtual void DrawCore(DrawingContext drawingContext,
DrawingAttributes
drawingAttributes)
376
DrawingAttributes
selectedDA = drawingAttributes.Clone();
377
selectedDA.Height = Math.Max(selectedDA.Height,
DrawingAttributes
.DefaultHeight);
378
selectedDA.Width = Math.Max(selectedDA.Width,
DrawingAttributes
.DefaultWidth);
445
public Geometry GetGeometry(
DrawingAttributes
drawingAttributes)
449
bool geometricallyEqual =
DrawingAttributes
.GeometricallyEqual(drawingAttributes, this.DrawingAttributes);
496
internal void DrawInternal(DrawingContext dc,
DrawingAttributes
DrawingAttributes, bool drawAsHollow)
666
private static void CalcHollowTransforms(
DrawingAttributes
originalDa, out Matrix innerTransform, out Matrix outerTransform)
System\Windows\Ink\StrokeCollection.cs (1)
152
DrawingAttributes
.ValidateStylusTipTransform(propertyDataId, propertyData);
System\Windows\Ink\StrokeCollection2.cs (2)
64
if (Double.IsNaN(diameter) || diameter <
DrawingAttributes
.MinWidth || diameter >
DrawingAttributes
.MaxWidth)
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (5)
34
private
DrawingAttributes
_drawingAttributes;
39
public StrokeInfo(
DrawingAttributes
drawingAttributes, int stylusDeviceId, int startTimestamp, DynamicRendererHostVisual hostVisual)
106
public
DrawingAttributes
DrawingAttributes
1035
public
DrawingAttributes
DrawingAttributes
1171
private
DrawingAttributes
_drawAttrsSource = new DrawingAttributes();
PresentationFramework (22)
MS\Internal\Ink\DrawingAttributesDefaultValueFactory.cs (3)
38
DrawingAttributes
defaultValue = new DrawingAttributes();
70
DrawingAttributes
value = (
DrawingAttributes
)sender;
MS\Internal\Ink\InkCollectionBehavior.cs (3)
341
DrawingAttributes
da = this.InkCanvas.DefaultDrawingAttributes;
386
private
DrawingAttributes
_strokeDrawingAttributes;
391
private
DrawingAttributes
_cursorDrawingAttributes;
MS\Internal\Ink\PenCursorManager.cs (4)
41
internal static Cursor GetPenCursor(
DrawingAttributes
drawingAttributes, bool isHollow, bool isRightToLeft, double dpiScaleX, double dpiScaleY)
62
DrawingAttributes
da = new DrawingAttributes();
320
private static Drawing CreatePenDrawing(
DrawingAttributes
drawingAttributes, bool isHollow, bool isRightToLeft, double dpiScaleX, double dpiScaleY)
326
DrawingAttributes
da = new DrawingAttributes
System\Windows\Controls\InkCanvas.cs (9)
710
typeof(
DrawingAttributes
),
721
public
DrawingAttributes
DefaultDrawingAttributes
723
get { return (
DrawingAttributes
)GetValue(DefaultDrawingAttributesProperty); }
731
DrawingAttributes
oldValue = (
DrawingAttributes
)e.OldValue;
732
DrawingAttributes
newValue = (
DrawingAttributes
)e.NewValue;
2587
private void UpdateDynamicRenderer(
DrawingAttributes
newDrawingAttributes)
2960
DrawingAttributes
highContrastDa = _thisInkCanvas.DefaultDrawingAttributes.Clone();
System\Windows\Controls\InkPresenter.cs (2)
67
public void AttachVisuals(Visual visual,
DrawingAttributes
drawingAttributes)
337
internal bool AttachedVisualIsPositionedCorrectly(Visual visual,
DrawingAttributes
drawingAttributes)
System\Windows\Controls\StickyNote.cs (1)
1740
DrawingAttributes
da = new DrawingAttributes();