Back to Devexpress

DialogService Class

wpf-devexpress-dot-xpf-dot-core-3bb358bd.md

latest4.6 KB
Original Source

DialogService Class

Provides methods to show a dialog window.

Namespace : DevExpress.Xpf.Core

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
[TargetType(typeof(Window))]
[TargetType(typeof(UserControl))]
public class DialogService :
    ViewServiceBase,
    IDialogService,
    IMessageBoxButtonLocalizer,
    IMessageButtonLocalizer,
    IDocumentOwner
vb
<TargetType(GetType(UserControl))>
<TargetType(GetType(Window))>
Public Class DialogService
    Inherits ViewServiceBase
    Implements IDialogService,
               IMessageBoxButtonLocalizer,
               IMessageButtonLocalizer,
               IDocumentOwner

Remarks

The DialogService class implements the IDialogService interface.

Refer to the following help topic for more information: DialogService.

The following code snippets (auto-collected from DevExpress Examples) contain references to the DialogService class.

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-reporting-use-custom-controls-for-editing-report-content-in-print-preview/CS/MainWindow.xaml#L23

xml
</dx:DialogService>-->
<dx:DialogService Name="previewService">
    <dx:DialogService.ViewTemplate>

wpf-lookupedit-process-new-values/CS/HowToCreateLookUpEdit/MainWindow.xaml#L14

xml
<dxmvvm:Interaction.Behaviors>
    <dx:DialogService DialogWindowStartupLocation="CenterOwner">
        <dx:DialogService.ViewTemplate>

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

xml
<dxmvvm:Interaction.Behaviors>
    <dx:DialogService UnregisterOnUnloaded="True">
        <dx:DialogService.ViewTemplate>

reporting-wpf-mvvm-show-report-document-preview/CS/MainWindow.xaml#L13

xml
<dx:DXMessageBoxService />
<dx:DialogService Name="previewDialogService">
    <dx:DialogService.ViewTemplate>

reporting-wpf-mvvm-viewmodel-data-to-report/CS/MainWindow.xaml#L15

xml
<dxmvvm:Interaction.Behaviors>
    <dx:DialogService>
        <dx:DialogService.ViewTemplate>

Inheritance

Show 12 items

Object DispatcherObject DependencyObject Freezable Animatable DevExpress.Mvvm.UI.Interactivity.AttachableObjectBase DevExpress.Mvvm.UI.Interactivity.Behavior DevExpress.Mvvm.UI.Interactivity.Behavior<FrameworkElement> DevExpress.Mvvm.UI.ServiceBaseGeneric<FrameworkElement> ServiceBase ViewServiceBase DialogService

See Also

DialogService Members

DevExpress.Xpf.Core Namespace