WPF Ribbon - Hide quick access toolbar

前端 未结 6 1059
野趣味
野趣味 2021-02-19 05:26

how do you hide Quick Access Toolbar in a WPF\'s Ribbon?

6条回答
  •  遇见更好的自我
    2021-02-19 05:54

    Or if you want it all in the XAML, this works

    
        CollapseQuickAccessToolbar
        
            private void CollapseQuickAccessToolbar(Object sender, RoutedEventArgs e) {
                ((Grid)VisualTreeHelper.GetChild((DependencyObject)sender, 0)).RowDefinitions[0].Height = new GridLength(0);
            }
        
    
    

提交回复
热议问题