windowsforms-devexpress-dot-xtralayout-dot-optionsfocus-1c9c00a5.md
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
[DefaultValue(false)]
[XtraSerializableProperty]
public bool AllowFocusControlOnActivatedTabPage { get; set; }
<DefaultValue(False)>
<XtraSerializableProperty>
Public Property AllowFocusControlOnActivatedTabPage As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
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.
|
You can access this nested property as listed below:
| Object Type | Path to AllowFocusControlOnActivatedTabPage |
|---|---|
| LayoutControl |
.OptionsFocus .AllowFocusControlOnActivatedTabPage
|
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