c# - Reverse Generated Items & Tab Order of ItemsControl Collection -


so know itemscontrol generate items top-to-bottom in itemspanel. yes can change sort order , generate them in different ways here's actual problem.

if have itemscontrol using itemtemplate multiple uielement's , use example, stackpanel itemspanel end natural tab order of like;

a. 1  2  3  4  5 b. 6  7  8  9  10 c. 11 12 13 14 15 

expected, use either order of placement or flowdirection on itemtemplate get;

a. 5  4  3  2  1 b. 10 9  8  7  6 c. 15 14 13 12 11 

now, question how achieve? (in efficient way) order more like;

c. 11 12 13 14 15 b. 6  7  8  9  10 a. 1  2  3  4  5 

now if you're thinking.. "ugh, shift+tab dummy..." wish option. requirement using tab, , generating collection in reverse bottom top instead of top bottom , having tab order reversed while they're in control. wise try , hijack shift/tab event , convert tab somehow? if case answers part of question.

hopefully someones ran before or enjoys interesting question insight appreciated. thanks!

i tried simple example stackpanel of stackpanels (ie no data binding), , seems flow direction has no impact on vertically stacked panels (it nice if there toptobottom, or bottomtotop option).

i think data model needs (conceptually) list of lists, , need make itemscontrol of itemscontrols (i know it's pain layout can done), , you'll have order outer list backwards controls generated c, b, (because flowdirection doesn't in vertical orientation).


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -