using System; using System.Windows; namespace Muchinfo.DataPager.Extensions { public static class DependencyPropertyExtensions { public static DependencyProperty Register(string name, Type propertyType, Type ownerType) { return DependencyProperty.Register(name, propertyType, ownerType, null); } public static DependencyProperty Register(string name, Type propertyType, Type ownerType, PropertyMetadata typeMetadata) { return DependencyProperty.Register(name, propertyType, ownerType, typeMetadata); } public static DependencyProperty Register(string name, Type propertyType, Type ownerType, PropertyMetadata typeMetadata, ValidateValueCallback validateValueCallback) { return DependencyProperty.Register(name, propertyType, ownerType, typeMetadata, validateValueCallback); } public static DependencyProperty RegisterAttached(string name, Type propertyType, Type ownerType) { return DependencyProperty.RegisterAttached(name, propertyType, ownerType, null); } public static DependencyProperty RegisterAttached(string name, Type propertyType, Type ownerType, PropertyMetadata typeMetadata) { return DependencyProperty.RegisterAttached(name, propertyType, ownerType, typeMetadata); } public static DependencyProperty RegisterAttached(string name, Type propertyType, Type ownerType, PropertyMetadata typeMetadata, ValidateValueCallback validateValueCallback) { return DependencyProperty.RegisterAttached(name, propertyType, ownerType, typeMetadata, validateValueCallback); } public static DependencyPropertyKey RegisterAttachedReadOnly(string name, Type propertyType, Type ownerType, PropertyMetadata typeMetadata) { return DependencyProperty.RegisterAttachedReadOnly(name, propertyType, ownerType, typeMetadata); } public static DependencyPropertyKey RegisterAttachedReadOnly(string name, Type propertyType, Type ownerType, PropertyMetadata typeMetadata, ValidateValueCallback validateValueCallback) { return DependencyProperty.RegisterAttachedReadOnly(name, propertyType, ownerType, typeMetadata, validateValueCallback); } public static DependencyPropertyKey RegisterReadOnly(string name, Type propertyType, Type ownerType, PropertyMetadata typeMetadata) { return DependencyProperty.RegisterReadOnly(name, propertyType, ownerType, typeMetadata); } public static DependencyPropertyKey RegisterReadOnly(string name, Type propertyType, Type ownerType, PropertyMetadata typeMetadata, ValidateValueCallback validateValueCallback) { return DependencyProperty.RegisterReadOnly(name, propertyType, ownerType, typeMetadata, validateValueCallback); } } }