Articles in this section
Category / Section

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

2 mins read

Hide the floating toolbar

In the WinForms RibbonControl, 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

 

Conclusion

I hope you enjoyed learning about how to hide the floating toolbar in the WinForms RibbonControlAdv while switching to BackStage.

You can refer to our   WinForms RibbonControl’s feature tour page to know about its other groundbreaking feature representations. You can also explore our WinForms RibbonControl documentation to understand how to present and manipulate data. 

For current customers, you can check out our WinForms components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our WinForms RibbonControl and other WinForms components.

If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

 

 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied