private static void OnTextPropertyChanged(DependencyObject source, DependencyPropertyChangedEventArgs e) { ToolbarButton toolbarButton = source as ToolbarButton; toolbarButton.TextBlock.Text = toolbarButton.Text; }
private static void OnCommandPropertyChanged(DependencyObject source, DependencyPropertyChangedEventArgs e) { ToolbarButton toolbarButton = source as ToolbarButton; toolbarButton.Button.Command = toolbarButton.Command; }