先上效果图:
1. 可编辑:设置Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard;
2. 多行显示,需要重写PopupContainerEdit控件:
public partial class YnPopupModuleEdit : PopupContainerEdit
{
static YnPopupModuleEdit() { RepositoryItemCustomContainerEdit.RegisterCustomEdit(); }
public YnPopupModuleEdit()
{
InitializeComponent();
}
protected override bool AcceptsReturn { get { return true; } }
protected override bool AcceptsTab { get { return true; } }
//Return the unique name
public override string EditorTypeName { get { return RepositoryItemCustomContainerEdit.CustomEditName; } }
//Override the Pr

本文介绍如何使用DevExpress的PopupContainerEdit控件实现可编辑且支持多行显示的功能。通过设置Properties.TextEditStyle为Standard实现编辑,同时通过自定义控件达到多行文本的展示效果。
1043

被折叠的 条评论
为什么被折叠?



