I try to understand how commands work in WPF (I am working in Visual studio 2019). I have a button with
Command="{Binding MyMethod}" (in XAML) where MyMethod is a public void method without any arguments.
When run the application and I click the button, nothing happens. Why is that? And how can I fix it?