Quantcast
Channel: Caliburn.Micro: Xaml Made Easy
Viewing all articles
Browse latest Browse all 1760

New Post: evaluating action guards in caliburn micro

$
0
0
Do I have to notify property changed in every function/property in view model for updating tool-bar's button status according to caliburn micro? That doesn't sound good.

Can I have my reflective command back ? or I missed something?
public void New()
 {
    // do something
    NotifyOfPropertyChange(() => CanFirst);
    NotifyOfPropertyChange(() => CanLast);
    NotifyOfPropertyChange(() => CanPrevious);
    NotifyOfPropertyChange(() => CanNext);
    NotifyOfPropertyChange(() => CanNew);
    NotifyOfPropertyChange(() => CanUpdate);
    NotifyOfPropertyChange(() => CanDelete);
    NotifyOfPropertyChange(() => CanSave);
    NotifyOfPropertyChange(() => CanActive);
    .
    .
    .
 }

Viewing all articles
Browse latest Browse all 1760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>