Version

ForceDrawsFocusRect Property

Returns a boolean value indicating whether this element's focus rectangle drawing logic should ignore the associated control's focused state.
Syntax
'Declaration
 
Protected Overridable ReadOnly Property ForceDrawsFocusRect As Boolean
protected virtual 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.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also