luis wrote:[...]The fact is PB wraps the OS native controls on each platform but expose very little of them.
Yes, of course. Computer Science 101.
It's all a matter of semantics, or rather perspective, closely linked to specific points in time.
Looking at one's code in the IDE, we see something remarkably close to English mixed in (for me) with French and other mysterious letter-numbers assemblies, which make sense (at least today!) only to the one who wrote them. In the end, we know it all gets mashed into an indigestible mixture of zeroes and ones, which machines, all consuming electricity, gladly gobble to turn into similar but, oh! so different! outputs. Which won't stop us (meaning me, here, mostly) from forever discussing the fine points of the process...
Gosh the torture we put ourselves through !
A similar process is at play with human words on this forum, where we sometimes have to labour so hard to get a simple point across,
that it makes me want, at times, to write in all capital letters.
Eloquent comparison, indeed, Luis : 90 public events exposed by .Net against 3 in PB !
There's plenty of room left to grow for PB.
It would be interesting to see a statistical analysis of
usage frequency for all those events and properties, however.
@RASHAD : Nice streamlining of the code in your second version.
You could also think of moving the GadgetX(0) and GadgetY(0) out of the loop too, replacing them with x y vars, since they require function calls.