wpfvb.netstylet

Share a boolean property between the mainviewmodel and the others viewmodels in Stylet MVVM (vb.net)


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?


Solution

  • Solved using Public Property and onpropertychange