예제 #1
0
 public static DependencyPropertyKey RegisterReadOnly <TProperty, TOwner>(string name, TProperty defaultValue, Action <TOwner> handler, bool suspendable = false) where TOwner : DependencyObject
 {
     return(DependencyPropertyManager.RegisterReadOnly(name, typeof(TProperty), typeof(TOwner), new ReadOnlyPropertyMetadataInternal(defaultValue, Callback(handler, suspendable))));
 }
예제 #2
0
 public static DependencyPropertyKey RegisterReadOnly <TProperty, TOwner>(string name, TProperty defaultValue, Func <TOwner, Action <DependencyProperty> > handlerFactory, Func <TOwner, Func <TProperty, TProperty> > coerceFactory, bool suspendable = false) where TOwner : DependencyObject
 {
     return(DependencyPropertyManager.RegisterReadOnly(name, typeof(TProperty), typeof(TOwner), new PropertyMetadataXm(defaultValue, Callback(handlerFactory, suspendable), Coerce(coerceFactory))));
 }
예제 #3
0
 public static DependencyPropertyKey RegisterReadOnly <TProperty, TOwner>(string name, TProperty defaultValue) where TOwner : DependencyObject
 {
     return(DependencyPropertyManager.RegisterReadOnly(name, typeof(TProperty), typeof(TOwner), new ReadOnlyPropertyMetadataInternal(defaultValue)));
 }