116 references to KnownIds
PresentationCore (116)
Core\CSharp\MS\Internal\Ink\ExtendedProperty.cs (1)
142
return
KnownIds
.ConvertToString(Id) + "," + val;
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (12)
64
if (attribute.Id ==
KnownIds
.DrawingFlags)
68
else if (attribute.Id ==
KnownIds
.StylusTip)
830
if (id ==
KnownIds
.Color)
838
else if (id ==
KnownIds
.CurveFittingError)
845
else if (id ==
KnownIds
.DrawingFlags)
853
else if (id ==
KnownIds
.StylusTip)
868
else if (id ==
KnownIds
.StylusTipTransform)
896
else if (id ==
KnownIds
.IsHighlighter)
903
else if ( id ==
KnownIds
.StylusHeight || id ==
KnownIds
.StylusWidth )
912
if (id ==
KnownIds
.StylusHeight)
927
else if ( id ==
KnownIds
.Transparency )
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (34)
169
if (
KnownIds
.PenTip == guid)
179
else if (
KnownIds
.PenStyle == guid)
185
else if (
KnownIds
.DrawingFlags == guid)
193
else if (
KnownIds
.RasterOperation == guid)
195
uint ropSize = GuidList.GetDataSizeIfKnownGuid(
KnownIds
.RasterOperation);
212
else if (
KnownIds
.CurveFittingError == guid)
218
else if (
KnownIds
.StylusHeight == guid ||
KnownIds
.StylusWidth == guid)
266
if (
KnownIds
.StylusWidth == guid)
277
else if (
KnownIds
.Transparency == guid)
283
else if (
KnownIds
.Color == guid)
291
else if (
KnownIds
.StylusTipTransform == guid)
387
double height = DoubleUtil.IsZero(stylusHeight) ? (Double)DrawingAttributes.GetDefaultDrawingAttributeValue(
KnownIds
.StylusHeight) : stylusHeight;
388
double width = DoubleUtil.IsZero(stylusWidth) ? (Double)DrawingAttributes.GetDefaultDrawingAttributeValue(
KnownIds
.StylusWidth) : stylusWidth;
406
if (da.ContainsPropertyData(
KnownIds
.IsHighlighter))
408
da.RemovePropertyData(
KnownIds
.IsHighlighter);
511
cbData += SerializationHelper.Encode(stream, (uint)guidList.FindTag(
KnownIds
.DrawingFlags, true));
514
if (da.ContainsPropertyData(
KnownIds
.CurveFittingError))
517
cbData += SerializationHelper.Encode(stream, (uint)guidList.FindTag(
KnownIds
.CurveFittingError, true));
518
cbData += SerializationHelper.Encode(stream, (uint)(int)da.GetPropertyData(
KnownIds
.CurveFittingError));
527
if (da.ContainsPropertyData(
KnownIds
.Color))
530
System.Diagnostics.Debug.Assert(da.Color != (Color)DrawingAttributes.GetDefaultDrawingAttributeValue(
KnownIds
.Color), "Color was put in the EPC for the default value!");
537
cbData += SerializationHelper.Encode(stream, (uint)guidList.FindTag(
KnownIds
.Color, true));
550
cbData += SerializationHelper.Encode(stream, (uint)guidList.FindTag(
KnownIds
.Transparency, true));
561
uint ropSize = GuidList.GetDataSizeIfKnownGuid(
KnownIds
.RasterOperation);
568
cbData += SerializationHelper.Encode(stream, (uint)guidList.FindTag(
KnownIds
.RasterOperation, true));
608
if (epcClone[x].Id ==
KnownIds
.StylusTipTransform)
647
if (da.ContainsPropertyData(
KnownIds
.StylusTip))
655
cbData += SerializationHelper.Encode(stream, (uint)guidList.FindTag(
KnownIds
.PenTip, true));
662
ExtendedPropertySerializer.EncodeAttribute(
KnownIds
.StylusTip, stylusTip, type, localStream);
664
cbData += ExtendedPropertySerializer.EncodeAsISF(
KnownIds
.StylusTip, localStream.ToArray(), stream, guidList, 0, true);
679
Guid guid = (i == 0) ?
KnownIds
.StylusWidth :
KnownIds
.StylusHeight;
696
guid ==
KnownIds
.StylusHeight &&
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (4)
438
epc.Add(
KnownIds
.DrawingFlags, DrawingFlags.Polyline);
1646
stylusPointPropertyInfos.Add(GetStylusPointPropertyInfo(
KnownIds
.X, (KnownTagCache.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.X), block));
1647
stylusPointPropertyInfos.Add(GetStylusPointPropertyInfo(
KnownIds
.Y, (KnownTagCache.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.Y), block));
1648
stylusPointPropertyInfos.Add(GetStylusPointPropertyInfo(
KnownIds
.NormalPressure, (KnownTagCache.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.NormalPressure), block));
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (2)
743
KnownTagCache.KnownTagIndex tag = guidList.FindTag(
KnownIds
.X, true);
746
tag = guidList.FindTag(
KnownIds
.Y, true);
Core\CSharp\System\Windows\Ink\DrawingAttributes.cs (61)
82
if (!_extendedProperties.Contains(
KnownIds
.Color))
84
Debug.Assert(Colors.Black == (Color)GetDefaultDrawingAttributeValue(
KnownIds
.Color));
87
return (Color)GetExtendedPropertyBackedProperty(
KnownIds
.Color);
94
SetExtendedPropertyBackedProperty(
KnownIds
.Color, value);
106
if (!_extendedProperties.Contains(
KnownIds
.StylusTip))
108
Debug.Assert(StylusTip.Ellipse == (StylusTip)GetDefaultDrawingAttributeValue(
KnownIds
.StylusTip));
114
Debug.Assert(StylusTip.Rectangle == (StylusTip)GetExtendedPropertyBackedProperty(
KnownIds
.StylusTip));
123
SetExtendedPropertyBackedProperty(
KnownIds
.StylusTip, value);
135
if (!_extendedProperties.Contains(
KnownIds
.StylusTipTransform))
137
Debug.Assert(Matrix.Identity == (Matrix)GetDefaultDrawingAttributeValue(
KnownIds
.StylusTipTransform));
140
return (Matrix)GetExtendedPropertyBackedProperty(
KnownIds
.StylusTipTransform);
152
SetExtendedPropertyBackedProperty(
KnownIds
.StylusTipTransform, value);
164
if (!_extendedProperties.Contains(
KnownIds
.StylusHeight))
166
Debug.Assert(DrawingAttributes.DefaultHeight == (double)GetDefaultDrawingAttributeValue(
KnownIds
.StylusHeight));
169
return (double)GetExtendedPropertyBackedProperty(
KnownIds
.StylusHeight);
179
SetExtendedPropertyBackedProperty(
KnownIds
.StylusHeight, value);
191
if (!_extendedProperties.Contains(
KnownIds
.StylusWidth))
193
Debug.Assert(DrawingAttributes.DefaultWidth == (double)GetDefaultDrawingAttributeValue(
KnownIds
.StylusWidth));
196
return (double)GetExtendedPropertyBackedProperty(
KnownIds
.StylusWidth);
206
SetExtendedPropertyBackedProperty(
KnownIds
.StylusWidth, value);
220
DrawingFlags flags = (DrawingFlags)GetExtendedPropertyBackedProperty(
KnownIds
.DrawingFlags);
227
DrawingFlags flags = (DrawingFlags)GetExtendedPropertyBackedProperty(
KnownIds
.DrawingFlags);
238
SetExtendedPropertyBackedProperty(
KnownIds
.DrawingFlags, flags);
250
DrawingFlags flags = (DrawingFlags)GetExtendedPropertyBackedProperty(
KnownIds
.DrawingFlags);
257
DrawingFlags flags = (DrawingFlags)GetExtendedPropertyBackedProperty(
KnownIds
.DrawingFlags);
268
SetExtendedPropertyBackedProperty(
KnownIds
.DrawingFlags, flags);
280
if (!_extendedProperties.Contains(
KnownIds
.IsHighlighter))
282
Debug.Assert(false == (bool)GetDefaultDrawingAttributeValue(
KnownIds
.IsHighlighter));
287
Debug.Assert(true == (bool)GetExtendedPropertyBackedProperty(
KnownIds
.IsHighlighter));
295
SetExtendedPropertyBackedProperty(
KnownIds
.IsHighlighter, value);
416
if (!_extendedProperties.Contains(
KnownIds
.CurveFittingError))
422
return (int)_extendedProperties[
KnownIds
.CurveFittingError];
427
_extendedProperties[
KnownIds
.CurveFittingError] = value;
438
return (DrawingFlags)GetExtendedPropertyBackedProperty(
KnownIds
.DrawingFlags);
444
SetExtendedPropertyBackedProperty(
KnownIds
.DrawingFlags, value);
672
if (
KnownIds
.Color == id)
676
if (
KnownIds
.StylusWidth == id)
680
if (
KnownIds
.StylusTip == id)
684
if (
KnownIds
.DrawingFlags == id)
689
if (
KnownIds
.StylusHeight == id)
693
if (
KnownIds
.StylusTipTransform == id)
697
if (
KnownIds
.IsHighlighter == id)
718
else if (propertyDataId ==
KnownIds
.StylusTipTransform)
738
if (
KnownIds
.Color == id ||
739
KnownIds
.Transparency == id ||
740
KnownIds
.StylusWidth == id ||
741
KnownIds
.DrawingFlags == id ||
742
KnownIds
.StylusHeight == id ||
743
KnownIds
.CurveFittingError == id )
782
if (guid ==
KnownIds
.StylusHeight || guid ==
KnownIds
.StylusWidth ||
783
guid ==
KnownIds
.StylusTipTransform || guid ==
KnownIds
.StylusTip ||
784
guid ==
KnownIds
.DrawingFlags)
976
if ( e.PropertyGuid ==
KnownIds
.Color)
980
else if ( e.PropertyGuid ==
KnownIds
.StylusTip)
984
else if ( e.PropertyGuid ==
KnownIds
.StylusTipTransform)
988
else if ( e.PropertyGuid ==
KnownIds
.StylusHeight)
992
else if ( e.PropertyGuid ==
KnownIds
.StylusWidth)
996
else if ( e.PropertyGuid ==
KnownIds
.IsHighlighter)
1000
else if ( e.PropertyGuid ==
KnownIds
.DrawingFlags )
Shared\System\Windows\Ink\KnownIds.cs (2)
298
PublicMemberInfo = typeof(
KnownIds
).FindMembers(System.Reflection.MemberTypes.Field,
308
if ( id == (Guid)typeof(
KnownIds
).InvokeMember(info.Name,