Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ThemedWindow.ControlBoxButtonSet Property

Gets or sets buttons displayed in the window control box.

Namespace: DevExpress.Xpf.Core

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public ControlBoxButtons ControlBoxButtonSet { get; set; }

#Property Value

Type Description
ControlBoxButtons

A ControlBoxButtons enumeration

Available values:

Name Description
None

The themed window displays no control buttons (Close, Minimize, Maximize).

Close

A Close button.

MaximizeRestore

Maximize and Restore buttons.

Minimize

A Minimize button.

Restore

#Remarks

The following code example demonstrates how to display only the Close and Maximize/Restore control box buttons.

<dx:ThemedWindow
  ...
  xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
  ControlBoxButtonSet="Close,MaximizeRestore">
    ...
</dx:ThemedWindow>

The following image illustrates the result:

ThemedWindow ControlboxButtonsSet Property Result

See Also