menu

Class RibbonItemsHost - WinUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class RibbonItemsHost

    Represents a panel that arranges the IRibbonItem elements into a single, two or three lines that can oriented horizontally in a RibbonGroup.

    Inheritance
    System.Object
    RibbonItemsHost
    Implements
    IRibbonItem
    Namespace: Syncfusion.UI.Xaml.Ribbon
    Assembly: Syncfusion.Ribbon.WinUI.dll
    Syntax
    public class RibbonItemsHost : Panel, IRibbonItem

    Constructors

    RibbonItemsHost()

    Declaration
    public RibbonItemsHost()

    Fields

    MaxRowCountProperty

    Identifies the MaxRowCount property.

    Declaration
    public static readonly DependencyProperty MaxRowCountProperty
    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

    DisplayOptions is not applicable for RibbonItemsHost. Even if it get set, it won't work.

    Declaration
    public DisplayOptions DisplayOptions { get; set; }
    Property Value
    Type
    DisplayOptions

    Icon

    Icon is not applicable for RibbonItemsHost. Even if it get set, it won't work.

    Declaration
    public IconElement Icon { get; set; }
    Property Value
    Type
    Microsoft.UI.Xaml.Controls.IconElement

    MaxRowCount

    Gets or sets the maximum count of rows, in which IRibbonItem are arranged inside the RibbonItemsHost.

    Declaration
    public int MaxRowCount { get; set; }
    Property Value
    Type Description
    System.Int32

    The default value is 3.

    Remarks

    MaxRowCount accepts value between 1 to 3. If any other value gets assigned, exception may occur.

    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:RibbonItemsHost MaxRowCount="2">
         <ribbon:RibbonComboBox x:Name="FontComboBox"
                                Width="200"
                                AllowFocusOnInteraction="True"
                                PlaceholderForeground="#A2A2A2"
                                PlaceholderText="Select Font">
             <ribbon:RibbonComboBoxItem Content = "Calibri"
                                        IsSelected="True" />
             <ribbon:RibbonComboBoxItem Content = "Arial" />
             < ribbon:RibbonComboBoxItem Content = "Segoe UI" />
         </ ribbon:RibbonComboBox>
         <ribbon:RibbonItemsHost.ScreenTip>
             <ribbon:ScreenTip Title = "FontComboBox" Content="Pick a new font for your text."/>
         </ribbon:RibbonItemsHost.ScreenTip>
     </ribbon:RibbonItemsHost>

    Methods

    ArrangeOverride(Size)

    Declaration
    protected override Size ArrangeOverride(Size finalSize)
    Parameters
    Type Name Description
    Windows.Foundation.Size finalSize
    Returns
    Type
    Windows.Foundation.Size

    MeasureOverride(Size)

    Declaration
    protected override Size MeasureOverride(Size availableSize)
    Parameters
    Type Name Description
    Windows.Foundation.Size availableSize
    Returns
    Type
    Windows.Foundation.Size

    Explicit Interface Implementations

    IRibbonItem.Clone()

    This method is used to clone the RibbonItemHost control.

    Declaration
    FrameworkElement IRibbonItem.Clone()
    Returns
    Type
    Microsoft.UI.Xaml.FrameworkElement

    Implements

    IRibbonItem
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved