Back to Devexpress

TabControlViewBase.NewButtonShowMode Property

wpf-devexpress-dot-xpf-dot-core-dot-tabcontrolviewbase-e99a964f.md

latest2.4 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public NewButtonShowMode NewButtonShowMode { get; set; }
vb
Public Property NewButtonShowMode As NewButtonShowMode

Property Value

TypeDescription
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:

NameDescription
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.

Below is a list of all possible locations.

  • NoWhere - the New Button is not shown.

  • InHeaderArea - the New Button is located inside 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.

See Also

Showing and Hiding Tab Items

Adding and Removing Tab Items

TabControlViewBase Class

TabControlViewBase Members

DevExpress.Xpf.Core Namespace