[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
   [Expand]Predefined Set
    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]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Services

Services provide a specific UI-aware functionality for Views in MVVM applications. Although services are defined within Views, their functionality can still be invoked from View Models that may not even include information about Views.

Getting Started

Services in ViewModelBase descendants

Services in POCO objects

Services in custom ViewModels

View creation mechanisms

Predefined set of Services

  • Message Box Services

  • Dialog Services

    • DialogService (IDialogService) - allows you to display views in a modal window
    • WinUIDialogService (IDialogService) - allows you to display views in a modal window in a Windows 8 style
  • Document Manager Services

  • Report Services

  • Open/Save File Dialogs

    • OpenFileDialogService (IOpenFileDialogService) - allows you to browse and open files in the File System by using the standard dialog box
    • SaveFileDialogService (ISaveFileDialogService) - allows you to save data of a ViewModel to a file by using the standard dialog box
    • DXOpenFileDialogService (DXOpenFileDialogService) - allows you to browse and open files in the File System by using the DevExpress dialog box
    • DXSaveFileDialogService (DXSaveFileDialogService) - allows you to save data of a ViewModel to a file by using the DevExpress dialog box
  • NotificationService (INotificationService) - allows you to display notifications in a Windows 8 style
  • TaskbarButtonService (ITaskbarButtonService) - allows you to customize taskbar buttons
  • ApplicationJumpListService (IApplicationJumpListService) - allows you to add jump tasks to the application's Jump List
  • DXSplashScreenService (ISplashScreenService) - allows you to show a splash screen
  • ViewInjectionService (IViewInjectionService) - allows you to integrate any ViewModel (with its View) to any control
  • DispatcherService (IDispatcherService) - allows you to perform actions in a ViewModel using the Dispatcher
  • FrameNavigationService (INavigationService) - allows you to navigate between Views within a NavigationFrame
  • LayoutSerializationService (ILayoutSerializationService) - allows you to save/restore the layout of serializable DevExpress WPF Controls
  • FolderBrowserDialogService (IFolderBrowserDialogService) - allows you to browse, create, and select folders in the File System by using the standard folder browser dialog
  • WizardService (IWizardService) - allows you to use the Wizard control in accordance with MVVM
  • CurrentWindowService (see ICurrentWindowService) (ICurrentWindowService) - allows you to set a window state and activate, close, hide, and show a window.
  • NotifyIconService (INotifyIconService) - allows you to place a notification icon (system tray icon) in the Windows notification area and manage its behavior

How to create a Custom Service

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