We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set the KeyTip for collapsed RibbonBar in WPF Ribbon control?

Platform: WPF |
Control: Ribbon |
Published Date: May 20, 2015 |
Last Revised Date: April 13, 2021

You can set the KeyTip to collapse the RibbonBar by using the KeyTipOnCollapsed property in WPF Ribbon control. You can access the items in the collapsed RibbonBar with KeyTip by using the keyboard.

XAML

<Syncfusion:Ribbon  Name="ribbon"  VerticalAlignment="Top">
      <Syncfusion:Ribbon.QuickAccessToolBar>
            <Syncfusion:QuickAccessToolBar Syncfusion:WindowChrome.IsHitTestVisibleInChrome="True"/>
      </Syncfusion:Ribbon.QuickAccessToolBar>
      <Syncfusion:RibbonTab Syncfusion:Ribbon.KeyTip="F"  Caption="Folder" IsChecked="False" FlowDirection="LeftToRight">
           <Syncfusion:RibbonBar KeyTipOnCollapsed="C" Header="Clean Up">
                <Syncfusion:RibbonComboBox >
                     <Syncfusion:RibbonComboBoxItem Content="Cleanup Folder"/>
                     <Syncfusion:RibbonComboBoxItem Content="Cleanup Folder and Sub Folders"/>
                </Syncfusion:RibbonComboBox>
                <Syncfusion:RibbonButton SizeForm="Small" SmallIcon="/Resources/Delete-All.png" Label="Delete All"/>
                <Syncfusion:RibbonButton SizeForm="Small"  SmallIcon="/Resources/Recover-Deleted Items.png" Label="Recover Deleted Items"/>
           </Syncfusion:RibbonBar>
           <Syncfusion:RibbonBar Name="ribbonBar" KeyTipOnCollapsed="P" Header="Properties">
                <Syncfusion:RibbonButton SizeForm="Small" SmallIcon="/Resources/Show-in-Favorites.png" Label="Show in Favourites"/>
                <Syncfusion:RibbonButton SizeForm="Small" SmallIcon="/Resources/Properties.png" Label="Folder Properties"/>
                <Syncfusion:RibbonButton SizeForm="Small" SmallIcon="/Resources/Archive.png" Label="Auto Archieve Settings"/>
           </Syncfusion:RibbonBar>
      </Syncfusion:RibbonTab>
      <Syncfusion:RibbonTab Syncfusion:Ribbon.KeyTip="S"  Caption="Send/Receive" IsChecked="False" FlowDirection="LeftToRight"/>
</Syncfusion:Ribbon>

 

C#

ribbonBar.KeyTipOnCollapsed = "P";

 

The following screenshot displays the RibbonBar before collapsing.

Before collapse the RibbonBar in WPF Ribbon control

The following screenshot displays the KeyTip for the collapsed RibbonBar.

After collapse the RibbonBar in WPF Ribbon control

View sample in GitHub.

2X faster development

The ultimate WPF UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon