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

1 comment:

Rajesh said...

Great explaination. I was really looking for something to show my data horizontlly in listbox. Thanks Vinod for this article

Post a Comment

Send us your comment related to the topic mentioned on the blog