private void OnItemTap(object sender, Telerik.Windows.Controls.ListBoxItemTapEventArgs e) { Project task = ((sender as RadDataBoundListBox).SelectedItem as Lazy <Project>).Value; if (task != null) { ShowProjectDetails(task); } }
private void ResultsContracts_ItemTap(object sender, Telerik.Windows.Controls.ListBoxItemTapEventArgs e) { try { ViewModelLocator.MainStatic.SearchItem.CurrentContractItem = (ContractItem)ResultsContracts.SelectedItem; NavigationService.Navigate(new Uri("/Pages/ContractDetailPage.xaml", UriKind.Relative)); } catch { }; }
private void Tasks_ItemTap(object sender, Telerik.Windows.Controls.ListBoxItemTapEventArgs e) { Task task = ((sender as RadDataBoundListBox).SelectedItem as TableIndex <Task, int, int>).LazyValue.Value; if (task != null) { ShowTaskDetails(task); } }
private void ScrollToPost(object sender, Telerik.Windows.Controls.ListBoxItemTapEventArgs e) { var item = e.Item.AssociatedDataItem.Value as Data.ThreadPostSource; if (item != null) { this.pagePresenter.ScrollToPost(item); } this.ClosePostList(null, null); }
private void ForumItemSelector_ItemTap(object sender, Telerik.Windows.Controls.ListBoxItemTapEventArgs e) { var item = e.Item.AssociatedDataItem.Value as Data.ForumDataSource; if (!item.Handled) { var frame = App.Current.RootVisual as PhoneApplicationFrame; item.NavigateToForum(frame.Navigate); } else { item.Handled = false; } }
private void ThreadListBox_ItemTap(object sender, Telerik.Windows.Controls.ListBoxItemTapEventArgs e) { var item = e.Item.AssociatedDataItem.Value as ThreadDataSource; NavigateToThreadView(item); }
private void MovieListBox_ItemTap(object sender, Telerik.Windows.Controls.ListBoxItemTapEventArgs e) { ItemViewModel movieCategory = this.MovieListBox.SelectedItem as ItemViewModel; NavigationService.Navigate(new Uri("/VideoPage.xaml?name=" + HttpUtility.UrlEncode(movieCategory.Title) + "&url=" + HttpUtility.UrlEncode(movieCategory.URL) + "&avatar=" + HttpUtility.UrlEncode(movieCategory.ImageSource.ToString()), UriKind.Relative)); }
private void ScrollToPost(object sender, Telerik.Windows.Controls.ListBoxItemTapEventArgs e) { this.PageManager.ScrollToPost(e.Item.AssociatedDataItem.Value as Data.ThreadPostSource); this.IsPostJumpListVisible = false; }