-
-
Notifications
You must be signed in to change notification settings - Fork 947
Issue with INavigationAware in version 3.0.5 #1169
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
INavigationAware behavior when inherited by both View and ViewModel:
"When both View and ViewModel inherit INavigationAware, the methods OnNavigatedFrom and OnNavigatedTo in the ViewModel do not get triggered. If I remove INavigationAware from the View, then it works normally in the ViewModel
To Reproduce
View:
public partial class ProductionVolumePage : INavigableView<ProductionVolumeViewModel>, INavigationAwareViewModel:
public class ProductionVolumeViewModel : ViewModelBase, INavigationAwareExpected behavior
Using the Wb2 control, when leaving a class, it requires creating and destroying controls in the View, and starting and stopping data update services in the ViewModel. This setup was functioning before the update to version 3.0.5, but now it no longer works.
Screenshots
No response
OS version
Version: Windows 11 Pro
Version Number: 23H2
Installation Date: February 29, 2024
Operating System Build: 22631.3880
.NET version
.NET 8.0
WPF-UI NuGet version
3.0.5
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working