How do I call a call method from XAML in WPF?
You Can create RelayCommand inheriting ICommand, and then create property of ICommand and assign relay command to that property and call the method.