private void goBack() { NewManager.GetAllNews(News); TitleTextBlock.Text = "Home"; MenuListViewsItem.SelectedItem = null; BackButton.Visibility = Visibility.Collapsed; }
public MainPage() { this.InitializeComponent(); MenuItems = new ObservableCollection <MenuItems>(); News = new ObservableCollection <New>(); MenuItems.Add(new MenuItems { IconFile = "/Assets/Icons/Politics.jpg", Category = NewsCategory.Politics }); MenuItems.Add(new MenuItems { IconFile = "/Assets/Icons/Weather.png", Category = NewsCategory.Weather }); MenuItems.Add(new MenuItems { IconFile = "/Assets/Icons/Technology.jpg", Category = NewsCategory.Technology }); MenuItems.Add(new MenuItems { IconFile = "/Assets/Icons/Entertainment.png", Category = NewsCategory.Entertainment }); NewManager.GetAllNews(News); BackButton.Visibility = Visibility.Collapsed; }