Example #1
0
 internal static DependencyPropertyKey RegisterReadOnly <TProperty, TOwner>(string name, TProperty defaultValue) where TOwner : DependencyObject
 {
     return(RegisterReadOnlyImpl(name, typeof(TProperty), typeof(TOwner), new PropertyMetadata(defaultValue, DPM.CreateDefaultCallback())));
 }
Example #2
0
 internal static DependencyPropertyKey RegisterReadOnly <TProperty, TOwner>(string name, TProperty defaultValue, Func <TOwner, Action <TProperty, TProperty> > handlerFactory) where TOwner : DependencyObject
 {
     return(RegisterReadOnlyImpl(name, typeof(TProperty), typeof(TOwner), new PropertyMetadata(defaultValue, DPM.Callback(handlerFactory))));
 }
Example #3
0
 internal static DependencyProperty RegisterAttached <TProperty>(string name, Type ownerType, TProperty defaultValue = default(TProperty),
                                                                 Action <DependencyObject> handler = null)
 {
     return(RegisterAttachedImpl(name, typeof(TProperty), ownerType, new PropertyMetadata(defaultValue, DPM.StaticCallback(handler))));
 }