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