I am building a NavigationView project where users can switch between multiple themes at runtime.
The NavigationView contains 5 navigation items in total, and 2 of them have hierarchical child items.
The initial theme works correctly.
However, after running the application, if I select a child item in the hierarchy, for example `Products > Categories`, and then change the theme while that view is active, some issues occur.
The issues I observed are:
1. `RadNavigationView.SelectedItem` still appears to point to the child item `Categories`, but in the UI, the parent item appears collapsed, as if all expanded states were closed.
2. If issue 1 is resolved manually, the user may be able to click the item again with the mouse. However, I suspect that changing the theme with the keyboard arrow keys in the Theme ComboBox may behave differently from selecting a theme with the mouse.
I could not find a Telerik demo that shows how to handle runtime theme switching with a hierarchical `RadNavigationView`.
Could you help identify the cause of this behavior?
Also, is there a recommended approach for preserving the selected item, expanded state, and item styles when changing themes at runtime in a hierarchical `RadNavigationView`?
I have attached a sample project. The license key has been removed.
The NavigationView contains 5 navigation items in total, and 2 of them have hierarchical child items.
The initial theme works correctly.
However, after running the application, if I select a child item in the hierarchy, for example `Products > Categories`, and then change the theme while that view is active, some issues occur.
The issues I observed are:
1. `RadNavigationView.SelectedItem` still appears to point to the child item `Categories`, but in the UI, the parent item appears collapsed, as if all expanded states were closed.
2. If issue 1 is resolved manually, the user may be able to click the item again with the mouse. However, I suspect that changing the theme with the keyboard arrow keys in the Theme ComboBox may behave differently from selecting a theme with the mouse.
I could not find a Telerik demo that shows how to handle runtime theme switching with a hierarchical `RadNavigationView`.
Could you help identify the cause of this behavior?
Also, is there a recommended approach for preserving the selected item, expanded state, and item styles when changing themes at runtime in a hierarchical `RadNavigationView`?
I have attached a sample project. The license key has been removed.
