绑定到命令
namespace Example
{
public class MainWindowViewModel : ViewModelBase
{
public MainWindowViewModel()
{
DoTheThing = ReactiveCommand.Create(RunTheThing);
}
public ReactiveCommand<Unit, Unit> DoTheThing { get; }
void RunTheThing()
{
// 此处执行命令的代码。
}
}
}CommandParameter
绑定到方法
ICommand.Execute
ICommand.CanExecute
范例
最后更新于