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.
DialogInterface.ButtonPositive is reported deprecated (same for negative button) but according to the documentation this is not deprecated but actually added new:
We are also observing same behavior at
> DialogInterface.ButtonPositive is reported deprecated
The reason it's deprecated is because there is a dedicated enum for it, as mentioned in the message, and the enum should be preferred:
> This constant will be removed in the future version.
> Use Android.Content.DialogButtonType enum directly instead of this field.
Xamarin.Android doesn't directly mirror the Java types (e.g. adding events, prefixing interface names with 'I', PascalCasing members), and replacing 'static final const int' members with enums is yet another change that we make.
I see. The problem is: if you use Intellisense and type "DialogInterface." it will only show "[deprecated] The identifier for the positive button".
However when hovering "DialogInterface.ButtonPositive" the full message with the additional info about the enum becomes visible.