public bool SelectAll
{
get { return this.Get<bool>("SelectAll"); }
set
{
this.Set<bool>("SelectAll", value);
if (this.SelectAllCommand.CanExecute(null))
this.SelectAllCommand.Execute(value);
}
}
私のコードとして、チェックボックスが必要です-すべての機能を選択します。「すべて選択」を手動でクリックすると、SelectAllCommand を実行したいのですが、チェックボックスが自動的に選択されている場合、CanExecute は false を返すはずです....
CanExecuteにパラメータを渡す方法がわかりません...どうすれば完璧にできますか...?
前もって感謝します