PDA

View Full Version : Menu bar and databining


hangalot
10-17-2003, 05:10 AM
Hi All

by setting the menuBar's databinding property to an XMLNode I can get my menu to populate automatically. that works without a problem.
however with the menubar you havce to assign each "menuitem" on click event handler individually.

so does anybody know of a way to either assign that in the xml (far fetched no doubt) or a more practical sollution let them all use the same handler (by either looping through the menuitems or some other code) and get these menuItems to pass either themselves (this) or (even better) an attribute on the assigned xml (in each node that is)

:D