-
Notifications
You must be signed in to change notification settings - Fork 0
/
CustomRIComboBoxEdit.cs
29 lines (28 loc) · 1.07 KB
/
CustomRIComboBoxEdit.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using System.Collections.Generic;
using System.Linq;
using DevExpress.XtraEditors.Registrator;
using DevExpress.XtraEditors.Repository;
namespace dxSample {
public class CustomRIComboBox : RepositoryItemComboBox {
public const string EditorName = "CustomComboBoxEdit";
public static void Register() {
EditorRegistrationInfo.Default.Editors.Add(new EditorClassInfo(EditorName,
typeof(CustomComboBoxEdit),
typeof(CustomRIComboBox),
typeof(DevExpress.XtraEditors.ViewInfo.ComboBoxViewInfo),
new DevExpress.XtraEditors.Drawing.ButtonEditPainter(),
true, EditImageIndexes.ComboBoxEdit));
}
public CustomRIComboBox() {
}
static CustomRIComboBox() {
Register();
}
public override DevExpress.XtraEditors.Controls.TextEditStyles TextEditStyle {
get {
return DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
}
}
}
}