internal void ComboTextFieldChanged(object sender, EventArgs e) { owner.BeginInvoke((Action)delegate { owner.OnImpSelectedItemChanged(sender, e); owner.OnTextUpdate(e); owner.OnTextChanged(e); combo.ReloadData(); }); }
public static void ClearDataSource(this NSComboBox comboBox) { comboBox.UsesDataSource = true; comboBox.StringValue = string.Empty; comboBox.DataSource = CocoaTool.GenerateComboBoxDataSourceFromEnum <EmptyEnum>(); comboBox.ReloadData(); }
public static void SetDataSourceEx <T>(this NSComboBox comboBox, IEnumerable <T> dataSource, Func <T, string> getValue, bool includeEmptyRow = true) { comboBox.UsesDataSource = true; comboBox.DataSource = ComboBoxDataSourceEx.FromData(dataSource, getValue, includeEmptyRow); comboBox.ReloadData(); comboBox.StringValue = string.Empty; }
void SourceChanged(object sender, ListRowEventArgs e) { // FIXME: we need to find a more efficient way comboBox?.ReloadData(); }