Showing posts with label Listbox Itemspanel. Show all posts
Showing posts with label Listbox Itemspanel. Show all posts

Sunday, June 3, 2012

Listbox in Silverlight horizontally

If you want to show items horizontally using Listbox its quite easy and straightforward. What you all need to do is all

<ListBox>
           <ListBox.ItemsPanel>
                    <ItemsPanelTemplate>
                        <StackPanel Orientation="Horizontal" />
                    </ItemsPanelTemplate>
                </ListBox.ItemsPanel>
</ListBox>


And you will see the list now horizontally :)

Cheers!
Vinod