Skip to content

Improve NavigationService for automatic ObservableRecipient activation #29

@LeftTwixWand

Description

@LeftTwixWand

Issue #28 describes how to use CommunityToolkit.Mvvm.Messaging for ViewModels communication. The only one problem here, is every ViewModel which listens for a message, has to be manually activated: IsActive = true; to start listening.
So, it would be good to automatically activate such ViewModels somewhere in the NavigationService.
As a bad solution - all the ObservableRecipient instances can be activated in the Autofac container callback after they've being resolved.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestlayer/applicationMeans some changes in the Application layerlayer/infrastructureMeans some changes in the Infrastructure layer

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions