Exemple #1
0
        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);
        }
Exemple #2
0
        public ExtendedProperty RegisterProperty(string name, Type ownerType, Type propertyType,
                                                 PropertyMetadata metadata)
        {
            var prop = new ExtendedProperty(propertyType, name);

            metadataStore.RegisterMetadata(ownerType, prop, metadata);
            return(prop);
        }