Completed
Last Updated: 08 Sep 2022 09:58 by ADMIN
Release R3 2022
Ben
Created on: 25 Aug 2022 11:52
Category: VirtualizingWrapPanel
Type: Bug Report
1
VirtualizingWrapPanel: Changing item width and height with Pixel ScrollUnit makes previously selected item stay permanently

Subject

When using a RadListBox with a VirtualizingWrapPanel as ItemsPanel and the ScrollUnit is set to Pixel, the previously selected item stays like an overlay that can be interacted with if the ItemWidth and ItemHeight are changed.

Attached Files

The attached files contain a demo application, which is a minimal sample to reproduce the problem. Due to the file upload size limitation, the referenced Telerik DLLs for the sample project are not contained.

Description

Exemplary Scenario

A RadListBox with a VirtualizingWrapPanel as ItemsPanel is used to display a collection of strings. The ScrollUnit is set to Pixel. The size of the items can be adjusted with a button that toggles these sizes: Small, Medium and Large. The current size is displayed in a TextBlock. The sizes are defined as an enum and mapped to ItemWidth and ItemHeight in a Style.

 

Steps to Reproduce

  1. Start the application.
  2. Scroll an item into the center of the viewport, leaving space around it.


  3. Select the item.
  4. Click the "Toggle Layout" button.

Result

The previously selected item in its original size still exists, is selected, immovable and clickable.

Expectation

All items are displayed using the new size and the corresponding item is selected. There are no duplicate items or leftover items with the previous size.

Issue Characteristics

  • Only occurs when ScrollUnit is set to Pixel.
  • Occurs in multiple themes like Office2016, Office2019, Windows11, but not in Fluent.
  • The repro steps can be repeated multiple times which will lead to multiple different overlays.
  • An item must be in the center of the viewport. With items on the edge of the RadListBox like Item 1 or others that are selected from below and are scrolled into view to the bottom edge of the viewport, the issue is not reproducible.
  • Is reproducible at least since Telerik UI for WPF 2022.1.222, including the current Version 2022.2.621.
1 comment
ADMIN
Dilyan Traykov
Posted on: 30 Aug 2022 09:58

Hello Ben,

Thank you very much for the provided project and detailed description of the issue.

This does seem like a bug at our end and I have thus converted this ticket to a bug report. I've also awarded you with some Telerik points for bringing this to our attention.

We will try to address this as soon as possible, but in the meantime, as a workaround, you can use the Item ScrollUnit or set the IsScrollIntoViewEnabled property to False. I do hope you find one of these approaches applicable for the time being.

Regards,
Dilyan Traykov
Progress Telerik

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.