Skip to main content

ComboBoxStyleSettings Class

Defines the appearance of a common item list for a combo box editor's dropdown window.

Namespace: DevExpress.Xpf.Editors

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

#Declaration

public class ComboBoxStyleSettings :
    BaseComboBoxStyleSettings

#Remarks

Depending upon the type of object assigned to the combobox editor's BaseEdit.StyleSettings property, its popup window can be represented as a simple item list (ComboBoxStyleSettings), as a check box list with the enabled multi-selection feature (CheckedComboBoxStyleSettings), or as a radio button list (RadioComboBoxStyleSettings).

#Examples

The following example demonstrates how to apply style settings to the combobox editor.

<StackPanel>
    <dxe:ComboBoxEdit>
        <dxe:ComboBoxEdit.StyleSettings>
            <dxe:CheckedComboBoxStyleSettings/>
        </dxe:ComboBoxEdit.StyleSettings>
        <dxe:ComboBoxEditItem Content="Nancy Davolio"/>
        <dxe:ComboBoxEditItem Content="Andrew Fuller"/>
        <dxe:ComboBoxEditItem Content="Janet Leverling"/>
    </dxe:ComboBoxEdit>

    <dxe:ComboBoxEdit>
        <dxe:ComboBoxEdit.StyleSettings>
            <dxe:ComboBoxStyleSettings/>
        </dxe:ComboBoxEdit.StyleSettings>
        <dxe:ComboBoxEditItem Content="Canada"/>
        <dxe:ComboBoxEditItem Content="Italy"/>
        <dxe:ComboBoxEditItem Content="USA"/>
    </dxe:ComboBoxEdit>

    <dxe:ComboBoxEdit>
        <dxe:ComboBoxEdit.StyleSettings>
            <dxe:RadioComboBoxStyleSettings/>
        </dxe:ComboBoxEdit.StyleSettings>
        <dxe:ComboBoxEditItem Content="Seattle"/>
        <dxe:ComboBoxEditItem Content="London"/>
        <dxe:ComboBoxEditItem Content="Redmond"/>
    </dxe:ComboBoxEdit>
</StackPanel>

#Inheritance

Object
DispatcherObject
DependencyObject
Visual
UIElement
FrameworkElement
BaseEditStyleSettings
DevExpress.Xpf.Editors.TextEditStyleSettings
DevExpress.Xpf.Editors.ButtonEditStyleSettings
DevExpress.Xpf.Editors.PopupBaseEditStyleSettings
DevExpress.Xpf.Editors.BaseItemsControlStyleSettings<LookUpEditBase>
DevExpress.Xpf.Editors.BaseLookUpStyleSettings
BaseComboBoxStyleSettings
ComboBoxStyleSettings
See Also