public void HandleCanExecuteChanged(object sender, EventArgs e)
{
var reflectiveCommand = sender as ReflectiveCommand;
if (reflectiveCommand != null)
{
if (reflectiveCommand.CommandOption == CommandOption.Hide)
{
reflectiveCommand.CommandButton.Hidden = !reflectiveCommand.CanExecute(null);
}
else
{
reflectiveCommand.CommandButton.Enabled = reflectiveCommand.CanExecute(null);
}
MonoMobileApplication.CurrentDialogViewController.UpdateSource();
}
}
}