Back to Devexpress

MdiShowViewStrategy Class

expressappframework-devexpress-dot-expressapp-dot-win-a0a0e321.md

latest4.2 KB
Original Source

MdiShowViewStrategy Class

A Show View Strategy that uses a multiple document interface and can be used as an alternative to the default ShowInMultipleWindowsStrategy.

Namespace : DevExpress.ExpressApp.Win

Assembly : DevExpress.ExpressApp.Win.v25.2.dll

NuGet Packages : DevExpress.ExpressApp.Win, DevExpress.ExpressApp.Win.Design

Declaration

csharp
public class MdiShowViewStrategy :
    WinShowViewStrategyBase
vb
Public Class MdiShowViewStrategy
    Inherits WinShowViewStrategyBase

Remarks

The built-in MainForm Template includes a DocumentManager component. The DocumentManager is a non-visual object that displays content via Documents. Documents can be presented in different ways based on the DocumentManager’s view. There are two Document Manager view types: NativeMdiView and TabbedView. The MdiShowViewStrategy uses the DocumentManager for showing XAF Views. Its MdiShowViewStrategy.MdiMode property value is used to set the DocumentManager ‘s view. The following values are possible:

  • When the MdiMode property is set to MdiMode.Tabbed, the Document Manager uses the Tabbed MDI view. This means that Views are invoked in separate tabs:

  • When the MdiMode property is set to MdiMode.Standard, the Document Manager uses the Native MDI view. This means that Views are invoked in separate Windows:

You can access the DocumentManager to customize its default settings. To do this, cast the MainForm Template by the IDocumentsHostWindow interface and get the value of its DocumentManager property. To see an example, refer to the How to: Access the Document Manager topic.

By default, XAF Windows Forms applications use the ShowInMultipleWindowsStrategy. To use another Strategy, specify the Application Model‘s IModelOptionsWin.UIType property of the Application | Options node. Alternatively, you can manually instantiate the required Strategy and assign it to the XafApplication.ShowViewStrategy property.

For general information on Show View Strategies, refer to the ShowViewStrategyBase class description.

Inheritance

Object ShowViewStrategyBase WinShowViewStrategyBase MdiShowViewStrategy

See Also

MdiShowViewStrategy Members

Document Selector

DevExpress.ExpressApp.Win Namespace