locked
Virtualizing WrapPanel stop scrolling RRS feed

  • Question

  • I am using Virtualizing WrapPanel in my itemsource of listview but my scrooling is not working ,

    https://www.codeproject.com/Articles/75847/Virtualizing-WrapPanel

    my listviewcode

     <ListBox x:Name="ImageList" Grid.Row="0"
                                 local:ListBoxSelector.Enabled="True" FocusVisualStyle="{x:Null}"
                                 HorizontalAlignment="Stretch"
                                 VerticalAlignment="Stretch"
                                 HorizontalContentAlignment="Stretch"
                                 x:FieldModifier="public"
                                 BorderBrush="Transparent"
                                 BorderThickness="0"
                                 IsSynchronizedWithCurrentItem="True"
                                 ItemContainerStyle="{StaticResource CustomizedItemContainer}"                            
                                 MouseDoubleClick="OnPhotoClick"
                                 MouseDown="ImageList_MouseDown"                  
                                 ScrollViewer.CanContentScroll="True"
                                 ScrollViewer.IsDeferredScrollingEnabled="True"
                                 SelectionChanged="ImageList_SelectionChanged"
                                 SelectionMode="Extended"
                                 VirtualizingPanel.IsContainerVirtualizable="True"
                                 VirtualizingPanel.IsVirtualizing="True"
                                 VirtualizingPanel.VirtualizationMode="Recycling"
                                 VirtualizingPanel.ScrollUnit="Pixel"
                                 ScrollViewer.VerticalScrollBarVisibility="Auto"
                                 Loaded="ImageListScrollViewer_Loaded"
                                 ScrollViewer.ScrollChanged="ImageListScrollViewer_Changed"  
                                 AllowDrop="True"
                                 Drop="ThumbnailListView_Drop"
                                 VerticalContentAlignment="Stretch"
                                 ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                                 KeyboardNavigation.DirectionalNavigation="Cycle"
                                 IsTextSearchEnabled="True" TextSearch.TextPath="FileName" SizeChanged="ImageList_SizeChanged">

    • Moved by CoolDadTx Tuesday, November 17, 2020 3:28 PM WPF related
    Tuesday, November 17, 2020 3:56 AM

All replies

  • This forum is for C#-specific questions only. Please post questions related to UI technologies like WPF and UWP in the new Microsoft Q&A forums.

    Michael Taylor http://www.michaeltaylorp3.net

    Tuesday, November 17, 2020 3:28 PM