I'm no expert; but, I worked thru this once. You can set a "Positive", "Neutral" and "Negative" button and specify the button label text and a click event handler for each button press. As far a navigating to bluetooth, I'm sure there is some Intent; but, someone else will have to help you on that.
Builder.SetPositiveButton( "Yes", EventHandler<DialogClickEventArgs> clicked ); Builder.SetNeutralButton( "No", EventHandler<DialogClickEventArgs> clicked ); Builder.SetNegativeButton( "Cancel", EventHandler<DialogClickEventArgs> clicked ); Steve Sharrock Architecture/Design/Programming www.sharkcode.com -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of telliottosceola Sent: Friday, September 30, 2011 12:03 PM To: [email protected] Subject: [mono-android] Alert Dialog Box Button I am able to create a dialog box and display a message using the code below but am unable to add a button to the Alert Dialog Box. Would like for the button to navigate to the users wireless settings page so they can enable their bluetooth adapter Any Help? AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.SetMessage("Please Enable Bluetooth Adapter"); builder.SetTitle("Unable to Connect"); builder.Show(); -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Alert-Dialog-Box-Button-tp4858 102p4858102.html Sent from the Mono for Android mailing list archive at Nabble.com. _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
