public void NavigationButton_Click(object sender, RoutedEventArgs e)
 {
     //activityActionEvent(e);
     StopGame();
     OrganomediaLibrary.LogicUC.NavigationButton selectedNavigationButton = sender as OrganomediaLibrary.LogicUC.NavigationButton;
     EventNavigationButtonClick(selectedNavigationButton);
     MainFrame.NavigationService.Navigate(selectedNavigationButton.Frame);
     for (int i = uCNavigationBar.NavigationGridCount() - 1; i > (int)((sender as OrganomediaLibrary.LogicUC.NavigationButton).Tag); i--)
     {
         uCNavigationBar.RemoveIndex(i);
     }
     selectedNavigationButton.Select();
     //for (int i = 1; i < intEzer.Count; i++)
     //    uCNavigationBar.navigationGrid.Children.Remove(uCNavigationBar.navigationGrid.Children[intEzer[i]]);
     //currentButton.Select();
 }
 private void InitHomeButton()
 {
     HomeButton = new NavigationButton(ucGameScreen, DisplayName);
     HomeButton.VerticalAlignment          = VerticalAlignment.Stretch;
     HomeButton.VerticalContentAlignment   = VerticalAlignment.Center;
     HomeButton.HorizontalContentAlignment = HorizontalAlignment.Center;
     HomeButton.HorizontalAlignment        = HorizontalAlignment.Stretch;
     //HomeButton.MinHeight = 70;
     HomeButton.Tag    = 2;
     HomeButton.Click += NavigationButton_Click;
     HomeButton.Select();
     currNavigationButton = HomeButton;
     uCNavigationBar.Add(HomeButton);
     navigationFrame.NavigationService.Navigate(uCNavigationBar);
     //HomeButton.Visibility = Visibility.Collapsed;
 }