Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
50
XamRibbon Hide ApplicationMenu/QAT bar
posted

Hi,

I want to have a XamRibbon tabs in my app, but also want to have few controls underneath (buttons in my attached project).

I am not able to hide the extra bar at the tob of the XamRibbon. The QuickAccessToolbar visibility is set to Collapsed.

 InfraRibbonWindow.zip

  • 7535
    Offline posted

    Hello Somanna,

    I snooped the application and find this top area is rootVisual and its set to some minHeight ,I set it to 0 removed this area as you want.

    So something like this would help:

    private void XamRibbon_Loaded(object sender, RoutedEventArgs e)
    
        {
    
            XamRibbon ribbon = sender as XamRibbon;
    
     
    
            Grid grid = Utilities.GetDescendantFromName(ribbon, "rootVisual") as Grid;
    
     
    
            if (grid != null)
    
            {
    
                grid.RowDefinitions[0].MinHeight = 0;
    
            }
    
     
    
        }