[]
Scrolls the content within the ScrollViewer to the specified Tree View Item
public void ScrollIntoView(C1TreeViewItem item)
Type | Name | Description |
---|---|---|
C1TreeViewItem | item | The Tree View Item on which we need to place focus |
This example demonstrates how to use the ScrollIntoView method to scroll to a specific TreeViewItem.
// Assuming 'treeView' is an instance of C1TreeView
var itemToScrollTo = FindTreeViewItemById(treeView, itemId);
if (itemToScrollTo != null)
{
treeView.ScrollIntoView(itemToScrollTo);
}