This is a migrated thread and some comments may be shown as answers.

Handle client area in "Show below the ribbon"

1 Answer 54 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Patricio
Top achievements
Rank 1
Patricio asked on 07 Aug 2008, 09:40 PM
Hi:
I need to handle the client area when the user pick in the "Show below the ribbon", because the control expand and I don't take control over the new area. and the Quick Access Menu it's not accesible then.

Some idea for this:
|---------------------------
| Rad Ribboin Tooolbar
|---------------------------
| Client Area
|----------------------------

Thanks !

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 08 Aug 2008, 09:22 AM
Hi Patricio,

Thank you for your interest in RadRibbonBar.

You should use RadRibbonBar's QuickAccessToolbarBelowRibbon property that gets or sets if the quick access toolbar is below the ribbon.

We do not support the capability to turn off "Show below the ribbon", because it is a requirement from the 2007 Microsoft® Office system user interface design guidelines. Here is a quote from the document: "Right-clicking anywhere on the Ribbon SHOULD provide the option to “Show Quick Access Toolbar Below the Ribbon.”

Nevertheless, there is a workaround to to remove the "Show below the ribbon button" text:

1) Subscribe to the Opening event of the DropDownButton

public Form1() 
            InitializeComponent(); 
 
            RadElement quickAccesToolBar = this.radRibbonBar1.RibbonBarElement.QuickAccessToolBar; 
            RadToolStripOverFlowButtonElement overflowButton = 
                (RadToolStripOverFlowButtonElement) quickAccesToolBar.Children[1].Children[1]; 
            overflowButton.DropDownOpening += new CancelEventHandler(overflowButton_DropDownOpening); 
 

2) Collapse the button
private void overflowButton_DropDownOpening(object sender, CancelEventArgs e) 
            RadToolStripOverFlowButtonElement overflowButton = (RadToolStripOverFlowButtonElement) sender; 
            overflowButton.Items[overflowButton.Items.Count - 2].Visibility = ElementVisibility.Collapsed; 

 
Regards,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
RibbonBar
Asked by
Patricio
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or