Infragistics2.Win.UltraWinTree.v8.1
DrawsFocusRect Property
See Also  Example
Infragistics.Win.UltraWinTree Namespace > UltraTree Class : DrawsFocusRect Property

Gets / sets whether the control draws a focus rectangle around the active node or cell when it has focus.

Syntax

Visual Basic (Declaration) 
Public Property DrawsFocusRect As DefaultableBoolean
C# 
public DefaultableBoolean DrawsFocusRect {get; set;}

Remarks

If set to Default, this property will resolve based on the UltraTree.DisplayStyle. When DisplayStyle is Standard, this property will resolve to true. In WindowsVista style, it resolves to False.

DrawsFocusRect also affects keyboard behavior when using the Ctrl key. When DrawsFocusRect is true, using Ctrl plus a navigation key (Up, Down, PageUp, PageDown, Home, End) changes the ActiveNode. When DrawFocusRect is False, there is no visible indication of the ActiveNode, and therefore the Ctrl + navigation key combination will scroll the tree and have no effect on the active or selected nodes.

Example

Visual BasicCopy Code
Imports Infragistics.Win.UltraWinTree

' Turn off the focus rect in the tree.
Me.ultraTree1.DrawsFocusRect = Infragistics.Win.DefaultableBoolean.False
C#Copy Code
using Infragistics.Win.UltraWinTree;

// Turn off the focus rect in the tree.
this.ultraTree1.DrawsFocusRect = Infragistics.Win.DefaultableBoolean.False;

See Also