i have 3 embedded listboxes entities: group, item, subitem.
<listbox name="groupitemslistbox" itemsource="{binding entitygroups"}> <listbox.itemtemplate> <datatemplate> <itemscontrol name="itemslistbox" itemsource="{binding items}"> <itemscontrol.itemtemplate> <datatemplate> <itemscontrol name="subitemslistbox" itemsource="{binding subitems}"> <itemscontrol.itemtemplate> <datatemplate> <textblock text="{binding name} /> </datatemplate> </itemscontrol.itemtemplate> </datatemplate> </itemscontrol.itemtemplate /> </itemscontrol> </datatemplate> <listbox.itemtemplate> </listbox>
also there case when last listbox empty. want handle selecteditem lowest existing itemcontrol. able manage when specific object selected.
for example when click on itemgroup[1].items[0].subitem[2] want element, not itemgroup[1] or itemgroup[1].items[0].
how can achieve it?
use longlistselector
instead. supports grouping in nicer way.
Comments
Post a Comment