Services
- 3 minutes to read
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.
Services in ViewModelBase descendants
Predefined set of Services
Message Box Services
- DXMessageBoxService (IMessageBoxService) - allows you to display message boxes
- WinUIMessageBoxService (IMessageBoxService) - allows you to display message boxes in a Windows 8 style
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
- WindowedDocumentUIService (IDocumentManagerService) - allows you to show windowed documents
- DockingDocumentUIService (IDocumentManagerService) - allows you to show docked documents
- TabbedDocumentUIService (IDocumentManagerService) - allows you to show tabbed documents
- FrameDocumentUIService (IDocumentManagerService) - allows you to show framed documents
- TabbedWindowDocumentUIService (IDocumentManagerService) - allows you to show tabbed documents
Report Services
- GridReportManagerService (IReportManagerService) - allows you to export data from a GridControl using the XtraReports suite
- StandaloneReportManagerService (IReportManagerService) - allows you to export data from any appropriate data source supported by XtraReport
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 (IOpenFileDialogService) - allows you to browse and open files in the File System by using the DevExpress dialog box
- DXSaveFileDialogService (ISaveFileDialogService) - 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 (ICurrentWindowService), CurrentDialogService (ICurrentDialogService) - 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