)
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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to hide the floating toolbar in the WinForms RibbonControlAdv while switching to BackStage?

Platform: WinForms |
Control: RibbonControlAdv |
Published Date: November 21, 2014 |
Last Revised Date: January 8, 2020

Hide the floating toolbar

In the RibbonControlAdv, when you switch to backstage, you can hide the Floating Toolbar by using the property, Visible, in the CommandBar. When the Floating Toolbar is MainFrameBarManager, it can be hidden by using the property, BarVisible.

C#

//The event is raised once backstage visibility is changed.
void BackStage_VisibleChanged(object sender, EventArgs e)
{
    if (!backStageView1.BackStage.Visible)
    {
        //Shows the toolbars.
        this.commandBar1.Visible = true;
        this.mainFrameBarManager1.BarVisible = true;
    }
    else if (backStageView1.BackStage.Visible == true)
    {
        //Hides the toolbars.
        this.commandBar1.Visible = false;
        this.mainFrameBarManager1.BarVisible = false;
    }
}

 

VB

'The event is raised once backstage visibility is changed.
Private Sub BackStage_VisibleChanged(ByVal sender As Object, ByVal e As EventArgs)
    If Not backStageView1.BackStage.Visible Then
        'Shows the toolbars.
        Me.commandBar1.Visible = True
        Me.mainFrameBarManager1.BarVisible = True
    ElseIf backStageView1.BackStage.Visible = True Then
        'Hides the toolbars.
        Me.commandBar1.Visible = False
        Me.mainFrameBarManager1.BarVisible = False
    End If
End Sub

 

Floating toolbar in RibbonForm

Figure 1: Floating Toolbar in RibbonForm

Hide the floating toolbar

Figure 2: Floating Toolbar hidden

Samples:

C#: FloatingToolBar_C#

VB: FloatingToolBar_VB

2X faster development

The ultimate WinForms 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