Current filter:
                                You should refresh the page.
                                Support Center

                                This example shows how to build a dock UI using the MVVM pattern.

                                • David Lemieux 12.03.2013

                                  How come the view should be responsible of creating documents and panels? In a true MVVM design this should be the ViewModel's responsibility.

                                • David Lemieux 12.05.2013

                                  Is anyone from DevExpress monitoring comments on examples?

                                • Hello David,
                                  The View only creates root containers where dock panels are placed. This is a required step of creating the Docking UI.

                                • David Lemieux 12.16.2013

                                  Alex, I was refering to MainWindow.xaml.cs file. It has AddPanel_Click and AddDocument_Click methods, in which view models instances are created.

                                  If the purpose of the example is to demonstrate how DX docking can be used with the MVVM pattern, then the DockLayoutManagerViewModel class should be responsible for creating / adding documents. Giving this responsibility to the view class goes straight against MVVM design rules, IMHO.

                                • David, you're right. We have moved the code that creates Panels and Documents to View Models.

                                • David Lemieux 12.17.2013

                                  Thanks. You might want to clean up MainPage's code too. The DockLayoutManagerViewModel is instanciated in both the XAML and code behind. ;)

                                • Raju Muthu 01.06.2014

                                  Can this example extended to using PRISM regions? or is there an example already with this feature utilizing Prism?

                                • Gagan Kapoor 02.01.2014

                                  Hi, I need a dock UI with ability to host different types of views in Document Group (Tabs) at run time using Prism. Can you point me to an example of it ?

                                You must  log in  or  register  to leave comments
                                Show Implementation Details
                                Select file
                                • MainPage.xaml
                                • MainPage.xaml.cs
                                • MainWindow.xaml
                                • MainWindow.xaml.cs
                                • ViewModel.cs
                                • ViewModel.cs
                                Select language
                                • C#
                                • VB.NET
                                Select version
                                • v2013 vol 2.5 - v2014 vol 1.6
                                • v2011 vol 2.10 - v2013 vol 1.11

                                If you need additional product information, write to us at or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners