public PasangerInformation()
 {
     this.InitializeComponent();
     HomeModel homeModel = new HomeModel();
     CommonModel.bgImage = homeModel.bgImage;
     imgBack.Source = homeModel.bgImage;
     WM = new PassengerRequiredfield();
     PassengerIn _PassengerIn = new PassengerIn();
     ListMenuItemsPassenger.DataContext = _PassengerIn;
 }
 private void txtAgeP_GotFocus(object sender, RoutedEventArgs e)
 {
     TextBox _txt = sender as TextBox;
     if (_txt != null)
     {
         selectedPassenger = (_txt.DataContext as PassengerRequiredfield);
     }
     AgesPopup.Visibility = Visibility.Visible;
     var items = new List<SelectAgeRadio>();
     for (int runs = 1; runs <= 100; runs++)
     {
         items.Add(new SelectAgeRadio() { Name = runs });
     }
     ListMenuItemsAges.ItemsSource = items;
 }
 private void txtGender_GotFocus(object sender, RoutedEventArgs e)
 {
     TextBox _txt = sender as TextBox;
     if (_txt != null)
     {
         selectedPassenger = (_txt.DataContext as PassengerRequiredfield);
     }
     GenderPopUpGrid.Visibility = Visibility.Visible;
 }