Infragistics(R) NetAdvantage(R) Windows Forms
ForceDrawsFocusRect Property
See Also  E-mail your feedback on this topic.
Infragistics.Win Namespace > UIElement Class : ForceDrawsFocusRect Property

Returns a boolean value indicating whether this element's focus rectangle drawing logic should ignore the associated control's focused state.

Syntax

Visual Basic (Declaration) 
Protected ReadOnly Property ForceDrawsFocusRect As Boolean
C# 
protected bool ForceDrawsFocusRect {get;}

Remarks

The default implementation returns false, so that elements which return true from the DrawsFocusRect property only draw the focus rectangle if the associated control actually has the input focus

A derived class can override this property to return true, in which case the check for whether the associated control is actually focused is bypassed, and the focus rectangle is drawn. This is useful in the case where the element appears on a control that does not take focus, but does process keyboard input.

See Also