public EnumSettingView(IEnumSettingViewModel model) { InitializeComponent(); _model = model; _descriptions = _model.GetValueDescriptions(); _comboBox = new ComboBox() { ItemsSource = _descriptions }; _comboBox.SelectedIndex = model.GetValueIndex(); _comboBox.SetValue(AutomationProperties.NameProperty, ServicesVSResources.Value); _comboBox.SelectionChanged += ComboBox_SelectionChanged; _ = RootGrid.Children.Add(_comboBox); }
public EnumSettingView(IEnumSettingViewModel model) { InitializeComponent(); DataContext = model; _model = model; }