Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
new AlertDialog.Builder (this, (int)DialogThemes.Traditional)
should be Android.App.DialogThemes instead of int
AlertDialog.SetButton - whichButton should be DialogInterfaceButton
DialogClickEventArgs.Which is DialogInterfaceButton, but should be int, because in this context, it will also tell you which item was clicked in a list, which does not correspond to the enum
On DialogThemes, I noticed that I shouldn't have converted that from int to enum. I'm going to revert them and AlertDialog.Builder.ctor() will be kept as is.
Here is the reason: there is AlertDialog.ctor (Context context, int theme). It is from API Level 1. The int fields in AlertDialog were actually introduced in API Level 11. So, if we use enums for those values, it is now impossible to use that constructor in the earlier platforms.
Fixed DialogClickEventArgs.Which issue too. Actually reverted lots of similar "Which" stuff and removed DialogInterfaceButton enum (otherwise it will become just unusable).