private static void BackgroundColorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { BindableAppBar bab = (BindableAppBar)d; Color value = (Color)e.NewValue; bab.ApplicationBar.BackgroundColor = value; bab._selectedBackgroundColor = value; }