I have a diagram defined inside a docking window that can be hidden.
The NavigationPane works fine updating when there are changes to my diagram. However when I hide the Docking panel that contains the diagram (hiding the diagram), the navigation pane doesn't get updated anymore.
Is there a way to workaround that?
5 Answers, 1 is accepted
This is an interesting scenario. I have tested the NavigationPane in the RadDocking and it is updated as expected. May I ask you to share your application set-up. What do you mean by hiding the window? I have tested the navigation pane using the following code.
Also, you can list the exact steps so I can try to reproduce this on my side.
Thanks for the reply.
This is my xaml below.
The NavigationPane is closed by default due to performance concerns. If I close the docking pane that contains my diagram (notice that the navigation pane is outside the docking pane) using the "X" button on top right and then open my navigation pane, it shows empty and doesn't get refreshed even if I set the ShouldRefreshThumbnails boolean to true.
Thank you for the provided code snippet.
I have double check this and the navigation pane was not empty when the Pane with the Diagram is closed. I am attaching the sample project which I used to test your scenario. May I ask you to check it out and let me know what I am missing from your implementation. Also, in the code snippet, it seems that you are using NoXAML binaries. Can you share which theme is referenced and which version of out controls are used?
Looking forward to your reply.
Thanks for your sample.
I've downloaded here, replaced with my dlls(2019.1.116.40 no xaml) and the xaml files from the same version (using office 2016 theme) and I could reproduce the problem. the steps are.
1)Start the app with the navigation collapsed.
2) Close the Docking panel that contains the diagram
3) Expand the navigation. The navigation now shows empty.
Let me know if following these steps you can reproduce the issue.
Thank you for the provided steps.
I manage to reproduce this behavior. Basically, if the navigation pane is not expanded when the diagram was visible, the control will not load the diagram items. The approach here is to use the IsExpanded property. I have searched for a possible solution and I think I manage to found one. I know that it will need to show and hide the navigation pane but using this approach I was able to workaround the flickering. Basically, you can set the IsExpanded property to true initially and set it to false in the Loaded event. Then when the RadPane is closed you can again show the navigationPane set again the diagram and refresh the thumb. This approach is only in case the navigation pane is not expanded. If the NavigationPane is expanded while the Diagram is visible everting works as expected.