Advertisement
Kuraj

Untitled

May 14th, 2011
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.83 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Windows;
  6. using System.Windows.Controls;
  7. using System.Windows.Data;
  8. using System.Windows.Documents;
  9. using System.Windows.Input;
  10. using System.Windows.Media;
  11. using System.Windows.Media.Imaging;
  12. using System.Windows.Navigation;
  13. using System.Windows.Shapes;
  14.  
  15. namespace Aquarius
  16. {
  17.     /// <summary>
  18.     /// Interaction logic for MainWindow.xaml
  19.     /// </summary>
  20.     public partial class MainWindow : Window
  21.     {
  22.         public MainWindow()
  23.         {
  24.             InitializeComponent();
  25.         }
  26.  
  27.         private void MainMenu_GotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
  28.         {
  29.             LayoutRoot.RowDefinitions.ElementAt(0).Height = new GridLength(23, GridUnitType.Pixel);
  30.         }
  31.  
  32.         private void MainMenu_LostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
  33.         {
  34.             LayoutRoot.RowDefinitions.ElementAt(0).Height = new GridLength(0, GridUnitType.Pixel);
  35.         }
  36.  
  37.         private void LyricsOpt_Checked(object sender, RoutedEventArgs e)
  38.         {
  39.             //NowPlaying.RowDefinitions.ElementAt(0).Height = new GridLength(1, GridUnitType.Star);
  40.         }
  41.  
  42.         private void LyricsOpt_Unchecked(object sender, RoutedEventArgs e)
  43.         {
  44.             //NowPlaying.RowDefinitions.ElementAt(0).Height = new GridLength(0, GridUnitType.Pixel);
  45.         }
  46.  
  47.         private void StatusBarOpt_Checked(object sender, RoutedEventArgs e)
  48.         {
  49.             LayoutRoot.RowDefinitions.ElementAt(3).Height = new GridLength(23, GridUnitType.Pixel);
  50.         }
  51.  
  52.         private void StatusBarOpt_Unchecked(object sender, RoutedEventArgs e)
  53.         {
  54.             LayoutRoot.RowDefinitions.ElementAt(3).Height = new GridLength(0, GridUnitType.Pixel);
  55.         }
  56.     }
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement