/// <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. The Parameter /// property is typically used to configure the page.</param> protected override void OnNavigatedTo(NavigationEventArgs e) { //AnimacaoTranslate(); //AnimaOpacity(); // AnimacaoRotate(); noticiaVM = e.Parameter as NoticiaVM; ltvNoticias.ItemsSource = noticiaVM.Noticias; DataContext = noticiaVM.Noticia; noticiaVM.Noticia.Titulo = "Título da Notícia"; noticiaVM.Noticia.Categoria = "Categoria"; noticiaVM.Noticia.Texto = "Texto"; noticiaVM.Noticia.URL = "http://www.fundosanimais.com/Imagens/imagens-lobos.jpg"; }
/// <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. The Parameter /// property is typically used to configure the page.</param> protected override void OnNavigatedTo(NavigationEventArgs e) { noticiaVM = e.Parameter as NoticiaVM; ltvNoticias.ItemsSource = noticiaVM.Noticias; }