-
Notifications
You must be signed in to change notification settings - Fork 693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TreeView can't auto scroll to the selected item #9200
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you! Closed similar issues:
|
Not within the above issues! |
Is the selected node collapsed? Would expanding the parent node first make this realized and then you can scroll into view ? |
This issue still exists. |
No, can not scroll into view. I think because ui virtualizationv. |
Describe the bug
By ItemSource binding data ,If the Selected Item has not been displayed yet, you cannot scroll to this selection
Steps to reproduce the bug
1、binding the treeview ItemSource property
2、Write a button click event
3、Expand tree items in the event (select an item outside of the visible view to expand by code)
4、Execute sub item selection under expanded items by code
5、Execute scrolling to selection items in the event
var treeList = TreeHelper.FindVisualChild(treeView);
treeList.ScrollIntoView(treeView.SelectedNode);
Expected behavior
No response
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.4.3: 1.4.231115000
Windows version
Windows 11 (22H2): Build 22621
Additional context
No response
The text was updated successfully, but these errors were encountered: