如何从RibbonBar DevExpress C#中的Checkedit(CheckBox)获取 Value
我花了几个小时去浏览谷歌,我发现有点关于这个背景,但这是在VB,我需要在C#
这是我在VB中找到的请帮助我谢谢
` Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
End Sub
Private Sub repositoryItemCheckEdit1_CheckedChanged(ByVal sender As Object, ByVal e As EventArgs) Handles repositoryItemCheckEdit1.CheckedChanged
Dim edit As CheckEdit = TryCast(sender, CheckEdit)
XtraMessageBox.Show(edit.Checked.ToString())
End Sub
Private Sub repositoryItemCheckEdit1_EditValueChanged(ByVal sender As Object, ByVal e As EventArgs) Handles repositoryItemCheckEdit1.EditValueChanged
End Sub`
1 回答
使用EditValueChanged属性我能够解决这个问题 .
选择项目 - >事件 - >双击EditValueChanged并添加以下代码: