예제 #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))));
 }