[]
        
(Showing Draft Content)

C1.WPF.TreeView.C1TreeView.ScrollIntoView

ScrollIntoView Method

ScrollIntoView(C1TreeViewItem)

Scrolls the content within the ScrollViewer to the specified Tree View Item

Declaration
public void ScrollIntoView(C1TreeViewItem item)
Parameters
Type Name Description
C1TreeViewItem item

The Tree View Item on which we need to place focus

Examples

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);
}