Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

WinApplication.ShowViewStrategy Property

Specifies the Show View Strategy used in a Windows Forms application.

Namespace: DevExpress.ExpressApp.Win

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

#Declaration

[Browsable(false)]
public WinShowViewStrategyBase ShowViewStrategy { get; set; }

#Property Value

Type Description
WinShowViewStrategyBase

A WinShowViewStrategyBase object, specifying the Show View Strategy used in a Windows Forms application.

#Remarks

General information on Show View Strategies is provided in the ShowViewStrategyBase topic. An example of accessing this property to enable the MdiShowViewStrategy is shown below.

public static void Main(string[] arguments) {
    // ...
    winApplication.ShowViewStrategy = new MdiShowViewStrategy(winApplication);
    winApplication.Setup();
    winApplication.Start();
    //...
}

As the Show View Strategy may change during the application life cycle, we recommend that you subscribe to the ShowViewStrategy event from the XafApplication.ShowViewStrategyChanged event handler in Windows Forms applications. For more information, refer to the following topic: WinShowViewStrategyBase.WinWindowShowing.

See Also