microsoft / microsoft/microsoft-ui-xaml

The ListView.ScrollIntoView() method is out of work under remote control

Open
#10,076 0 comments 0 reactions 0 assignees View on GitHub
area-Lists bug team-Controls
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### Describe the bug

The ListView.ScrollIntoView() method is out of work under remote control

### --------------------------------------

ListView.ScrollIntoView() 方法在远程操控下失效了

### Steps to reproduce the bug

正常情况下,当我调用 ListView 的 ScrollIntoView() 方法可以滚动到指定条目,但是开启了远程操控时(比如 Todesk,向日葵,RDP 等等),调用 ListView 的 ScrollIntoView() 方法不能滚动到指定的条目,只停留在第一项。

### ---------------------------------

Normally, when I call ListView's ScrollIntoView() method, I can scroll to the specified entry, but when remote control is enabled (such as Todesk, sunflower, RDP, etc.), The ScrollIntoView() method that calls the ListView cannot scroll to the specified entry, only to the first item.

----------------------------------------

参考链接 (Reference links)
https://learn.microsoft.com/uwp/api/windows.ui.xaml.controls.listviewbase.scrollintoview?view=winrt-26100

----------------------------------------

同样适用于 WinUI 3 和 UWP
### ------------------------
Same for WinUI 3 and UWP

### Expected behavior

开启远程控制时,ScrollIntoView() 方法不会失效

###-----------------------------

The ScrollIntoView() method does not fail when remote control is enabled

### Screenshots

Remote mode(First Item)
远程模式(第一项)
![Image](https://github.com/user-attachments/assets/da569f4f-be3c-4248-8fab-f0d94904e943)
Normal mode(specified item)
正常模式(特定项)
![Image](https://github.com/user-attachments/assets/99db8478-0484-4ca0-a844-51cbd1cdb65e)

### NuGet package version

WinUI 3 - Windows App SDK 1.6.1: 1.6.240923002

### Windows version

Windows 11 (22H2): Build 22621

### Additional context

None

Contributor guide

Open the contributing guide

Research direction

The report points to ListView.ScrollIntoView() and applies to WinUI 3 and UWP under Todesk, Sunlogin, or RDP. Start by reproducing the difference between normal and remote-control sessions on Windows 11 with Windows App SDK 1.6.1. Done means the specified item is brought into view in remote sessions as it is normally.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.