Wednesday, 15 May 2013

.net - ItemsControl fill order -



.net - ItemsControl fill order -

i trying fill itemscontrol 7 items, requested order this

1 2 3 4 5 6 7

actually, order of 2 first line doesn't matter, don't mind have:

2 1 3 5 4 6 7

this code project

<itemscontrol x:name="productslist" itemssource="{binding path=products}" > <itemscontrol.itemspanel> <itemspaneltemplate> <uniformgrid columns="3" background="white" /> </itemspaneltemplate> </itemscontrol.itemspanel> </itemscontrol>

when used uniformgrid got

1 2 3 4 5 6 7

i tried wrappanel had 2 problems first order was:

1 2 3 4 5 6 7

second: wrap panel did not fill command contains wrappanel stands on top left corner

any ideas?

thanks

.net wpf itemscontrol

No comments:

Post a Comment