18 lines
444 B
C#
18 lines
444 B
C#
using System;
|
|
using GalaSoft.MvvmLight;
|
|
using GalaSoft.MvvmLight.Command;
|
|
using HandyControl.Controls;
|
|
|
|
namespace HandyControlDemo.ViewModel
|
|
{
|
|
public class SearchBarDemoViewModel : ViewModelBase
|
|
{
|
|
public RelayCommand<string> SearchCmd => new Lazy<RelayCommand<string>>(() =>
|
|
new RelayCommand<string>(Search)).Value;
|
|
|
|
private void Search(string key)
|
|
{
|
|
Growl.Info(key);
|
|
}
|
|
}
|
|
} |