How do I call a call method from XAML in WPF?

前端 未结 3 792

How do I call a call method from XAML in WPF?

3条回答
  •  误落风尘
    2020-12-19 10:45

    The typical way this is handled is by wrapping your method into an ICommand, and using the Commanding infrastructure in WPF.

    I blogged about Commanding, showing some of the advantages of this approach, especially when you use something like the RelayCommand implementation in Josh Smith's MVVM article.

提交回复
热议问题