Tôi có ItemsControl bên dưới bao bọc các mục hoàn hảo nhưng không có thanh cuộn dọc nên tôi không thể thấy các mục được gói. Làm thế nào tôi có thể lấy thanh cuộn để hiển thị?ItemsControl thiếu thanh cuộn dọc
<ItemsControl x:Name="tStack" Grid.Column="0" Grid.Row="1"
ItemsSource="{Binding Shows.View}"
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
BorderThickness="0.5">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel Orientation="Horizontal" HorizontalAlignment="Left"
VerticalAlignment="Top"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Viewbox HorizontalAlignment="Left" Height="250">
<Controls1:MyShowsUserControl Padding="10"/>
</Viewbox>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
Rất lạ ... Tôi đã thử nó 20x trước và nó đã không làm việc và bây giờ nó ... Cảm ơn bạn! – touyets
Tôi đã tìm ra vấn đề: nếu tôi nhập giá trị cho chế độ hiển thị thanh cuộn ngang của scrollviewer thì nó không hoạt động đúng cách – touyets