SubsetComboBox

Ecng.Xaml

The drop-down list to select a set of fields.

Inherits: ComboBoxEditEx

Constructors

SubsetComboBox
public SubsetComboBox()
subsetComboBox = SubsetComboBox()

Initializes a new instance of the ComboBoxEditEx.

Properties

DisplaySelectedItemsCount
public bool DisplaySelectedItemsCount { get; set; }
value = subsetComboBox.DisplaySelectedItemsCount
subsetComboBox.DisplaySelectedItemsCount = value

Display selected items count.

SubsetComboBoxStyleKey
public static ComponentResourceKey SubsetComboBoxStyleKey { get; }
value = SubsetComboBox.SubsetComboBoxStyleKey

Gets the resource key for the default Style of SubsetComboBox.

Methods

CoerceEditValue
protected override object CoerceEditValue(DependencyObject d, object value)
result = subsetComboBox.CoerceEditValue(d, value)
CreateEditorSettings
protected override BaseEditSettings CreateEditorSettings()
result = subsetComboBox.CreateEditorSettings()
GetDisplayText
protected override string GetDisplayText(object editValue, bool applyFormatting)
result = subsetComboBox.GetDisplayText(editValue, applyFormatting)
TryConvertBaseValue
protected override object TryConvertBaseValue(SelectorPropertiesCoercionHelper helper, object baseValue)
result = subsetComboBox.TryConvertBaseValue(helper, baseValue)

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 override object TryConvertEditValue(object ev)
result = subsetComboBox.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 override void UpdateBindings()
subsetComboBox.UpdateBindings()

Auto update bindings when dependency properties changed.

Fields

DisplaySelectedItemsCountProperty
public static readonly DependencyProperty DisplaySelectedItemsCountProperty
value = SubsetComboBox.DisplaySelectedItemsCountProperty

Display selected items count.