Hi Philipp,
Thank you for contacting Syncfusion Support.
We have checked the reported requirement regarding to disable the navigation pane on stack mode on collapsing the GroupBar. In Groupbar, the navigation pane is used to show the GroupBarItems in collapsed mode. However you can able to restrict its visibility by using the following code:
Code:[C#]
private void group_Loaded(object sender, RoutedEventArgs e)
{
Grid grid1 = VisualUtils.FindDescendant(sender as GroupBar, typeof(Grid)) as Grid;
if(grid1 != null)
{
StackPanel stackpanel1 = VisualUtils.FindDescendant(grid1, typeof(StackPanel)) as StackPanel;
foreach (var children in stackpanel1.Children)
{
//Collapse the Navigation Pane ToggleButton
if (children is ToggleButton)
{
(children as ToggleButton).Visibility = Visibility.Collapsed;
}
}
}
}
|
In this sample, we have fetched the toggle button maintained as Navigationpane and set its visibility as collapsed.
Before customization:
After customization:
Please try this solution and let us know if it is helpful.
Regards,
Vijayalakshmi VR