Skip to main content

WinUIDialogWindow.ContentStyle Property

Gets or sets a style applied to the dialog content. This is a dependency property.

Namespace: DevExpress.Xpf.WindowsUI

Assembly: DevExpress.Xpf.Controls.v21.2.dll


public Style ContentStyle { get; set; }

Property Value

Type Description

A Style object that represents the dialog content style.


Target Type: FrameworkElement.

The WinUIDialogWindow dialog window allows you to customize its content. To do this, pass a custom Style object to the ContentStyle property.

The code sample below shows how to stretch the dialog content.

    <Style TargetType="dxwinui:WinUIDialogWindow">
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="ContentStyle">
                <Style TargetType="FrameworkElement">
                    <Setter Property="Margin" Value="8"/>
                    <Setter Property="HorizontalAlignment" Value="Stretch"/>

See Also