0

I am using the following alert in the mvvmcross, I wonder how could I able to add a cancel button.

var alertConfig = new AlertConfig {
    Message = "it is not valid",
    OkText = "Okely",
    OnOk = () => { Debug.WriteLine("ok pressed"); }
};

Mvx.Resolve<IUserDialogs>().Alert(alertConfig);
casillas
  • 16,351
  • 19
  • 115
  • 215

1 Answers1

1

You probably want to use Confirm instead. Alert, as the name implies, is to Alert the user to something, and the only action is to dismiss the Alert.

Jason
  • 86,222
  • 15
  • 131
  • 146
  • Could you please check the following https://stackoverflow.com/questions/48757425/task-operation-on-datetime-object – casillas Feb 12 '18 at 23:50