I have the following code:
<ItemsControl
ItemsSource="{Binding ItemsList}"
Visibility="{Binding HmiState, Converter={StaticResource IsHmiViewState}}">
<ItemsControl.ItemsContainerStyle>
<Style>
<Setter Property="FrameworkElement.Margin" Value="5" />
</Style>
</ItemsControl.ItemsContainerStyle>
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel Width=300 Height=200 ItemsHost="True"
ScrollViewer.CanContentScroll="True"
ScrollViewer.VerticalScrollVisibility="Auto" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
</ItemsControl>
It display everything up to the 200 height correctly (wrapped), but doesn't display anything below that and there's no scroll bar.
ItemsList is an ObservableCollection.
Does anyone have any suggestions?