Mvvm Light Command绑定
<Button Content="按钮" Command="{Binding ButtonCommand}"/>
// 按钮点击命令
public ICommand ButtonCommand
{
get
{
return new RelayCommand(
() => System.Windows.MessageBox.Show("当前时间:" + System.DateTime.Now.ToString())
);
}
}