Skip to main content
A newer version of this page is available. .

LookUpEditBase.SetupComboBoxSettingsEnumItemSource<T>(LookUpEditSettingsBase) Method

Binds the enumeration to the specified LookUpEditSettingsBase object.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core

Declaration

public static void SetupComboBoxSettingsEnumItemSource<T>(
    LookUpEditSettingsBase settings
)

Parameters

Name Type Description
settings LookUpEditSettingsBase

A LookUpEditSettingsBase object that contains settings used to create an editor.

Type Parameters

Name
T

Remarks

T - an enumeration type, whose members represent the combo box items. If the specified object doesn’t represent the enumeration, an exception is thrown.

The SetupComboBoxSettingsEnumItemSource<T> method creates the list of items from the specified enumeration and assigns it to the LookUpEditBase.ItemsSource property.

See Also