我可以向功能区添加自定义控件吗?
有没有办法向 DevExpress.XtraBars.Ribbon.RibbonControl 添加自定义查找编辑?在我的 RibbonPageGroup 中,我可以右键单击添加控件,包括 LookUpEdit。但是,如果我想将自定义控件添加到 RibbonPageGroup 中,是否允许以及如何操作?我在网上搜索但没有找到太多有用的信息。谢谢!我正在研究 WinForms。
Is there a way to add a customized lookupedit to DevExpress.XtraBars.Ribbon.RibbonControl? In my RibbonPageGroup, I can right click to add controls including LookUpEdit. But if I want to add my customized control to RibbonPageGroup, is it allowed and how to do that? I search online but didn't find much useful information about it. Thanks! I am working on WinForms.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
仅当此控件派生自 DevExpress.XtraEditors.BaseEdit 类时才能完成此操作。另外,您应该注册相应的 RepositoryItem,如 How 中所述注册一个自定义编辑器以在 XtraGrid 文章中使用。
This can be only done if this control is derived from the DevExpress.XtraEditors.BaseEdit class. Also, you should register the corresponding RepositoryItem as it is described in the How to register a custom editor for use in the XtraGrid article.