private void StartBtn_Click(object sender, RoutedEventArgs e) { if (StartMenu.Visibility == Visibility.Visible) { StartMenu.CloseMenu(); StartMenu.Visibility = Visibility.Collapsed; } else { StartMenu.OpenMenu(); StartMenu.Visibility = Visibility.Visible; } MusicControl2.Visibility = Visibility.Collapsed; }