Skip to main content
A newer version of this page is available. .

TabControlViewBase.NewButtonShowMode Property

Gets or sets where to show the New button. This is a dependency property.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core

Declaration

public NewButtonShowMode NewButtonShowMode { get; set; }

Property Value

Type Description
NewButtonShowMode

An DevExpress.Xpf.Core.NewButtonShowMode enumeration value that specifies the location where the New button is shown.

The default is NewButtonShowMode.NoWhere.

Available values:

Name Description
NoWhere

The New Button is not shown.

InHeaderArea

The New Button is shown in the Header Area.

InTabPanel

The New Button is located inside the Tab Panel, next to tab item headers.

InHeaderAreaAndTabPanel

The New Button is shown in the Tab Panel and Header Area simultaneously.

Remarks

The DXTabControl has the Hide and New buttons that provide the capability to hide\add tab items.

TabControl_HideAndNewButtons_Office2013

Below is a list of all possible locations.

  • NoWhere - the New Button is not shown.

    TabControl_NewButtonShowMode_NoWhere

  • InHeaderArea - the New Button is located inside the Header Area.

    TabControl_NewButtonShowMode_InHeaderArea

  • InTabPanel - the New Button is located inside the Tab Panel, next to tab item headers.

    TabControl_NewButtonShowMode_InTabPanel

  • InHeaderAreaAndTabPanel - the New Button is shown in the Tab Panel and Header Area simultaneously.

    TabControl_NewButtonShowMode_InHeaderAreaAndTabPanel

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the NewButtonShowMode 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.

See Also