private void DgBookings_OnSelectionChanged(object sender, SelectionChangedEventArgs e) { if (dgBookings.SelectedItem != null) { _title = new ContentTitle("Vis booking"); ContentControlTitle.Content = _title; ContentControlAddEdit.Content = new ShowBooking(_fService.GetBookingByID(GetSelectedBookingID())); } }