79757507

Date: 2025-09-06 11:18:14
Score: 1.5
Natty:
Report link

Making sure that the views and view models in your subregion implement INavigationAware or IConfirmNavigationRequest will allow Prism to automatically call their OnNavigatedFrom/OnNavigatedTo methods during navigation. This is a more elegant way to take advantage of Prism's built-in navigation and region lifecycle management. To handle the subregion lifecycle consistently with the parent view and make your code cleaner and easier to maintain, think about utilizing scoped regions or navigation-aware actions rather than manually deleting views.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Haly Noor