using System; using GalaSoft.MvvmLight; #if netle40 using GalaSoft.MvvmLight.Command; #else using GalaSoft.MvvmLight.CommandWpf; # endif using HandyControl.Controls; namespace HandyControlDemo.ViewModel { public class SearchBarDemoViewModel : ViewModelBase { public RelayCommand SearchCmd => new Lazy>(() => new RelayCommand(Search)).Value; private void Search(string key) { Growl.Info(key); } } }