private ComboBox CreateComboBox(DataEntryControls styleProvider, ControlRow control) { ComboBox comboBox = new ComboBox(); comboBox.ToolTip = control.Tooltip; comboBox.Width = control.Width; foreach (string choice in control.GetChoices()) { comboBox.Items.Add(choice); } comboBox.SelectedIndex = 0; Style style = styleProvider.FindResource(ControlContentStyle.ChoiceComboBox.ToString()) as Style; comboBox.Style = style; return comboBox; }
public FileTableChoiceColumn(ControlRow control) : base(control) { this.choices = control.GetChoices(); this.defaultValue = control.DefaultValue; }