Back to Devexpress

ShowInSingleWindowStrategy Class

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

latest2.8 KB
Original Source

ShowInSingleWindowStrategy Class

A Show View Strategy that can be used as an alternative to the ShowInMultipleWindowsStrategy. Provides a different behavior when a Detail View is invoked from a List View that is displayed in the main Window.

Namespace : DevExpress.ExpressApp.Win

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

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

Declaration

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

Remarks

According to this Strategy, when a Detail View is invoked from a root (see View.IsRoot) List View that is displayed in the main Window, the Detail View must replace the List View in the main Window:

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 ShowInSingleWindowStrategy

See Also

ShowInSingleWindowStrategy Members

DevExpress.ExpressApp.Win Namespace