Back to Devexpress

EditorContainer.LookAndFeel Property

windowsforms-devexpress-dot-xtraeditors-dot-container-dot-editorcontainer-e540b809.md

latest3.6 KB
Original Source

EditorContainer.LookAndFeel Property

Namespace : DevExpress.XtraEditors.Container

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Appearance")]
public virtual UserLookAndFeel LookAndFeel { get; }
vb
<DXCategory("Appearance")>
Public Overridable ReadOnly Property LookAndFeel As UserLookAndFeel

Property Value

Type
UserLookAndFeel

The following code snippets (auto-collected from DevExpress Examples) contain references to the LookAndFeel 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-grid-rename-grid-filters-save-restore-layout/CS/WindowsApplication3/FilterNameProvider.cs#L70

csharp
if (e.Button == MouseButtons.Right && hitInfo.HitTest == GridHitTest.FilterPanel) {
    ((IDXDropDownControl)menu).Show(new SkinMenuManager(view.GridControl.LookAndFeel), view.GridControl, e.Location);
}

winforms-grid-display-text-editor-in-column-header/CS/WindowsApplication1/MyGridColumnRenameHelper.cs#L57

csharp
{
    Skin currentSkin = CommonSkins.GetSkin(gridView.GridControl.LookAndFeel);
    return currentSkin.TranslateColor(SystemColors.Control);

winforms-grid-rename-grid-filters-save-restore-layout/VB/WindowsApplication3/FilterNameProvider.vb#L84

vb
If e.Button = MouseButtons.Right AndAlso hitInfo.HitTest = GridHitTest.FilterPanel Then
    CType(menu, IDXDropDownControl).Show(New SkinMenuManager(view.GridControl.LookAndFeel), view.GridControl, e.Location)
End If

winforms-grid-display-text-editor-in-column-header/VB/WindowsApplication1/MyGridColumnRenameHelper.vb#L55

vb
Private Function GetColor() As Color
    Dim currentSkin As Skin = CommonSkins.GetSkin(gridView.GridControl.LookAndFeel)
    Return currentSkin.TranslateColor(SystemColors.Control)

See Also

EditorContainer Class

EditorContainer Members

DevExpress.XtraEditors.Container Namespace