TreeViewControl.SearchControl Property
Gets or sets the search control associated with the TreeViewControl. This is a dependency property.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v26.1.dll
Declaration
Property Value
| Type | Description |
|---|---|
| SearchControl | The search control associated with the TreeViewControl. |
Remarks
Use the SearchControl property to access the search control associated with the TreeViewControl and configure search control properties.
Example: Focus the Search Control on TreeViewControl Initialization
public MainWindow()
{
InitializeComponent();
treeViewControl.ItemsSource = DepartmentData.GetDepartments();
treeViewControl.Loaded += (_, _) => treeViewControl.SearchControl?.Focus();
}
See Also