VirtualizingWrapPanel icon indicating copy to clipboard operation
VirtualizingWrapPanel copied to clipboard

When maximizing or restoring the window size, the scroll view does not update

Open CodingOctocat opened this issue 3 months ago • 3 comments

Describe your issue When maximizing or restoring the window size, the scroll view does not update. I must trigger a scroll to update the view correctly.

https://github.com/user-attachments/assets/ee8a7f0e-3fa6-44bc-ac6e-dabf80d93a43

<ListView ItemsSource="{Binding TestImages}">
    <ListView.ItemTemplate>
        <DataTemplate>
            <Image MaxWidth="150"
                   MaxHeight="100"
                   Source="{Binding}" />
        </DataTemplate>
    </ListView.ItemTemplate>

    <ListView.ItemsPanel>
        <ItemsPanelTemplate>
            <vwp:VirtualizingWrapPanel />
        </ItemsPanelTemplate>
    </ListView.ItemsPanel>
</ListView>

Version Info Package Version: [2.3.2] .NET Version: [.NET9]

CodingOctocat avatar Oct 26 '25 13:10 CodingOctocat

Unfortunately, I am unable to reproduce the issue. Please provide a minimal reproducer.

sbaeumlisberger avatar Nov 09 '25 18:11 sbaeumlisberger

@sbaeumlisberger This issue is somewhat similar to: https://github.com/dotnet/wpf/issues/11234. I will provide a minimal reproducer when I have time.

CodingOctocat avatar Nov 10 '25 07:11 CodingOctocat

I created a minimal reproducer, but I still couldn't reproduce the issue. It might be related to HandyControl or other factors.

CodingOctocat avatar Nov 17 '25 11:11 CodingOctocat

When switching the data binding of a ListBox control,also encountered a similar problem:When selecting the first data source, scroll down the data,Then select the second data source,At this point, the scrollbar has not returned to its initial position, and the view shows a blank space,If you scroll the scrollbar at this time, the view will refresh and display normally

wuyang26 avatar Dec 27 '25 06:12 wuyang26