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

RibbonToolbarComboBox Class

Namespace: DevExpress.WinUI.Ribbon

Assembly: DevExpress.WinUI.Ribbon.v21.1.dll

Declaration

[ContentProperty(Name = "Items")]
public class RibbonToolbarComboBox :
    RibbonComboBoxBase,
    IRibbonToolbarItem,
    IRibbonItemBase,
    IVisualItem

Remarks

Use the RibbonToolbarComboBox class to add a combobox to the RibbonToolbarControl.

The following code sample displays a RibbonToolbarComboBox in a RibbonToolbarControl:

<Ribbon:RibbonToolbarControl>
    <Ribbon:RibbonToolbarTab Caption="Home" >
        <Ribbon:RibbonToolbarGroup Caption="File">
            <Ribbon:RibbonToolbarComboBox Header="Font Size" Width="100">
                <ComboBoxItem>10</ComboBoxItem>
                <ComboBoxItem>12</ComboBoxItem>
                <ComboBoxItem>14</ComboBoxItem>
                <ComboBoxItem>16</ComboBoxItem>
                <ComboBoxItem>18</ComboBoxItem>
                <ComboBoxItem>20</ComboBoxItem>
            </Ribbon:RibbonToolbarComboBox>
        </Ribbon:RibbonToolbarGroup>
    </Ribbon:RibbonToolbarTab>
</Ribbon:RibbonToolbarControl>

Customize Appearance

You can use the following properties to customize the RibbonToolbarComboBox appearance:

Property Description
Background Gets or sets a RibbonToolbarButton unfocused state background.
BorderBrush Gets or sets a RibbonToolbarButton unfocused state border brush.
BorderThickness Gets or sets a RibbonToolbarButton unfocused border thickness.
Foreground Gets or sets a RibbonToolbarButton unfocused state foreground.
Height Gets or sets a RibbonToolbarButton height.
Margin Gets or sets a RibbonToolbarButton margin.
Opacity Gets or sets RibbonToolbarButton opacity.
ToolTipService.ToolTip Gets or sets a RibbonToolbarButton tooltip.
ToolTipService.Placement Gets or sets a RibbonToolbarButton tooltip position.
Visibility Gets or sets RibbonToolbarButton visibility.
Width Gets or sets a RibbonToolbarButton width.

Inheritance

Object
DependencyObject
UIElement
FrameworkElement
Control
ItemsControl
Selector
ComboBox
DevExpress.WinUI.Ribbon.RibbonComboBoxBase
RibbonToolbarComboBox
See Also