Class RibbonComboBox
Represents a RibbonComboBox control that is used to type a value or select an item from a list of predefined options.
Inheritance
System.Object
RibbonComboBox
Implements
Namespace: Syncfusion.UI.Xaml.Ribbon
Assembly: Syncfusion.Ribbon.WinUI.dll
Syntax
public class RibbonComboBox : ComboBox, IRibbonItem
Constructors
RibbonComboBox()
Initializes a new instance of the RibbonComboBox class.
Declaration
public RibbonComboBox()
Fields
DisplayOptionsProperty
Identifies the DisplayOptions property.
Declaration
public static readonly DependencyProperty DisplayOptionsProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
IconProperty
Identifies the Icon dependency property.
Declaration
public static readonly DependencyProperty IconProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
ScreenTipProperty
Identifies the ScreenTip property.
Declaration
public static readonly DependencyProperty ScreenTipProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
Properties
DisplayOptions
Gets or sets the way that the ribbon items are displayed in different LayoutModeOptions.
Declaration
public DisplayOptions DisplayOptions { get; set; }
Property Value
Type | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
DisplayOptions | The default value is Normal | Simplified. Fields:
|
Icon
Gets or sets the graphic content of the RibbonComboBox.
Declaration
public IconElement Icon { get; set; }
Property Value
Type |
---|
Microsoft.UI.Xaml.Controls.IconElement |
ScreenTip
Gets or sets the ScreenTip that is used to show a pop-up window when the pointer hovers over a ribbon item to provide details about its functionality.
Declaration
public ScreenTip ScreenTip { get; set; }
Property Value
Type | Description |
---|---|
ScreenTip | The default is null. |
Examples
< ribbon:RibbonComboBox>
<ribbon:RibbonComboBoxItem Content = "10" />
< ribbon:RibbonComboBoxItem Content = "15" IsSelected="True"/>
<ribbon:RibbonComboBoxItem Content = "20" />
< ribbon:RibbonComboBoxItem Content = "25" />
< ribbon:RibbonComboBox.ScreenTip>
<ribbon:ScreenTip Title = "Font Size" Content="It shows the list of font size"/>
</ribbon:RibbonComboBox.ScreenTip>
</ribbon:RibbonComboBox>
Methods
GetContainerForItemOverride()
Declaration
protected override DependencyObject GetContainerForItemOverride()
Returns
Type |
---|
Microsoft.UI.Xaml.DependencyObject |
OnApplyTemplate()
Contains the template logic of RibbonComboBox.
Declaration
protected override void OnApplyTemplate()
Explicit Interface Implementations
IRibbonItem.Clone()
This method is used to clone the RibbonComboBox
Declaration
FrameworkElement IRibbonItem.Clone()
Returns
Type |
---|
Microsoft.UI.Xaml.FrameworkElement |