private void BtnGPSConfig_Click(object sender, RoutedEventArgs e) { ((OfflineMapsViewModel)this.DataContext).GetSerialDevices(); HubGPSConfig.GetFirstDescendantOfType <ComboBox>().SelectedItem = ((OfflineMapsViewModel)this.DataContext).SelectedDevice; ScrollToSectionAnimated(Hub, HubGPSConfig); BtnMainMenu.Visibility = Visibility.Visible; }
private void BtnNMEA_Checked(object sender, RoutedEventArgs e) { if (HubGPSConfig.GetFirstDescendantOfType <ComboBox>().SelectedItem != null) { BoxDevices_SelectionChanged(HubGPSConfig.GetFirstDescendantOfType <ComboBox>(), null); } }