Hi, I have buttons in ListViewItems, so in my Adapter.GetView(...), I have to wire eventhandler for the .Click methods of my buttons : convertView.FindViewById<Button>(Resource.Id.art_qte_minus).Click += new EventHandler(art_qte_minus_Click);
But as GetView is called just after something I do when someone clicks on the button, the it attaches a second time the eventhandler, making twice the required calls to the eventhandler... and x2 and x2... So how can I check if there is an already attached eventhandler ? By the way, I'd like to use a ViewHolder to be clean, but I can't find the corresponding class in c#. thx in advance ! -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/How-can-I-ckeck-if-an-enventhandler-is-already-attached-tp4943426p4943426.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
