windowsforms-devexpress-dot-xtratabbedmdi-dot-xtramditabpage-7a3a6812.md
Gets whether the tab page can be selected.
Namespace : DevExpress.XtraTabbedMdi
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[Browsable(false)]
public bool PageEnabled { get; }
<Browsable(False)>
Public ReadOnly Property PageEnabled As Boolean
| Type | Description |
|---|---|
| Boolean |
true if the tab page is enabled and can be selected by an end-user or via code; otherwise, false.
|
The PageEnabled property returns the value of the Enabled property of its corresponding MDI child form. A disabled page cannot be selected by an end-user or via code, its header is displayed as grayed.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PageEnabled property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
{
if ( !page.PageVisible || !page.PageEnabled )
continue;
For Each page As XtraMdiTabPage In Pages
If Not page.PageVisible OrElse Not page.PageEnabled Then Continue For
Dim menuItem As DXMenuItem = CreateMenuItem(page)
See Also