PropertyObserver
var monitor = PropertyObserver.For(person)
.Observe(p => p.FirstName)
.Observe(p => p.LastName);
monitor.Changed += (s, e) =>
{
//occurs when one of the properties change.
};var monitor = PropertyObserver.ForAllPropertiesOf(person);
monitor.Changed += (s, e) =>
{
//occurs when one of the properties change.
};var monitor = PropertyObserver.ForAllPropertiesOf( person );
DelegateCommand.Create()
.OnCanExecute(state =>
{
//evaluate if the command can be executed.
return true;
})
.OnExecute(state =>
{
//execute the command
})
.AddMonitor(monitor);Last updated