Exemple #1
0
        private void GoBackBtn_Click(object sender, RoutedEventArgs e)
        {
            FrontPage fp = new FrontPage();

            fp.Show();
            this.Close();
        }
Exemple #2
0
        private void HamburgerMenuControl_OnItemClick(object sender, ItemClickEventArgs e)
        {
            if (e.ClickedItem == item_logout)
            {
                FrontPage newFp = new FrontPage();
                newFp.Show();
                this.Close();
            }
            else
            {
                // set the content
                this.HamburgerMenuControl.Content = e.ClickedItem;
                selectedIndex = this.HamburgerMenuControl.SelectedIndex;
            }

            // close the pane
            this.HamburgerMenuControl.IsPaneOpen = false;
        }