如何使WPF ListView项目像水平滚动条一样水平重复?
我有一个WPF ListView垂直重复数据。我无法弄清楚如何使其水平重复,例如Windows资源管理器中的幻灯片视图。我当前的ListView定义是: <ListView ItemsSource="{StaticResource MyDataList}" ItemTemplate="{StaticResource ListViewTemplate}"> </ListView> DataTemplate是(尽管我认为这应该没关系); <Rectangle HorizontalAlignment="Stretch" Margin="0,1,0,0" x:Name="rectReflection" Width="Auto" Grid.Row="1" Height="30"> <Rectangle.Fill> <VisualBrush Stretch="None" AlignmentX="Center" AlignmentY="Top" Visual="{Binding ElementName=imgPhoto}"> <VisualBrush.RelativeTransform> <TransformGroup> <MatrixTransform Matrix="1,0,0,-1,0,0" /> <TranslateTransform Y="1" /> </TransformGroup> </VisualBrush.RelativeTransform> </VisualBrush> </Rectangle.Fill> <Rectangle.OpacityMask> <RadialGradientBrush GradientOrigin="0.5,1.041"> <RadialGradientBrush.RelativeTransform> <TransformGroup> <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="1.202" ScaleY="2.865"/> <SkewTransform AngleX="0" AngleY="0" CenterX="0.5" CenterY="0.5"/> …