private static void OnUrlChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { var button = (MarkdownButton)d; button.Url = (string)e.NewValue; }