Bring RadTreeViewItem Into View With Offset When UI Virtualization is Enabled
Environment
Product | Version |
---|---|
RadTreeView for WPF | 2023.3.1114 |
Description
How to bring an item into the viewport and apply an offset when using the BringPathIntoView method of RadTreeView and the UI virtualization is enabled.
The method will bring the item into the viewport, but because of the UI virtualization its position won't be top-left and therefore the applied offset won't work properly.
Solution
To make this work with a specific offset, you can manually scroll the ScrollViewer to the required position.