void Handle_ItemSelected(object sender, Xamarin.Forms.SelectedItemChangedEventArgs e) { var item = e.SelectedItem as Folder; var page = new FilesPage(item.Path) { Title = item.Name }; Navigation.PushAsync(page); }
void Handle_ItemSelected(object sender, Xamarin.Forms.SelectedItemChangedEventArgs e) { var item = e.SelectedItem as MainPageDetailItem; if (item == null) { return; } var page = new FilesPage(item.Action); page.Title = item.Title; Navigation.PushAsync(page); ListFolders.SelectedItem = null; }