Understand WPF Binding CommandParameter=“{Binding}”

后端 未结 2 1311
闹比i
闹比i 2020-12-06 09:03

Maybe this is a dumb question, but I can\'t find the answer: in the following xaml what does CommandParameter binding to? Or in general, what does \"{Bind

2条回答
  •  無奈伤痛
    2020-12-06 09:27

    An Empty {Binding} will pass the current DataContext of the control to the Executed and CanExecute methods respectively.

提交回复
热议问题