コード例 #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))));
 }