Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > CoverFlow > List Integration example with Horizontal Listbox

Not answered List Integration example with Horizontal Listbox

Feed from this thread
  • Tom avatar

    Posted on Dec 15, 2011 (permalink)

    Hey guys,

    As the title states, would it be possible to get some example code similar to the "Listbox Integration" demo, but with a horizontal listbox. I am very keen on using similar functionallity to the demo, but due to sizing requirements need to implement a horizontal list.

    Reply

  • Yana Yana admin's avatar

    Posted on Dec 16, 2011 (permalink)

    Hello Tom,

    You can make a horizontal listbox like this:

    <ListBox x:Name="cityList" Style="{StaticResource ListBoxStyle}" ItemsSource="{Binding}"
                SelectedIndex="{Binding SelectedIndex, ElementName=coverFlow, Mode=TwoWay}" Height="200">
        <ListBox.ItemsPanel>
            <ItemsPanelTemplate>
                <StackPanel Orientation="Horizontal" />
            </ItemsPanelTemplate>
        </ListBox.ItemsPanel>
    </ListBox>

    Also note that you should change the Width property of the listbox.

    Kind regards,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

  • Tom avatar

    Posted on Dec 18, 2011 (permalink)

    This works perfectly.

    Thanks very much.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > CoverFlow > List Integration example with Horizontal Listbox
Related resources for "List Integration example with Horizontal Listbox"

Silverlight CoverFlow Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]