private void ThemeButton_Click(object sender, RoutedEventArgs e) { SoundManager.PlayClickSound(); var clickedButton = sender as Button; var id = clickedButton.GetValue(UidProperty); ThemeManager.ApplyBase(isDark: id.Equals("Dark") ? true : false); }