//Метод перехода на страницу сайта private void AboutTestBorder_MouseLeftClick(object sender, MouseButtonEventArgs e) { UserControl usc; usc = new UserControlManual(); GridMain.Children.Add(usc); }
//Метод реализующий функционал меню. public void ListViewMenu_SelectionChanged(object sender, SelectionChangedEventArgs e) { UserControl usc; ChangeUserName(); GridMain.Children.Clear(); string CurrentItem; CurrentItem = (((ListViewItem)((ListView)sender).SelectedItem).Name); if (CurrentItem == "TestSelection") { usc = new UserControlTestSelection(); GridMain.Children.Add(usc); } if (CurrentItem == "MainPage") { usc = new UserControlMainPage(); GridMain.Children.Add(usc); } if (CurrentItem == "Manual") { usc = new UserControlManual(); GridMain.Children.Add(usc); } if (CurrentItem == "PersonalAccount") { UserControlPersonalAccount usc1 = new UserControlPersonalAccount { DataUser = DataUser }; usc1.FillingFields(); GridMain.Children.Add(usc1); } }