Back to Devexpress

ThemedWindow.WindowKind Property

wpf-devexpress-dot-xpf-dot-core-dot-themedwindow-18e670fc.md

latest4.2 KB
Original Source

ThemedWindow.WindowKind Property

Gets or sets a value that specifies the current ThemedWindow‘s operation mode. This is a dependency property.

Namespace : DevExpress.Xpf.Core

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

NuGet Package : DevExpress.Wpf.Core

Declaration

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

Property Value

TypeDescription
WindowKind

A WindowKind enumeration value.

|

Available values:

NameDescription
Auto

Automatically defines the window type depending on the control used.

| | Normal |

Disables the Ribbon Control or the Tab Control integration with the ThemedWindow.

| | Tabbed |

Integrates the TabControl with the ThemedWindow.

| | Ribbon |

Integrates the Ribbon Control with the ThemedWindow.

|

Remarks

The code sample below demonstrates how to set the WindowKind Ribbon value.

xaml
<dx:ThemedWindow
        xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core" 
        ...
        WindowKind="Ribbon">
...
</dx:ThemedWindow>

Note

The RibbonControl parent element’s Background property must be set to null.

The following code snippets (auto-collected from DevExpress Examples) contain references to the WindowKind 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.

wpf-scheduler-add-datenavigator-and-resourcetree-controls/CS/DXSample/MainWindow.xaml#L11

xml
Title="Scheduling"
WindowKind="Normal">

wpf-scheduler-filter-time-regions/CS/DXSample/MainWindow.xaml#L12

xml
Title="Scheduling"
WindowKind="Ribbon">

wpf-mvvm-behaviors-gallery-based-theme-palette-selector/CS/MainWindow.xaml#L9

xml
Title="MainWindow" Height="350" Width="525"
    WindowKind="Ribbon" >
<Grid>

wpf-data-grid-customize-background/CS/MainWindow.xaml#L13

xml
dx:DXSerializer.Enabled="True"
WindowKind="Ribbon"
mc:Ignorable="d"

reporting-wpf-mvvm-manage-report-designer-documents/CS/MainWindow.xaml#L10

xml
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
mc:Ignorable="d" WindowKind="Tabbed" WindowState="Maximized"
Title="MainWindow" Height="450" Width="800">

See Also

ThemedWindow Class

ThemedWindow Members

DevExpress.Xpf.Core Namespace