TreeViewControl.ShowFocusedRectangle Property
Gets or sets if the focus rectangle is visible. This is a dependency property.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v26.1.dll
Declaration
Property Value
| Type | Default | Description |
|---|---|---|
| Boolean | false |
|
Remarks
Use FocusedRowBorderTemplate to customize focused node border appearance. The FocusedRowBorderTemplate is in effect only if the ShowFocusedRectangle property is true, and the AllowEditing property is false.
Example: Display a Rectangle around the Focused Node
The following example displays a rectangle around the focused node:

<dx:ThemedWindow x:Class="TreeViewControlApp.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
Title="TreeViewControl Demo" Height="450" Width="600">
<dxg:TreeViewControl x:Name="tree"
ChildNodesPath="Employees"
TreeViewFieldName="Name"
ShowFocusedRectangle="True"
AllowEditing="False">
</dxg:TreeViewControl>
</dx:ThemedWindow>
See Also