Skip to main content
All docs
V25.2
  • WinForms Application Templates

    • 3 minutes to read

    The XAF uses built-in Templates for automatic UI construction. The templates for WinForms applications are listed below.

    Main Form Template (LightStyleMainForm)

    LightStyleMainForm

    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.

    Main Ribbon Form Template (LightStyleMainRibbonForm)

    LightStyleMainRibbonForm

    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.

    Detail Form Template (DetailFormV2)

    Contact_DetailView

    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.

    Detail Ribbon Form Template (DetailRibbonFormV2)

    DetailRibbonFormTemplate

    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.

    PopupFormTemplate

    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.

    Nested Frame Template (NestedFrameTemplateV2)

    NestedFrameTemplate

    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.

    Lookup Form Template (LookupForm)

    LookupFormTemplate

    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.

    Lookup Control Template (LookupControlTemplate)

    LookupControlTemplate

    Class: LookupControlTemplate

    Namespace: DevExpress.ExpressApp.Win.Templates

    Used to display a Lookup Property Editor’s drop down window.

    Logon Window Template (LogonPopupForm)

    Class: LogonPopupForm

    Namespace: DevExpress.ExpressApp.Win.Templates

    Defines the logon window layout and appearance.

    OutlookStyleMainRibbonForm

    OutlookStyleMainRibbonForm

    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.

    Deprecated Templates

    MainFormV2

    MainFormTemplate

    Class: MainFormV2

    Namespace: DevExpress.ExpressApp.Win.Templates

    Displays the main Window. To use this template, set the IModelOptionsWin.FormStyle property to Standard.

    MainRibbonFormV2

    MainRibbonFormV2

    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.

    How To’s