1
Vote

ListView WrapPanel

description

I have the following style for a ListView control. When it presents on screen the ListViewItems are not wrapping within the container. Instead they are producing a vertical scroll bar. Within my style as you can see i have disabled the scroll bar...

<Style TargetType="{x:Type ListView}">
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Disabled" />

<Setter Property="ItemsPanel">
<Setter.Value>
<ItemsPanelTemplate>
<WrapPanel Orientation="Vertical" />

</ItemsPanelTemplate>
</Setter.Value>
</Setter>
</Style>

No files are attached

comments

alvesseb wrote Jan 17 at 11:40 AM

I am not able to reproduce your problem.
Can you attach your code?