public MainPage()
        {
            InitializeComponent();

            GlobalConsts.HideHomeButton();
            GlobalConsts.ShowSettingsButton();
            GlobalConsts.ShowAboutButton();
            GlobalConsts.ShowHelpButton();
            GlobalConsts.ShowSubscriptionsButton();

            VideoList = new List <Video>();
            client    = GlobalConsts.YoutubeClient;

            void UpdateSize(object s, SizeChangedEventArgs e)
            {
                double height = GlobalConsts.GetOffset() - (HeadlineStackPanel.ActualHeight + 75);

                GridScrollViewer.Height  = height;
                QueueScrollViewer.Height = height;
                BulkScrollViewer.Height  = height - 110;
                GridScrollViewer.UpdateLayout();
                QueueScrollViewer.UpdateLayout();
                BulkScrollViewer.UpdateLayout();
            }

            GlobalConsts.Current.SizeChanged += UpdateSize;
            Unloaded += (s, e) => GlobalConsts.Current.SizeChanged -= UpdateSize;

            GlobalConsts.MainPage = this;
        }
 public MainPage Load()
 {
     GlobalConsts.HideHomeButton();
     GlobalConsts.ShowSettingsButton();
     GlobalConsts.ShowAboutButton();
     GlobalConsts.ShowHelpButton();
     GlobalConsts.ShowSubscriptionsButton();
     return(this);
 }