public static DependencyProperty Register <TProperty, TOwner>(string name, TProperty defaultValue, Func <TOwner, Action <TProperty, TProperty> > handlerFactory, Func <TOwner, Func <TProperty, TProperty> > coerceFactory, bool suspendable = false) where TOwner : DependencyObject { return(DependencyPropertyManager.Register(name, typeof(TProperty), typeof(TOwner), new PropertyMetadataXm(defaultValue, Callback(handlerFactory, suspendable), Coerce(coerceFactory)))); }
public static DependencyProperty Register <TProperty, TOwner>(string name, Action <TOwner> handler, bool suspendable = false) where TOwner : DependencyObject { return(DependencyPropertyManager.Register(name, typeof(TProperty), typeof(TOwner), new PropertyMetadataXm(default(TProperty), Callback(handler, suspendable)))); }
public static DependencyProperty Register <TProperty, TOwner>(string name, TProperty defaultValue, PropertyChangedCallback handler) where TOwner : DependencyObject { return(DependencyPropertyManager.Register(name, typeof(TProperty), typeof(TOwner), new PropertyMetadataXm(defaultValue, handler))); }
public static DependencyProperty Register <TProperty, TOwner>(string name) where TOwner : DependencyObject { return(DependencyPropertyManager.Register(name, typeof(TProperty), typeof(TOwner), new PropertyMetadataXm(default(TProperty)))); }