How to call a call method from XAML to WPF?

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

+4
source share
2 answers

A typical way to handle this method is to port your method to ICommand and use the Team Infrastructure in WPF .

I blog about Commanding , demonstrating some of the benefits of this approach, especially when you use something like a RelayCommand implementation in Josh Smith's MVVM article .

+5
source

You can create a RelayCommand that inherits ICommand, and then create an ICommand property and assign the relay command to this property and call the method.

0
source

Source: https://habr.com/ru/post/1300091/


All Articles