コード例 #1
0
		public MainPage()
		{
			this.InitializeComponent();

			RedditViewModel viewModel = new RedditViewModel();

			listBox1.ItemsSource = viewModel.Entries;
		}
コード例 #2
0
		/// <summary>
		/// Invoked when this page is about to be displayed in a Frame.
		/// </summary>
		/// <param name="e">Event data that describes how this page was reached.
		/// This parameter is typically used to configure the page.</param>
		protected override void OnNavigatedTo(NavigationEventArgs e)
		{
			RedditViewModel viewModel = new RedditViewModel();

			listBox1.ItemsSource = viewModel.Entries;
		}