116 references to KnownIds
PresentationCore (116)
MS\Internal\Ink\ExtendedProperty.cs (1)
128
return
KnownIds
.ConvertToString(Id) + "," + val;
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (12)
48
if (attribute.Id ==
KnownIds
.DrawingFlags)
52
else if (attribute.Id ==
KnownIds
.StylusTip)
776
if (id ==
KnownIds
.Color)
784
else if (id ==
KnownIds
.CurveFittingError)
791
else if (id ==
KnownIds
.DrawingFlags)
799
else if (id ==
KnownIds
.StylusTip)
814
else if (id ==
KnownIds
.StylusTipTransform)
841
else if (id ==
KnownIds
.IsHighlighter)
848
else if ( id ==
KnownIds
.StylusHeight || id ==
KnownIds
.StylusWidth )
857
if (id ==
KnownIds
.StylusHeight)
872
else if ( id ==
KnownIds
.Transparency )
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (34)
148
if (
KnownIds
.PenTip == guid)
158
else if (
KnownIds
.PenStyle == guid)
164
else if (
KnownIds
.DrawingFlags == guid)
172
else if (
KnownIds
.RasterOperation == guid)
174
uint ropSize = GuidList.GetDataSizeIfKnownGuid(
KnownIds
.RasterOperation);
191
else if (
KnownIds
.CurveFittingError == guid)
197
else if (
KnownIds
.StylusHeight == guid ||
KnownIds
.StylusWidth == guid)
245
if (
KnownIds
.StylusWidth == guid)
256
else if (
KnownIds
.Transparency == guid)
262
else if (
KnownIds
.Color == guid)
270
else if (
KnownIds
.StylusTipTransform == guid)
366
double height = DoubleUtil.IsZero(stylusHeight) ? (Double)DrawingAttributes.GetDefaultDrawingAttributeValue(
KnownIds
.StylusHeight) : stylusHeight;
367
double width = DoubleUtil.IsZero(stylusWidth) ? (Double)DrawingAttributes.GetDefaultDrawingAttributeValue(
KnownIds
.StylusWidth) : stylusWidth;
385
if (da.ContainsPropertyData(
KnownIds
.IsHighlighter))
387
da.RemovePropertyData(
KnownIds
.IsHighlighter);
479
cbData += SerializationHelper.Encode(stream, (uint)guidList.FindTag(
KnownIds
.DrawingFlags, true));
482
if (da.ContainsPropertyData(
KnownIds
.CurveFittingError))
485
cbData += SerializationHelper.Encode(stream, (uint)guidList.FindTag(
KnownIds
.CurveFittingError, true));
486
cbData += SerializationHelper.Encode(stream, (uint)(int)da.GetPropertyData(
KnownIds
.CurveFittingError));
495
if (da.ContainsPropertyData(
KnownIds
.Color))
498
System.Diagnostics.Debug.Assert(da.Color != (Color)DrawingAttributes.GetDefaultDrawingAttributeValue(
KnownIds
.Color), "Color was put in the EPC for the default value!");
505
cbData += SerializationHelper.Encode(stream, (uint)guidList.FindTag(
KnownIds
.Color, true));
518
cbData += SerializationHelper.Encode(stream, (uint)guidList.FindTag(
KnownIds
.Transparency, true));
529
uint ropSize = GuidList.GetDataSizeIfKnownGuid(
KnownIds
.RasterOperation);
536
cbData += SerializationHelper.Encode(stream, (uint)guidList.FindTag(
KnownIds
.RasterOperation, true));
567
if (epcClone[x].Id ==
KnownIds
.StylusTipTransform)
597
if (da.ContainsPropertyData(
KnownIds
.StylusTip))
605
cbData += SerializationHelper.Encode(stream, (uint)guidList.FindTag(
KnownIds
.PenTip, true));
612
ExtendedPropertySerializer.EncodeAttribute(
KnownIds
.StylusTip, stylusTip, type, localStream);
614
cbData += ExtendedPropertySerializer.EncodeAsISF(
KnownIds
.StylusTip, localStream.ToArray(), stream, guidList, 0, true);
629
Guid guid = (i == 0) ?
KnownIds
.StylusWidth :
KnownIds
.StylusHeight;
646
guid ==
KnownIds
.StylusHeight &&
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (4)
414
epc.Add(
KnownIds
.DrawingFlags, DrawingFlags.Polyline);
1615
stylusPointPropertyInfos.Add(GetStylusPointPropertyInfo(
KnownIds
.X, (KnownTagCache.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.X), block));
1616
stylusPointPropertyInfos.Add(GetStylusPointPropertyInfo(
KnownIds
.Y, (KnownTagCache.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.Y), block));
1617
stylusPointPropertyInfos.Add(GetStylusPointPropertyInfo(
KnownIds
.NormalPressure, (KnownTagCache.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.NormalPressure), block));
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (2)
696
KnownTagCache.KnownTagIndex tag = guidList.FindTag(
KnownIds
.X, true);
699
tag = guidList.FindTag(
KnownIds
.Y, true);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Ink\KnownIds.cs (2)
297
PublicMemberInfo = typeof(
KnownIds
).FindMembers(System.Reflection.MemberTypes.Field,
307
if ( id == (Guid)typeof(
KnownIds
).InvokeMember(info.Name,
System\Windows\Ink\DrawingAttributes.cs (61)
68
if (!_extendedProperties.Contains(
KnownIds
.Color))
70
Debug.Assert(Colors.Black == (Color)GetDefaultDrawingAttributeValue(
KnownIds
.Color));
73
return (Color)GetExtendedPropertyBackedProperty(
KnownIds
.Color);
80
SetExtendedPropertyBackedProperty(
KnownIds
.Color, value);
92
if (!_extendedProperties.Contains(
KnownIds
.StylusTip))
94
Debug.Assert(StylusTip.Ellipse == (StylusTip)GetDefaultDrawingAttributeValue(
KnownIds
.StylusTip));
100
Debug.Assert(StylusTip.Rectangle == (StylusTip)GetExtendedPropertyBackedProperty(
KnownIds
.StylusTip));
109
SetExtendedPropertyBackedProperty(
KnownIds
.StylusTip, value);
121
if (!_extendedProperties.Contains(
KnownIds
.StylusTipTransform))
123
Debug.Assert(Matrix.Identity == (Matrix)GetDefaultDrawingAttributeValue(
KnownIds
.StylusTipTransform));
126
return (Matrix)GetExtendedPropertyBackedProperty(
KnownIds
.StylusTipTransform);
138
SetExtendedPropertyBackedProperty(
KnownIds
.StylusTipTransform, value);
150
if (!_extendedProperties.Contains(
KnownIds
.StylusHeight))
152
Debug.Assert(DrawingAttributes.DefaultHeight == (double)GetDefaultDrawingAttributeValue(
KnownIds
.StylusHeight));
155
return (double)GetExtendedPropertyBackedProperty(
KnownIds
.StylusHeight);
165
SetExtendedPropertyBackedProperty(
KnownIds
.StylusHeight, value);
177
if (!_extendedProperties.Contains(
KnownIds
.StylusWidth))
179
Debug.Assert(DrawingAttributes.DefaultWidth == (double)GetDefaultDrawingAttributeValue(
KnownIds
.StylusWidth));
182
return (double)GetExtendedPropertyBackedProperty(
KnownIds
.StylusWidth);
192
SetExtendedPropertyBackedProperty(
KnownIds
.StylusWidth, value);
206
DrawingFlags flags = (DrawingFlags)GetExtendedPropertyBackedProperty(
KnownIds
.DrawingFlags);
213
DrawingFlags flags = (DrawingFlags)GetExtendedPropertyBackedProperty(
KnownIds
.DrawingFlags);
224
SetExtendedPropertyBackedProperty(
KnownIds
.DrawingFlags, flags);
236
DrawingFlags flags = (DrawingFlags)GetExtendedPropertyBackedProperty(
KnownIds
.DrawingFlags);
243
DrawingFlags flags = (DrawingFlags)GetExtendedPropertyBackedProperty(
KnownIds
.DrawingFlags);
254
SetExtendedPropertyBackedProperty(
KnownIds
.DrawingFlags, flags);
266
if (!_extendedProperties.Contains(
KnownIds
.IsHighlighter))
268
Debug.Assert(!(bool)GetDefaultDrawingAttributeValue(
KnownIds
.IsHighlighter));
273
Debug.Assert((bool)GetExtendedPropertyBackedProperty(
KnownIds
.IsHighlighter));
281
SetExtendedPropertyBackedProperty(
KnownIds
.IsHighlighter, value);
402
if (!_extendedProperties.Contains(
KnownIds
.CurveFittingError))
408
return (int)_extendedProperties[
KnownIds
.CurveFittingError];
413
_extendedProperties[
KnownIds
.CurveFittingError] = value;
424
return (DrawingFlags)GetExtendedPropertyBackedProperty(
KnownIds
.DrawingFlags);
430
SetExtendedPropertyBackedProperty(
KnownIds
.DrawingFlags, value);
658
if (
KnownIds
.Color == id)
662
if (
KnownIds
.StylusWidth == id)
666
if (
KnownIds
.StylusTip == id)
670
if (
KnownIds
.DrawingFlags == id)
675
if (
KnownIds
.StylusHeight == id)
679
if (
KnownIds
.StylusTipTransform == id)
683
if (
KnownIds
.IsHighlighter == id)
702
if (propertyDataId ==
KnownIds
.StylusTipTransform)
722
if (
KnownIds
.Color == id ||
723
KnownIds
.Transparency == id ||
724
KnownIds
.StylusWidth == id ||
725
KnownIds
.DrawingFlags == id ||
726
KnownIds
.StylusHeight == id ||
727
KnownIds
.CurveFittingError == id )
765
if (guid ==
KnownIds
.StylusHeight || guid ==
KnownIds
.StylusWidth ||
766
guid ==
KnownIds
.StylusTipTransform || guid ==
KnownIds
.StylusTip ||
767
guid ==
KnownIds
.DrawingFlags)
957
if ( e.PropertyGuid ==
KnownIds
.Color)
961
else if ( e.PropertyGuid ==
KnownIds
.StylusTip)
965
else if ( e.PropertyGuid ==
KnownIds
.StylusTipTransform)
969
else if ( e.PropertyGuid ==
KnownIds
.StylusHeight)
973
else if ( e.PropertyGuid ==
KnownIds
.StylusWidth)
977
else if ( e.PropertyGuid ==
KnownIds
.IsHighlighter)
981
else if ( e.PropertyGuid ==
KnownIds
.DrawingFlags )