Example #1
0
 public static DependencyPropertyKey RegisterAttachedReadOnly <TProperty>(string name, Type ownerType, TProperty defaultValue, PropertyChangedCallback handler)
 {
     return(DependencyPropertyManager.RegisterAttachedReadOnly(name, typeof(TProperty), ownerType, new ReadOnlyPropertyMetadataInternal(defaultValue, handler)));
 }
Example #2
0
 public static DependencyPropertyKey RegisterAttachedReadOnly <TProperty>(string name, Type ownerType, Action <DependencyObject> handler)
 {
     return(DependencyPropertyManager.RegisterAttachedReadOnly(name, typeof(TProperty), ownerType, new ReadOnlyPropertyMetadataInternal(default(TProperty), StaticCallback(handler))));
 }
Example #3
0
 public static DependencyProperty Register <TProperty, TOwner>(string name, Func <TOwner, Action> handlerFactory, Func <TOwner, Func <object, object> > coerceFactory, bool suspendable = false) where TOwner : DependencyObject
 {
     return(DependencyPropertyManager.Register(name, typeof(TProperty), typeof(TOwner), new PropertyMetadataXm(default(TProperty), Callback(handlerFactory, suspendable), Coerce(coerceFactory))));
 }
Example #4
0
 public static DependencyPropertyKey RegisterAttachedReadOnly <TProperty, TOwner>(string name, TProperty defaultValue)
 {
     return(DependencyPropertyManager.RegisterAttachedReadOnly(name, typeof(TProperty), typeof(TOwner), new ReadOnlyPropertyMetadataInternal(defaultValue)));
 }
Example #5
0
 public static DependencyPropertyKey RegisterAttachedReadOnly <TProperty>(string name, Type ownerType)
 {
     return(DependencyPropertyManager.RegisterAttachedReadOnly(name, typeof(TProperty), ownerType, new ReadOnlyPropertyMetadataInternal(default(TProperty))));
 }
Example #6
0
 public static DependencyProperty RegisterAttached <TProperty>(string name, Type ownerType, Action <DependencyObject, TProperty, TProperty> handler, Func <DependencyObject, TProperty, TProperty> coerce)
 {
     return(DependencyPropertyManager.RegisterAttached(name, typeof(TProperty), ownerType, new PropertyMetadataXm(default(TProperty), StaticCallback(handler), Coerce(coerce))));
 }
Example #7
0
 public static DependencyProperty RegisterAttached <TProperty>(string name, Type ownerType, TProperty defaultValue, PropertyChangedCallback handler, CoerceValueCallback coerce)
 {
     return(DependencyPropertyManager.RegisterAttached(name, typeof(TProperty), ownerType, new PropertyMetadataXm(defaultValue, handler, coerce)));
 }
Example #8
0
 public static DependencyProperty RegisterAttached <TProperty>(string name, Type ownerType, TProperty defaultValue, Action <DependencyObject> handler)
 {
     return(DependencyPropertyManager.RegisterAttached(name, typeof(TProperty), ownerType, new PropertyMetadataXm(defaultValue, StaticCallback(handler))));
 }
Example #9
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))));
 }
Example #10
0
 public static DependencyProperty RegisterAttached <TProperty, TOwner>(string name, PropertyMetadata propertyMetadata)
 {
     return(DependencyPropertyManager.RegisterAttached(name, typeof(TProperty), typeof(TOwner), propertyMetadata));
 }
Example #11
0
 public static DependencyProperty RegisterAttached <TProperty>(string name, Type ownerType, TProperty defaultValue)
 {
     return(DependencyPropertyManager.RegisterAttached(name, typeof(TProperty), ownerType, new PropertyMetadataXm(defaultValue)));
 }
Example #12
0
 public static DependencyProperty RegisterAttached <TProperty, TOwner>(string name, TProperty defaultValue, PropertyChangedCallback handler)
 {
     return(DependencyPropertyManager.RegisterAttached(name, typeof(TProperty), typeof(TOwner), new PropertyMetadataXm(defaultValue, handler)));
 }
Example #13
0
 public static DependencyProperty RegisterAttached <TProperty, TOwner>(string name, Action <DependencyObject, TProperty, TProperty> handler)
 {
     return(DependencyPropertyManager.RegisterAttached(name, typeof(TProperty), typeof(TOwner), new PropertyMetadataXm(default(TProperty), StaticCallback(handler))));
 }
Example #14
0
 public static DependencyProperty Register <TProperty, TOwner>(string name, PropertyChangedCallback handler) where TOwner : DependencyObject
 {
     return(DependencyPropertyManager.Register(name, typeof(TProperty), typeof(TOwner), new PropertyMetadataXm(default(TProperty), handler)));
 }
Example #15
0
 public static DependencyProperty RegisterAttached <TProperty, TOwner>(string name)
 {
     return(DependencyPropertyManager.RegisterAttached(name, typeof(TProperty), typeof(TOwner), new PropertyMetadataXm(default(TProperty))));
 }
Example #16
0
 public static DependencyProperty Register <TProperty, TOwner>(string name, TProperty defaultValue, Func <TOwner, Action <DependencyPropertyChangedEventArgs> > handlerFactory, bool suspendable = false) where TOwner : DependencyObject
 {
     return(DependencyPropertyManager.Register(name, typeof(TProperty), typeof(TOwner), new PropertyMetadataXm(defaultValue, Callback(handlerFactory, suspendable))));
 }