WPF Windows Explorer Like WPF TreeView

1 Answer 44 Views
TreeView
Andreea
Top achievements
Rank 1
Iron
Andreea asked on 01 Mar 2024, 09:56 AM | edited on 01 Mar 2024, 10:14 AM

Hi,

I used the documentation to create a tree view with Windows folders. I wish to expand the item from from a specified path, e.g.. I want to have expanded Documents folder from the beginning, but I did not find anything that works.

Thanks!

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 01 Mar 2024, 11:05 AM

Hello Andreea,

This sounds like a job for the "bring path into view" support. This will allow you to mark the items with a path id and when you need to find and expand an item, you can construct the corresponding path. Here are resources on that topic:

I hope this helps.

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Andreea
Top achievements
Rank 1
Iron
commented on 12 Mar 2024, 10:56 AM

Hi Martin,

BringPathIntoView() helped, thank you!

Tags
TreeView
Asked by
Andreea
Top achievements
Rank 1
Iron
Answers by
Martin Ivanov
Telerik team
Share this question
or