ComboBoxEditEx
Ecng.Xaml
The drop-down list to select single value.
Inherits: ComboBoxEdit
Constructors
ComboBoxEditEx
public ComboBoxEditEx()
comboBoxEditEx = ComboBoxEditEx()
Initializes a new instance of the ComboBoxEditEx.
Properties
ComboBoxEditExStyleKey
public static ComponentResourceKey ComboBoxEditExStyleKey { get; }
value = ComboBoxEditEx.ComboBoxEditExStyleKey
Gets the resource key for the default Style of ComboBoxEditEx.
IsNullable
public bool IsNullable { get; set; }
value = comboBoxEditEx.IsNullable
comboBoxEditEx.IsNullable = value
Is nullable.
IsSearchable
public bool IsSearchable { get; set; }
value = comboBoxEditEx.IsSearchable
comboBoxEditEx.IsSearchable = value
Is searchable.
ShowObsolete
public bool ShowObsolete { get; set; }
value = comboBoxEditEx.ShowObsolete
comboBoxEditEx.ShowObsolete = value
Show obsolete.
SortOrder
public ListSortDirection? SortOrder { get; set; }
value = comboBoxEditEx.SortOrder
comboBoxEditEx.SortOrder = value
Sort order.
Source
public IItemsSource Source { get; private set; }
value = comboBoxEditEx.Source
comboBoxEditEx.Source = value
Current IItemsSource.
Value
public object Value { get; set; }
value = comboBoxEditEx.Value
comboBoxEditEx.Value = value
Current value.
Methods
CreateEditorSettings
protected override BaseEditSettings CreateEditorSettings()
result = comboBoxEditEx.CreateEditorSettings()
CreateEditStrategy
protected override EditStrategyBase CreateEditStrategy()
result = comboBoxEditEx.CreateEditStrategy()
OnEditModeChanged
protected override void OnEditModeChanged(EditMode oldValue, EditMode newValue)
comboBoxEditEx.OnEditModeChanged(oldValue, newValue)
OnItemsSourceChanged
protected override void OnItemsSourceChanged(object oldValue, object itemsSource)
comboBoxEditEx.OnItemsSourceChanged(oldValue, itemsSource)
Called when the ItemsSource property changes.
- oldValue
- Old value of the ItemsSource property.
- newValue
- New value of the ItemsSource property.
OnValueMemberChanged
protected override void OnValueMemberChanged(string valueMember)
comboBoxEditEx.OnValueMemberChanged(valueMember)
TryConvertBaseValue
protected virtual object TryConvertBaseValue(SelectorPropertiesCoercionHelper helper, object bv)
result = comboBoxEditEx.TryConvertBaseValue(helper, bv)
Attempts to convert the base value to an edit value using the helper.
- helper
- The selector coercion helper.
- bv
- The base value.
Returns: The converted edit value.
TryConvertEditValue
protected virtual object TryConvertEditValue(object ev)
result = comboBoxEditEx.TryConvertEditValue(ev)
Attempts to convert the edit value to a value acceptable by the editor. The default implementation returns the original value.
- ev
- The edit value.
Returns: The converted value, or null to use the original value.
UpdateBindings
protected virtual void UpdateBindings()
comboBoxEditEx.UpdateBindings()
Auto update bindings when dependency properties changed.
Fields
IsNullableProperty
public static readonly DependencyProperty IsNullableProperty
value = ComboBoxEditEx.IsNullableProperty
Is nullable.
IsSearchableProperty
public static readonly DependencyProperty IsSearchableProperty
value = ComboBoxEditEx.IsSearchableProperty
Is searchable.
ShowObsoleteProperty
public static readonly DependencyProperty ShowObsoleteProperty
value = ComboBoxEditEx.ShowObsoleteProperty
Show obsolete.
SortOrderProperty
public static readonly DependencyProperty SortOrderProperty
value = ComboBoxEditEx.SortOrderProperty
Sort order.
ValueProperty
public static readonly DependencyProperty ValueProperty
value = ComboBoxEditEx.ValueProperty
Current value.