Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

List box content in horrizontal RSS

1 reply

Last post Apr 08, 2008 12:53 PM by MattDrimo Xceed

(0)
  • vicraze

    vicraze

    Member

    73 Points

    122 Posts

    List box content in horrizontal

    Apr 08, 2008 10:40 AM | LINK

    I created a List box and the datas been added......the normal allignment of listdata is displayed in vertical....is it possible to display mt list datas in horrizontal way...can any one solve this one...????????????

  • MattDrimo Xceed

    MattDrimo Xceed

    Member

    168 Points

    28 Posts

    Re: List box content in horrizontal

    Apr 08, 2008 12:53 PM | LINK

    Yes, you need to set the itemsPannel property to a panel that supports horizontal layout :

    <ListBox>
             <ListBoxItem>
                <Image Source="item1.jpg" />
             </ListBoxItem>
             <ListBoxItem>
                <Image Source="item2.jpg" />
             </ListBoxItem>
             <ListBox.ItemsPanel>
                <ItemsPanelTemplate>
                   <StackPanel Orientation="Horizontal" />
                </ItemsPanelTemplate>
             </ListBox.ItemsPanel>
          </ListBox>

    pleaes mark this post as answered if it helped ! :)

     

    Mathieu Drimonakos
    Technical Designer
    www.xceed.com