dmay
dmay

Reputation: 1325

Pivot header-like Control?

Is it any separated Control for create something like Pivot header?

I need horizontal list on top of page, binded to my Collection with same behavior like Pivot header - left-right drags(can be done with GestureListener, i think) and with event for select new item.

Upvotes: 0

Views: 323

Answers (1)

Praetorian
Praetorian

Reputation: 109119

You can create a horizontal ListBox using the following XAML:

<ListBox ScrollViewer.HorizontalScrollBarVisibility="Auto">
    <ListBox.ItemsPanel>
        <ItemsPanelTemplate>
            <VirtualizingStackPanel Orientation="Horizontal" />
        </ItemsPanelTemplate>
    </ListBox.ItemsPanel>
    <ListBox.ItemTemplate>
        <DataTemplate>
           <Your control... />
        </DataTemplate>
    </ListBox.ItemTemplate>
</ListBox>

Upvotes: 1

Related Questions