private void CompatComboBox_SelectionChanged()

in AppInstallerFileBuilder/AppInstallerFileBuilder/Views/MainPackageView.xaml.cs [307:344]


        private void CompatComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            switch (_compatComboBox.SelectedIndex)
            {
                case 0: //1809 and above
                    Debug.WriteLine("0");
                    _1809updateSettingsStackPanel.Visibility = Visibility.Visible;
                    _1803updateSettingsStackPanel.Visibility = Visibility.Visible;
                    _1709updateSettingsStackPanel.Visibility = Visibility.Visible;
                    App.AppInstallerFileSchemaNamespace = "http://schemas.microsoft.com/appx/appinstaller/2018";
                    _scrollViewer.ChangeView(0.0f, _scrollViewer.ScrollableHeight, 1.0f);
                    break;
                case 1: //1803 and above
                    Debug.WriteLine("1");
                    _1809updateSettingsStackPanel.Visibility = Visibility.Collapsed;
                    _1803updateSettingsStackPanel.Visibility = Visibility.Visible;
                    _1709updateSettingsStackPanel.Visibility = Visibility.Visible;
                    _showPromptSwitch.IsOn = false;
                    _blockUpdateSwitch.IsOn = false;
                    App.AppInstallerFileSchemaNamespace = "http://schemas.microsoft.com/appx/appinstaller/2017/2";
                    _scrollViewer.ChangeView(0.0f, _scrollViewer.ScrollableHeight/2.5, 1.0f);
                    break;
                case 2: //1709 and above
                    Debug.WriteLine("2");
                    _1809updateSettingsStackPanel.Visibility = Visibility.Collapsed;
                    _1803updateSettingsStackPanel.Visibility = Visibility.Collapsed;
                    _1709updateSettingsStackPanel.Visibility = Visibility.Visible;
                    _showPromptSwitch.IsOn = false;
                    _blockUpdateSwitch.IsOn = false;
                    _autoUpdateSwitch.IsOn = false;
                    _forceUpdateSwitch.IsOn = false;
                    App.AppInstallerFileSchemaNamespace = "http://schemas.microsoft.com/appx/appinstaller/2017";
                    break;
                default:
                    Debug.WriteLine("default");
                    break;
            }
        }