Skip to main content
A newer version of this page is available. .

ControlBase Class

Represents the base class for most editors and controls available in the DevExpress Editors Library, along with their descendants.

Namespace: DevExpress.Utils.Controls

Assembly: DevExpress.Utils.v21.1.dll

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

Declaration

public class ControlBase :
    Control,
    IScaleDpiProvider,
    IDpiMessageClient

Remarks

This class implements the common functionality used by its descendants. Note that this class is mostly intended for internal use, and normally, you don’t need to create its instance.

Example

The following example demonstrates how to create and customize an in-place LookUpEdit control (RepositoryItemLookUpEdit) to edit cell values in the CategoryID column.

The lookup editor displays category names in the edit box instead of category IDs (see the DisplayMember setting).

Play the animation to see the result:

lookup-standardmode-example-result.gif

View Example

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace LookupEdit_StandardBinding {
    static class Program {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main() {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}

Inheritance

Show 120 items
Object
MarshalByRefObject
Component
Control
ControlBase
See Also