Command-Binding in WPF Button (ButtonAdv)

The ButtonAdv control supports Commanding. The Command and Command Parameter properties, enables the user to execute any action on clicking the instance.

The Command can be binded as follows:

<sync:ButtonAdv SizeMode="Large" LargeIcon="Employee-WF.png" Command="{Binding CustomCommand}" CommandParameter="{Binding Path=Label, ElementName=Custom}"/>
CustomCommand = new DelegateCommand(Execute, CanExecute);

public ICommand CustomCommand { get; set; }

private bool CanExecute(object arg)

    return true;

private void Execute(object obj)