Disable NavigationPane

Hi there,

is it possible to disable the navigation pane in StackMode while collapsed.
StackMode is exactly what I need, but this Navigation pane in collapsed mode is not necessary in my use case.

Thanks in advance for your help.

Kindly
Philipp

3 Replies 1 reply marked as answer

VR Vijayalakshmi Roopkumar Syncfusion Team September 30, 2020 10:30 AM UTC

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 


Marked as answer

PH Philipp October 1, 2020 05:54 PM UTC

Thanks for your reply.

I hope that can help me.
Kindly,
Philipp


SG Saravanan Ganesan Syncfusion Team October 2, 2020 08:28 AM UTC

Hi Philipp,

Thanks for your update.

We are glad to be of assistance.

Regards,
Saravanan

Loader.
Up arrow icon