【发布时间】:2013-02-27 14:22:19
【问题描述】:
代码很简单。首先启用按钮。单击它会被禁用并保持这种状态。
Command = new ReactiveAsyncCommand();
Command
.RegisterAsyncObservable(_ => AsyncMethod())
.SubscribeOn(RxApp.DeferredScheduler)
.Subscribe(value =>
{
UseValue(value);
});
如果 can execute 参数为 null,CanExecute 不应该始终为真吗? (我猜 CanExecute 是错误的,导致按钮被禁用)
【问题讨论】:
标签: .net wpf reactiveui