Quantcast
Viewing all articles
Browse latest Browse all 7205

How to use the DXDocking and DXBars components with Prism

This sample demonstrates how to use the DXDocking and DXBars components with Prism.


The solution contains projects for the Silverlight platform:

1.The Infrastructure module contains common resources and the base IDocumentManager interface;

2. The Shell module - the main application module that contains the main form and module registration logic;

3. Four sub-modules - These will be injected into the main form via Prism.


The Shell module contains the basic control layout for the application:

1. The BarManger component contains a main menu with application actions;

2. DockLayoutManager contains regions for sub-modules.

The Shell module implements the IDocumentManager interface and exports this interface via the Prism Export Attribute. This interface provides basic interaction functionality between the main module and sub-modules.


Each sub-module implements a specific part of GUI (such as Grid, Text Editor, etc.) and contains a number of relative commands for this sub-module. The modules interact with the Shell module via the IDocumentManager interface, which is imported via the Prism Import attribute.


Sub-modules can be separately customized in the Visual Studio designer.


Note that when working with Prism, the bars merging feature is automatically supported: an MDI child and main menus are automatically merged when an MDI child form is activated or maximized. The DockLayoutManager.Merge event allows you to implement additional bars merging logic.

To learn more on how to implement similar functionality in WPF, refer to the E3340 example.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>