Current filter:
                                You should refresh the page.
                                  • I came across your FolderBrowserDialogService the other day and thought maybe we could use that in our PRISM application. But I am confused why there is some view behaviours required and some overly complicated ViewModel setup to get it working. Why is their just not a service I can register with my unity container and bring it in via my ViewModel constructor? Why do I need a whole container for each ViewModel?

                                1 Solution

                                Creation Date Importance Sort by

                                Many of our services are bound to the View part. For example, FrameNavigationService requires to be attached to the NavigationFrame element, TabbedDocumentUIService should have a reference to the target DocumentGroup etc. So, they cannot be registered globally in a simple way but should be registered at the level of a corresponding ViewModel.

                                If you want to use our services with a certain IoC container, you can use the approach Michail described in the following thread: MVVM services and IoC container. Please refer to it for more details.


                                • James Baker 08.15.2019

                                  But what about FolderBrowserDialogService? Why is this bound to the View? I didn't see a need?

                                • Kirill (DevExpress Support) 08.16.2019

                                  Hello James,
                                  All our services use the same registration mechanism. However, certain services as MessageBoxService can be registered globally using the static ServiceContainer.Default.RegisterService method. FolderBrowserDialogService is also the case and it's not necessary to use individual containers for it:

                                  ServiceContainer.Default.RegisterService(new FolderBrowserDialogService());

                                  This technique is mentioned in the Services -> Getting Started article. We will improve our documentation to include a complete list of such services.