[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]MVVM Framework
  [Expand]ViewModels
  [Expand]Commands
  [Expand]Behaviors
  [Collapse]Services
    Getting Started
    Services in ViewModelBase descendants
    Services in POCO objects
    Services in custom ViewModels
    View creation mechanisms
   [Collapse]Predefined Set
    [Expand]Dialog Services
    [Collapse]Message Box Services
      DXMessageBoxService
      WinUIMessageBoxService
    [Expand]Document Services
    [Expand]ViewInjectionService
    [Expand]Report Services
     NotificationService
     TaskbarButtonService
     ApplicationJumpListService
     DXSplashScreenService
     DispatcherService
     FrameNavigationService
     LayoutSerializationService
     FolderBrowserDialogService
     OpenFileDialogService
     SaveFileDialogService
     WizardService
     NotifyIconService
    How to create a Custom Service
  [Expand]DXBinding
  [Expand]MIF
   Converters
   ViewLocator
   Messenger
   Data Annotation Attributes
   LayoutTreeHelper
   Weak Event
 [Expand]Controls and Libraries
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

DXMessageBoxService

The DXMessageBoxService is a IMessageBoxService implementation that uses the DXMessageBox control for showing messages. It can show messages like below.

This topic contains serveral examples that demonstrate how to use the DXMessageBoxService. They are listed below.

Expanded How to use MessageBoxService in ViewModels derived from the ViewModelBase class

This example demonstrates how to use the DXMessageBoxService in View Models derived from the ViewModelBase class. The View Models are related to each other by the parent-child relationship with the ISupportParentViewModel interface.

You can find more information about View Model parent-child relationships in the following topic: ViewModel relationships (ISupportParentViewModel)

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=T144403.

Expanded How to use MessageBoxService in POCO View Models

This example demonstrates how to use the DXMessageBoxService in POCO View Models. The View Models are related to each other by the parent-child relationship with the ISupportParentViewModel interface.

You can find more information about View Model parent-child relationships in the following topic: ViewModel relationships (ISupportParentViewModel)

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=T144023.

Expanded How to use MessageBoxService in a custom View Model

This example demonstrates how to use the DXMessageBoxService in a custom View Model (not derived from the ViewModelBase class and not a POCO View Model).

You can find more information on how to implement the support of the Service mechanism in a custom View Model in the following topic: Services in custom ViewModels.

Custom View Models in this example are related to each other with the parent-child relationship. This is achieved by supporting the ISupportParentViewModel interface in the View Models.

You can find more information about View Model parent-child relationships in the following topic: ViewModel relationships (ISupportParentViewModel)

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=T144555.

Is this topic helpful?​​​​​​​