Auto Command binding
class MyViewModel : AbstractViewModel
{
public void DoSomething()
{
//perform work
}
}<Button Command="{markup:AutoCommandBinding Path=DoSomething}" />class MyViewModel : AbstractViewModel
{
public void DoSomething()
{
//perform work
}
public bool CanDoSomething
{
get{ return true; /* or false */ }
}
}Last updated