public AttachedProperty RegisterProperty(string name, Type ownerType, Type propertyType, AttachedPropertyMetadata propertyMetadata) { var prop = new AttachedProperty(ownerType, propertyType, name); metadataStore.RegisterMetadata(ownerType, prop, propertyMetadata); return(prop); }
public ExtendedProperty RegisterProperty(string name, Type ownerType, Type propertyType, PropertyMetadata metadata) { var prop = new ExtendedProperty(propertyType, name); metadataStore.RegisterMetadata(ownerType, prop, metadata); return(prop); }