public ICommand PreviewDropCommand{ get { return _PreviewDropCommand ?? (_PreviewDropCommand = new RelayCommand(HandlePreviewDrop)); } set { _PreviewDropCommand = value; NotifyPropertyChanged("PreviewDropCommand"); }} private ICommand _PreviewDropCommand;This looks very nice and keeps the definition of the backing field tied closely to the property getter/setter implementation.
No comments:
Post a Comment