Lost Binding after Layout change. Details in video.
DataContext is not restored in non-active DocumentPanels when a layout is changed
Answers approved by DevExpress Support
We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.
Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.
- v16.1.4Download Official Update
- v15.2.11Download Official Update
- v15.1.11Download Official Update
Hi,
Thank you for sending us the video. I have checked it but the problem is not clear to us. Would you please send us a sample project or code that illustrates the problem in action? It will help us thoroughly research the problem and find its cause. We greatly appreciate your time and cooperation.
I look forward to your response.
Attached sample project and Video.
Hello Marek,
Thank you for providing the sample. I've researched it and found that the issue is related not to the third panel that is docked to a new group, but to the second panel remaining in your first DocumentGroup. When you dock your third panel, the context in all panels is refreshed, but the second panel's DataContext is not set back to the corresponding ViewModel. If you try to activate the second panel after the third panel is docked to a new DocumentGroup, you will see that the issue does not occur.
I've forwarded this thread to our developers for additional research. We will inform you as soon as we have any news.
As a temporary solution, enable caching in your DocumentGroup by setting its TabContentCacheMode to CacheAllTabs. See the modified sample in the attachment.
Thanks,
Andrey