Command source disabling and enabling

后端 未结 1 360
清酒与你
清酒与你 2021-01-28 16:59

I read all about WPF commanding and i understand the GoF Command Pattern, still thought, i have one question about the process: how does the command target (for example a text b

1条回答
  •  失恋的感觉
    2021-01-28 17:25

    There is a class called CommandManager taking care of execution logic. You can call CommandManager.InvalidateRequerySuggested method to let system check your CanExecute methods.

    0 讨论(0)
提交回复
热议问题