.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.
.NET 5.0+

WinApplication.UseOldTemplates Property

Replaces old templates (MainForm and DetailForm) with new templates in WinForms applications (v14.2+).

Namespace: DevExpress.ExpressApp.Win

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


public bool UseOldTemplates { get; set; }

Property Value

Type Description

false, if an XAF WinForms application uses new templates; otherwise, true


The Solution Wizard enables new templates for all XAF WinForms applications created in v14.2 or later. Your application uses new templates if you can find the following line in your solution:

UseOldTemplates = false;

If you cannot find this line, your application uses old templates. You can add the following code to the Program.cs(vb) file to activate new templates in your application:

public class Program {
  public static void Main(string[] arguments) {
    // ...
    MyApplication winApplication = new MyApplication();
    winApplication.UseOldTemplates = false;
    // ...

We recommend using new templates when possible. We no longer fix bugs and develop new features for old templates.

See Also