System.Windows.DependencyProperty.AddOwner C# (CSharp) Method

AddOwner() public method

public AddOwner ( Type ownerType, System.Windows.PropertyMetadata typeMetadata ) : DependencyProperty
ownerType Type
typeMetadata System.Windows.PropertyMetadata
return DependencyProperty
        public DependencyProperty AddOwner(Type ownerType, PropertyMetadata typeMetadata)
        {
            if (typeMetadata == null) typeMetadata = new PropertyMetadata ();
            OverrideMetadata (ownerType, typeMetadata);

            // MS seems to always return the same DependencyProperty
            return this;
        }

Same methods

DependencyProperty::AddOwner ( Type ownerType ) : DependencyProperty