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.v20.2.dll

NuGet Packages: DevExpress.Utils, 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

This example shows how to use an in-place LookUpEdit control (RepositoryItemLookUpEdit) to edit cells in a grid column.

The lookup editor is assigned to the CategoryID column. The editor displays category names in the edit box instead of category IDs (see the DisplayMember setting).

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