예제 #1
0
 private void goBack()
 {
     NewManager.GetAllNews(News);
     TitleTextBlock.Text            = "Home";
     MenuListViewsItem.SelectedItem = null;
     BackButton.Visibility          = Visibility.Collapsed;
 }
예제 #2
0
        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;
        }