If you derive an editor from the BaseEdit class, you should create a new repository item by deriving it from the RepositoryItem class. In addition, the custom repository item can introduce new settings, new events or redefine the processing of default settings. This class should at least override the EditorTypeName property. All repository items are derived from the base RepositoryItem class.įor each custom editor, you must create a custom repository item class. For instance, settings for a DateEdit control are encapsulated by the RepositoryItemDateEdit class, while settings for an ImageComboBo圎dit editor are provided by the RepositoryItemImageComboBox class. If the editor you are creating has something in common with an existing editor, you can inherit from the appropriate editor instead.Ĭreate a custom repository item class storing editor-specific propertiesĮach editor in the XtraEditors library has an associated object called a repository item, which stores editor-specific settings and event handlers. If you need to implement completely new functionality for your editor, you can inherit from the BaseEdit class, which is the root ancestor for all editors in the XtraEditors library. General InformationĬreating a custom editor involves three steps:Ĭreate a custom editor class implementing specific behavior This document provides general information on how to create custom editors for standalone and in-place editing (e.g., in GridControl, TreeList and BarManager).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |