WPF ListView VisualPanel

              

  <ItemsPanelTemplate x:Key="ItemsPanelTemplate1">
                <VirtualizingStackPanel IsItemsHost="True"/>
        </ItemsPanelTemplate>
        <DataTemplate x:Key="DataTemplate1">
            <Image Margin="2,2,2,2"  Source="{Binding ThumbnailFilePath, Converter={StaticResource StrToImageConverter}}"
                   HorizontalAlignment="Center" VerticalAlignment="Center" />
        </DataTemplate>






  <ListView x:Name="lstView" Margin="0" VerticalAlignment="Stretch" ItemsPanel="{StaticResource ItemsPanelTemplate1}"
                                                                                ItemTemplate="{StaticResource DataTemplate1}"  VirtualizingStackPanel.IsVirtualizing="True" 
                                                                                VirtualizingStackPanel.VirtualizationMode="Recycling"  ScrollViewer.CanContentScroll="True"
                                                                                ScrollViewer.IsDeferredScrollingEnabled="True" 
                            IsSynchronizedWithCurrentItem="True" SelectionChanged="ListView_SelectionChanged">


posted @ 2013-07-02 13:13  muzizongheng  阅读(376)  评论(0编辑  收藏  举报
如果我们时时忙着展现自己的知识, 将何从忆起成长所需的无知?