Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
Disable switching tabs on XamTabControl

I am needing to disable switching tabs when a specific ViewModel type is opened inside a tab.

I am sharing a dataconext between one ViewModel and the elements contained inside PrintSections on another viewmodel. This is causing the Print Tab to refresh every time the data on the other ViewModel changes which is undesirable. Our solution is to disable tab switching when a print ViewModel is open until the tab is closed. Once the ViewModel is closed then tab switching would be enabled like normal.

Is there any suggestions on disabling tab switching while a specific ViewModel is open? If there are any recommendations to fix the root problem of datacontext being synced with changes then I would also be open to fixing that.



Parents Reply Children
No Data