Back to Devexpress

OptionsFocus.AllowFocusControlOnActivatedTabPage Property

windowsforms-devexpress-dot-xtralayout-dot-optionsfocus-1c9c00a5.md

latest2.6 KB
Original Source

OptionsFocus.AllowFocusControlOnActivatedTabPage Property

Gets or sets whether the first control within a tab page is focused when the tab page is activated.

Namespace : DevExpress.XtraLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(false)]
[XtraSerializableProperty]
public bool AllowFocusControlOnActivatedTabPage { get; set; }
vb
<DefaultValue(False)>
<XtraSerializableProperty>
Public Property AllowFocusControlOnActivatedTabPage As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true if the first control within a tab page is focused when the tab page is activated; false if focus is not moved to this control.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AllowFocusControlOnActivatedTabPage
LayoutControl

.OptionsFocus .AllowFocusControlOnActivatedTabPage

|

Remarks

If the AllowFocusControlOnActivatedTabPage property is set to true the first control within a tab page is focused when this page is activated.

The first control within a group is determined based upon the value of the OptionsFocus.MoveFocusRightToLeft property. If this property is set to false the group’s first control is the top- leftmost control. If the OptionsFocus.MoveFocusRightToLeft property is set to true the group’s first control is the top-, rightmost control.

See Also

MoveFocusRightToLeft

AllowFocusTabbedGroups

OptionsFocus Class

OptionsFocus Members

DevExpress.XtraLayout Namespace