This repository has been archived by the owner on Jun 20, 2023. It is now read-only.
Make it so that AlertDialog.Builder.SetOnCancelListener accepts a delegate/lambda #240
Labels
feature-request
investigating
Currently investigating issue
not-an-issue
Question answered, or not actually an issue
not-on-roadmap
Not currently planned
Android.Support.V7.App.AlertDialog.Builder
has 4 interesting methods:SetPositiveButton(string, EventHandler<DialogClickEventArgs>)
,SetNeutralButton(string, EventHandler<DialogClickEventArgs>)
,SetNegativeButton(string, EventHandler<DialogClickEventArgs>)
andSetOnCancelListener(IDialogInterfaceOnCancelListener)
. While the first 3 make it easy for the developer to set an action for the user input (I can just saySetPositiveButton("Confirm", delegate { MyAction(); })
, the fourth one requires the developer to create a class that implementsIDialogInterfaceOnCancelListener
and implement just this one methodOnCancel(IDialogInterface)
. It would be very helpful if we could do withSetOnCancelListener
the same that we do with the others, that being just setting a delegate as the action, for exampleSetOnCancelListener(delegate { MyAction(); })
.The text was updated successfully, but these errors were encountered: