Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }