private void Results_Button_Click(object sender, RoutedEventArgs e) { // Gather up details into an object WindowGlazer windowGlazer = new WindowGlazer { Height = System.Convert.ToDouble(Height_TextBox.Text), Width = System.Convert.ToDouble(Width_TextBox.Text), Quantity = Quantity_Slider.Value, Color = this.ColorSelection(), DateOrdered = DateTime.Now }; this.Frame.Navigate(typeof(DisplayResults), windowGlazer); }
protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); // Cast parameter to Window object and save to local variable. _window = (WindowGlazer)e.Parameter; }