示例#1
0
 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))));
 }
示例#2
0
 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))));
 }
示例#3
0
 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)));
 }
示例#4
0
 public static DependencyProperty Register <TProperty, TOwner>(string name) where TOwner : DependencyObject
 {
     return(DependencyPropertyManager.Register(name, typeof(TProperty), typeof(TOwner), new PropertyMetadataXm(default(TProperty))));
 }