Back to Devexpress

DialogService.DialogStyle Property

wpf-devexpress-dot-xpf-dot-core-dot-dialogservice.md

latest4.6 KB
Original Source

DialogService.DialogStyle Property

Gets or sets the style of a displayed dialog window. This is a dependency property.

Namespace : DevExpress.Xpf.Core

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public Style DialogStyle { get; set; }
vb
Public Property DialogStyle As Style

Property Value

TypeDescription
Style

A Style that specifies the style of a displayed dialog window.

|

Remarks

The DialogService displays different windows based on the TargetType property value of the style assigned to the DialogStyle property:

TargetTypeDescription
dx:ThemedWindowThe DialogService displays its content in the ThemedWindow.
dx:DXWindow / dx:DXDialogWindowThe DialogService displays its content in the DXDialogWindow.
WindowThe DialogService displays its content in the ThemedWindow or DXDialogWindow based on the UseThemedWindowInServices property value.

The following code snippets (auto-collected from DevExpress Examples) contain references to the DialogStyle 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-lookupedit-process-new-values/CS/HowToCreateLookUpEdit/MainWindow.xaml#L21

xml
</dx:DialogService.ViewTemplate>
<dx:DialogService.DialogStyle>
    <Style TargetType="Window">

how-to-use-the-wpf-wizardservice/CS/VM-DrivenWizard/MainWindow.xaml#L25

xml
</dx:DialogService.ViewTemplate>
<dx:DialogService.DialogStyle>
    <Style TargetType="dx:ThemedWindow">

wpf-property-grid-use-data-annotations-to-define-property-editor/CS/PropertyGridEditorAttribute/MainWindow.xaml#L23

xml
</dx:DialogService.ViewTemplate>
<dx:DialogService.DialogStyle>
    <Style TargetType="Window">

wpf-imageedit-edit-images-in-separate-window/CS/ImageEditToEditModeBehavior/MainWindow.xaml#L22

xml
</dx:DialogService.ViewTemplate>
<dx:DialogService.DialogStyle>
    <Style TargetType="Window">

wpf-pivot-grid-obtain-underlying-data/CS/ObtainUnderlyingData/MainWindow.xaml#L17

xml
<dx:DialogService Name="DrillDownTemplate">
    <dx:DialogService.DialogStyle>
        <Style TargetType="dx:DXDialogWindow">

See Also

DialogService Class

DialogService Members

DevExpress.Xpf.Core Namespace