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()))); }
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)))); }
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)))); }