expressappframework-403446-ui-construction-templates-winforms-application-templates.md
The XAF uses built-in Templates for automatic UI construction. The templates for WinForms applications are listed below.
Class: LightStyleMainForm
Namespace: DevExpress.ExpressApp.Win.Templates.Bars.
Displays the main Window without excessive borders. To use this template, set the IModelOptionsWin.FormStyle property to Standard and WinApplication.UseLightStyle to true.
Class: LightStyleMainRibbonForm
Namespace: DevExpress.ExpressApp.Win.Templates.Ribbon
Displays the main Window with the Ribbon form style without excessive borders. To use this template, set the IModelOptionsWin.FormStyle property to Ribbon and WinApplication.UseLightStyle to true.
Class: DetailFormV2
Namespace: DevExpress.ExpressApp.Win.Templates.Bars
Displays a Detail View in a new Window. To use this template, set the IModelOptionsWin.FormStyle property to Standard.
Class: DetailRibbonFormV2
Namespace: DevExpress.ExpressApp.Win.Templates.Ribbon
Displays a Detail View in a new Window with the Ribbon form style. To use this template, set the IModelOptionsWin.FormStyle property to Ribbon.
Class: PopupForm
Namespace: DevExpress.ExpressApp.Win.Templates
Used to display pop-up windows with a Detail View. For instance, a logon form is displayed by the PopupForm Template.
Class: NestedFrameTemplateV2
Namespace: DevExpress.ExpressApp.Win.Templates.Bars
Used to display a Window or Frame nested into another Window or Frame. For instance, a List Property Editor or Detail Property Editor’s window is displayed by the NestedFrameTemplateV2 Template.
Class: LookupForm
Namespace: DevExpress.ExpressApp.Win.Templates
Used to display pop-up windows with a List View. For instance, PopupWindowShowAction type Actions use the LookupForm Template to display their pop-up window.
Class: LookupControlTemplate
Namespace: DevExpress.ExpressApp.Win.Templates
Used to display a Lookup Property Editor’s drop down window.
Class: LogonPopupForm
Namespace: DevExpress.ExpressApp.Win.Templates
Defines the logon window layout and appearance.
Class: OutlookStyleMainRibbonForm
Namespace: DevExpress.ExpressApp.Win.Templates.Ribbon
Used to display the main Window with the Outlook form style. To use this template, apply settings as the IModelRootGroupsStyle.RootGroupsStyle article describes, and set the RootGroupStyle property to OutlookSimple or OutlookAnimated.
Class: MainFormV2
Namespace: DevExpress.ExpressApp.Win.Templates
Displays the main Window. To use this template, set the IModelOptionsWin.FormStyle property to Standard.
Class: MainRibbonFormV2
Namespace: DevExpress.ExpressApp.Win.Templates.Bars
Displays the main Window with the Ribbon form style. To use this template, set the IModelOptionsWin.FormStyle property to Ribbon.
Note
Refer to the How to: Enable the Main Menu Bars or Ribbon in WinForms topic to learn how to toggle a Ribbon user interface in your WinForms application.