Hello Roy, thank you for your answer this wasn't what i meant :-) It was clear to me that I need to create derived classes to obtain special features such as "Tag" My question was more as I get the functionalities without having to do this (find out which element was clicked in the nsaction called function)
Regards, Benedikt Von: Roy Goode <[email protected]> Datum: Mon, 6 Feb 2012 22:22:09 +0000 An: Benedikt Hübschen <[email protected]> Cc: <[email protected]> Betreff: Re: [MonoTouch] MonoTouch.Dialog Hi Benedikt, The native way to enhance the Elements in MonoTouch.Dialog is to create derived classes that inherit from the *Element types. e.g. you could create a class called TaggedRadioElement that inherits from RadioElement but adds your Tag property for use in your own code. 2012/2/6 Benedikt Hübschen <[email protected]> > Hi, > > I'm using MT.Dialog now for 2-3 weeks now and changed it a bit.. Now after > upgrading to MT 5 i saw that MT.Dialog will be/is a part of MT now. > Surly it will be better using the "official" version of MTD, but i have added > a "Tag" property to Element and changed from NSAction to "ElementTapped > (object sender);" to make it possible to change the clicked Element (changing > subtitle, color or anything else) and pass more informations using "Tag" (i.E. > id of the record from the sql-table i've used to build the table) > > Is there a "native" way to to this with MTD? > > Thanks and regards, > Benedikt > > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch >
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
