0

I'm working on a wpf app using Stylet MVVM framework (VM first approach). In MainViewModel I have a property called IsProjectLoaded, that work as a flag to known if the user has loaded it and do proper actions. This flag should be triggered from the others VMs, one is for example OpenProjectViewModel (used to actually open the file project). Later I'll need to share the data loaded as well Which is the simplest way to have di "Global Flag/property" shared?

  • In MVVM Light you can use messaging to notify between view models, maybe this Stylet has a similar set of functionality? – Kevin Cook Feb 03 '22 at 13:17
  • If I correctly understand what it is messaging, I think Stylet have not. –  Feb 04 '22 at 07:20

1 Answers1

0

Solved using Public Property and onpropertychange

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Aug 27 '22 at 04:41
  • I don't think so. –  Sep 05 '22 at 13:23