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