示例#1
0
        /// <summary>
        /// Show the Speaker Details page
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SpeakerSelected(object sender, SelectionChangedEventArgs e)
        {
            var listbox = sender as ListBox;

            if (listbox == null || listbox.SelectedIndex == -1)
            {
                return;
            }

            var speaker = e.AddedItems[0] as Person;

            if (speaker == null)
            {
                return;
            }

            // navigate
            NavigationService.Navigate(PageUri.SpeakerPage(speaker.ID));

            // de-select
            listbox.SelectedIndex = -1;
        }
示例#2
0
 private void SpeakerInfoClicked(object sender, System.Windows.RoutedEventArgs e)
 {
     NavigationService.Navigate(PageUri.SpeakerPage(viewModel.Speaker.ID));
 }