private void Click(object sender, RoutedEventArgs e) { if (sender == Logout) { App.Abmelden(null); } else if (sender == volumeOn || sender == volumeOff) { Sounddesign.PlaySoundAsync(Sounddesign.BUTTON_PUSH1); Sounddesign.CycleAmbient(); volumeOn.Visibility = Sounddesign.CURRENT_AMBIENT == null ? Visibility.Collapsed : Visibility.Visible; volumeOff.Visibility = Sounddesign.CURRENT_AMBIENT == null ? Visibility.Visible : Visibility.Collapsed; } }