On Aug 9, 2011, at 6:46 AM, vsr28 wrote:
> In IDialogInterfaceOnMultiChoiceClickListener implementation class i m not
> able to read that which item is checked. Name of that item which get
> checked.

This appears to be what you're after, though it'll need porting to C# from Java:

        
http://stackoverflow.com/questions/6847682/how-to-get-all-selected-indexes-in-alertdialog-multichoiceitems

In particular, you'll need something like:

        class OnItemsSelected : Java.Lang.Object, 
Android.Content.IDialogInterfaceOnMultiChoiceClickListener {

                bool[] State;

                public OnItemsSelected (bool[] state)
                {
                        State = state;
                }

                public void OnClick (Android.Content.IDialogInterface dialog, 
Android.Content.DialogInterfaceButton which, bool isChecked)
                {
                        state [(int) which] = isChecked;
                }
        }

It's unfortunate here that we mapped the `which` parameter to a 
DialogInterfaceButton enumeration instead of the original `int`, but we felt 
that most of the time the enumeration values would be used.

 - Jon

_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to