I\'m using mvvm light to build a Silverlight application. Is there a code snippet that shows how to access a view model\'s property or command from within another view model
Another way is to use the overload of RaisePropertyChanged that also broadcasts the change. You would do this:
RaisePropertyChanged(() => MyProperty, oldValue, newValue, true);
Then in the subscriber:
Messenger.Default.Register>(this, Handler);
where T is the type of MyProperty.
Cheers Laurent