I have the following setup
Assume the tab control has 3 tabs in it with each tabs content being a view with its own view model. Each of the 3 tabs have a edit mode. Now when a user edits something in tab 1 and then clicks on tab 2 without saving, I want to alert the user with a confirmation
message saying "You have unsaved changes. Do you wish to continue to navigate?" using a InteractionRequest.
As far as I understand the IConfirmNavigationRequest interface handles this. But its ConfirmNavigationRequest gets called only when the RegionManager is attempting to switch views within a region. i.e. say when it tries to navigate away from ModuleA to ModuleB
in the MainRegion. But my scenario above is not the case. In my case the ModuleAView remains in the MainRegion, but its a navigation between the tabs in the view.
How should I handle this? Do I need to create TabRegionAdapter instead? If yes then can you post and example demonstrating the same?