Back to Devexpress

XtraForm Class

windowsforms-devexpress-dot-xtraeditors-e3d4b7ad.md

latest6.5 KB
Original Source

XtraForm Class

A form that supports title bar and border skinning. The appearance settings of the XtraForm affect the look and feel settings of the DevExpress UI controls placed within it.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
public class XtraForm :
    MouseWheelContainerForm,
    ISupportLookAndFeel,
    IDXControl,
    ICustomDrawNonClientArea,
    ICustomDrawNonClientAreaEx,
    IGlassForm,
    ISupportDXSkinColorsEx,
    ISupportDXSkinColors,
    IFormShadowClientEx,
    IFormShadowClient,
    IFormIconOptionsOwner,
    IFormClientAreaProvider,
    IScaleDpiProvider
vb
Public Class XtraForm
    Inherits MouseWheelContainerForm
    Implements ISupportLookAndFeel,
               IDXControl,
               ICustomDrawNonClientArea,
               ICustomDrawNonClientAreaEx,
               IGlassForm,
               ISupportDXSkinColorsEx,
               ISupportDXSkinColors,
               IFormShadowClientEx,
               IFormShadowClient,
               IFormIconOptionsOwner,
               IFormClientAreaProvider,
               IScaleDpiProvider

The following members return XtraForm objects:

LibraryRelated API Members
WinForms ControlsEditFormPreparedEventArgs.EditForm
XAF: Cross-Platform .NET App UI & Web APICreateCustomFormEventArgs.Form

Remarks

The XtraForm class is derived from the Form and extends its functionality with the support of the look and feel mechanism. This feature allows you to apply a consistent look-and-feel to the form and the controls residing within it.

Use the XtraForm.LookAndFeel property to customize the form’s look and feel settings. These settings specify how headers, borders, buttons, and other visual elements of the DevExpress controls contained within the form are painted.

DevExpress forms (including XtraForm , XtraMessageBox , various dialogs, and message boxes displayed by DevExpress controls) support title bar and border skinning. The following image shows a form painted using the Caramel skin:

Form skinning is automatically enabled in v17.2 and higher. To learn more about this feature and how to disable it, see the Skins topic.

Inheritance

Show 33 items

Object MarshalByRefObject Component Control ScrollableControl ContainerControl Form DevExpress.XtraEditors.DForm DevExpress.XtraEditors.MouseWheelContainerForm XtraForm WizardView

FloatForm

FlyoutDialog

RibbonForm

TabForm

ToolbarForm

DirectXFormBase

StyleManagerForm

PageSetupEditorForm

PrintPreviewFormExBase

AppointmentDependencyForm

AppointmentForm

AppointmentRecurrenceForm

FluentDesignForm

DirectXForm

AppointmentRibbonForm

PrintPreviewFormEx

PrintPreviewRibbonFormEx

XRDesignForm

XRDesignFormEx

XRDesignFormExBase

XRDesignRibbonForm

XRDesignRibbonFormEx

See Also

XtraForm Members

EnableFormSkins()

EnableMdiFormSkins()

DisableFormSkins()

WinForms Skins and Color Palettes

XtraForm - How to center a form caption

XtraForm - How to draw a form title manually

DevExpress.XtraEditors Namespace