I have currently a button on my page to commit the changes that the user has implemented using the DataForm.
It sort of seams a little redundant as the end user makes the change then clicks commit and then has to click Save changes.
I would like to bind the command directly to the commit changes button.
Is that possible?
public
ICommand SaveChangesCommand {
get
;
set
; }
SaveChangesCommand =
new
DelegateCommand(SaveChanges, CanSaveChanges);
private
bool
CanSaveChanges(
object
param)
{
return
true
;
}
private
void
SaveChanges(
object
param)
{
_organisations.SubmitChanges();
}