private static void OnHubAttach(DependencyObject source, DependencyPropertyChangedEventArgs prop) { DefaultButtonHub hub = prop.NewValue as DefaultButtonHub; hub.Attach(source); }
public static void SetDefaultHub(DependencyObject obj, DefaultButtonHub value) { obj.SetValue(DefaultHubProperty, value); }