private async void Button_Click_Novi(object sender, RoutedEventArgs e) { Views.AkcijaDetailPage adp = new AkcijaDetailPage(); await adp.ShowAsync(); await _model.SveAkcijeAsync(); listAkcije.DataContext = _model.AkcijeObservableCollection; }
private async void ItemView_ItemClick(object sender, ItemClickEventArgs e) { var akcija = ((Model.Akcija)e.ClickedItem); Views.AkcijaDetailPage adp = new AkcijaDetailPage(akcija); await adp.ShowAsync(); await _model.SveAkcijeAsync(); listAkcije.DataContext = _model.AkcijeObservableCollection; // Navigate to the appropriate destination page, configuring the new page // by passing required information as a navigation parameter //var itemId = ((SampleDataItem)e.ClickedItem).UniqueId; //if (!Frame.Navigate(typeof(ItemPage), itemId)) //{ // throw new Exception(this.resourceLoader.GetString("NavigationFailedExceptionMessage")); //} }