Beispiel #1
0
        private void ViewQuote_Click(object sender, RoutedEventArgs e)
        {
            // Identify the currently selected quote and send to view page.

            // Return back to call if nothing selected.
            if (QuotesList.SelectedIndex < 0)
            {
                return;
            }

            // Prep quote variable with seleted quote.
            DeskQuote quote = (DeskQuote)QuotesList.SelectedItem;

            // Navigate to the Display page
            this.Frame.Navigate(typeof(DisplayQuote), quote);
        }
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     // Cast parameter to DeskQuote object and save to local variable.
     _Quote = (DeskQuote)e.Parameter;
 }