Back to Devexpress

XtraForm.Appearance Property

windowsforms-devexpress-dot-xtraeditors-dot-xtraform-772c591c.md

latest3.3 KB
Original Source

XtraForm.Appearance Property

Gets the appearance settings used to paint the form.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.Utils.v25.2.dll

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

Declaration

csharp
public AppearanceObject Appearance { get; }
vb
Public ReadOnly Property Appearance As AppearanceObject

Property Value

TypeDescription
AppearanceObject

An AppearanceObject object which contains the form’s appearance settings.

|

Remarks

The BackColor2 , GradientMode and Image properties are not supported by the XtraForm. To specify the background image, use the form’s BackgroundImage property.

For more information on appearances, see the Appearances document.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Appearance property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-combobox-with-close-and-clear-buttons-in-dropdown/CS/WindowsApplication3/CustomPopupBaseSizeableFormPainter.cs#L24

csharp
CustomPopupForm form = info.ViewInfo.Form as CustomPopupForm;
    DrawClear(form.IsHotTrackClearButton, form.Appearance, info.Cache, form.ClearButtonRectangle);
}

winforms-combobox-with-close-and-clear-buttons-in-dropdown/VB/WindowsApplication3/CustomPopupBaseSizeableFormPainter.vb#L21

vb
Dim form As CustomPopupForm = TryCast(info.ViewInfo.Form, CustomPopupForm)
    DrawClear(form.IsHotTrackClearButton, form.Appearance, info.Cache, form.ClearButtonRectangle)
End Sub

See Also

LookAndFeel

Appearances

XtraForm Class

XtraForm Members

DevExpress.XtraEditors Namespace