public static IProperty GetProperty(string name, IPlatformMetadata platformMetadata) { XamlProcessingAttributes.Initialize(platformMetadata); IPropertyId propertyId; if (!XamlProcessingAttributes.properties.TryGetValue(name, out propertyId)) { return((IProperty)null); } return(platformMetadata.ResolveProperty(propertyId)); }
public static bool IsProcessingAttribute(IProperty propertyKey) { XamlProcessingAttributes.Initialize(propertyKey.DeclaringType.PlatformMetadata); foreach (IPropertyId propertyId in XamlProcessingAttributes.properties.Values) { if (propertyId == propertyKey || propertyId.Equals((object)propertyKey)) { return(true); } } return(false); }