tags:

views:

30

answers:

0

Hi,

I have problem with displaing scrollbars around item in ListView.

    <ListView ItemsSource="{Binding Path=ContentCollection}" SelectedValue="{Binding Current}" VerticalContentAlignment="Top">
        <ListView.ItemsPanel>
            <ItemsPanelTemplate>
                <DockPanel />
            </ItemsPanelTemplate>
        </ListView.ItemsPanel>
        <ListView.ItemTemplate>
            <DataTemplate>
                <ScrollContentPresenter Content="{Binding Path=View}" CanContentScroll="True"/>
            </DataTemplate>
        </ListView.ItemTemplate>
    </ListView>

All items in ListView are UserControls with height and width = auto. What I can do to display scrollbars when UserControl is greater than ListView height.

Thanks for help.

Regards, Marcin