Hello,
I would like to hide the pane toggle button. Consequently I set the PaneToggleButtonVisibility to "Collapsed" but I get the same render as I set "Hidden".
That would be nice if this space no longer exists when we set the property to collapsed.
The code sample I used:<telerik:RadNavigationView x:Name="navigationView" PaneToggleButtonVisibility="Collapsed">
<telerik:RadNavigationView.Items>
<telerik:RadNavigationViewItem Content="Foo">
<telerik:RadNavigationViewItem.Icon>
<telerik:RadGlyph Glyph="" FontSize="20" />
</telerik:RadNavigationViewItem.Icon>
</telerik:RadNavigationViewItem>
</telerik:RadNavigationView.Items>
</telerik:RadNavigationView>
Thanks,
Hello Olivier,
If setting the PaneToggleButtonVisibility to Collapsed automatically leads to setting the PaneHeaderHeight to 0, this will result in the PaneHeader no longer being visible as well:
The suggested by you improvement would only be applicable for scenarios where the PaneHeader is null or not needed.
The mentioned issue with the border named HeaderBackground, shown when the control is in its Minimal mode is already implemented and will be part of the next LIB, scheduled for the beginning of next week. With the fix, setting both PaneToggleButtonVisibility to Collapsed and PaneHeaderHeight to 0, you will be able to achieve the desired look and feel.
Best Regards,
Vicky
Progress Telerik
Hello Vicky,
That's works for me thanks!
A possible improvement could be to set automatically the PaneHeaderHeight to 0 when the property is "collapsed".
Regards,
Hi Olivier,
Thanks a lot for the provided resources.
The header area of the NavigationView control consists of the PaneToggleButton and the PaneHeader elements. This means that if the needed end result is to hide the whole area, you need to take care of both elements. Setting the PaneToggleButtonVisibility to Collapsed/Hidden only hides the button, yet the header remains visible and that's the reason why the space is kept.
To hide the header area, two things need to be done - setting PaneToggleButtonVisibility to Collapsed and the PaneHeaderHeight to 0. Following this approach, you may notice a small issue when the control is in its Minimal mode - there is a special border named HeaderBackground which is shown only in this mode. This issue is already brought to the attention of the development team and will be part of the next LIB, scheduled for the beginning of next week. With the fix, the end result when the control is in Minimal mode will look like the following image:
Please, try out the above suggestions and let me know if they deliver the desired result. I am looking forward to your reply.
Regards,
Vicky
Progress Telerik