简体   繁体   English

如何在DevExpress的RibbonControl中与CheckBox和RadioButton一起执行?

[英]How to perform with CheckBox and RadioButton in RibbonControl in DevExpress?

How to work with CheckEdit in RibbonControl ? 如何在RibbonControl中使用CheckEdit? I drag a CheckEdit and place it in the RibbonPage. 我拖动一个CheckEdit并将其放置在RibbonPage中。 But Is show like Button how to change it to normal "CheckBox" ?? 但是像按钮一样显示如何将其更改为正常的“ CheckBox”吗?

I used RadioGroup and perform through SelectedIndexChanged, I hide caption now it shows only RadioButtons only. 我使用RadioGroup并通过SelectedIndexChanged执行,我隐藏了标题,现在仅显示RadioButtons。 But I need Caption to particular RadioButton not common to RadioGroup. 但是我需要特定于RadioGroup不常见的特定RadioButton的标题。 I add 3 RadioButtons so I need to show 3 caption near/ under to particular RadioButton. 我添加了3个RadioButton,所以我需要在特定RadioButton的附近/下方显示3个标题。

How to complete my task ? 如何完成我的任务? Help me. 帮我。 Thanks in Advance. 提前致谢。

You can use the Ribbon Designer to assign a CheckEdit to your RibbonPage. 您可以使用功能区设计器将CheckEdit分配给RibbonPage。 在此处输入图片说明

This will shown as a normal CheckEdit. 这将显示为普通的CheckEdit。 To Add a description to your RadioGroup you have to Add RadioGroupItems via 要将说明添加到您的RadioGroup中,您必须通过添加RadioGroupItems

radiogroup.edit.items

Property. 属性。 Each item can hold a description and a value. 每个项目可以包含一个描述和一个值。 The description will be displayed in Ribbon if the RibbonPage is big enough to show the descriptions! 如果RibbonPage足够大以显示描述,则描述将显示在Ribbon中。 Further information here: 此处的更多信息:

http://documentation.devexpress.com/#windowsforms/clsDevExpressXtraEditorsRadioGrouptopic http://documentation.devexpress.com/#windowsforms/clsDevExpressXtraEditorsRadioGrouptopic

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM