lepoco / wpfui

WPF UI provides the Fluent experience in your known and loved WPF framework. Intuitive design, themes, navigation and new immersive controls. All natively and effortlessly.
https://wpfui.lepo.co
MIT License
7.74k stars 756 forks source link

Fix: failing to correctly trigger the methods of the INavigationAware interface. #1177

Closed textGamex closed 3 months ago

textGamex commented 4 months ago

Pull request type

Please check the type of change your PR introduces:

What is the current behavior?

When both the View and ViewModel inherit from the INavigationAware interface, only the OnNavigatedToAsync/OnNavigatedFromAsync methods of the View are triggered

Issue Number: #1169

What is the new behavior?

Other information

The order in which the OnNavigatedToAsync/OnNavigatedFromAsync methods of View and ViewModel are called is not guaranteed