c#怎么访问 devexpress.xtrabars.barbuttonitem

发布时间:2024年01月21日

namespace?DXApplication1
{
????public?partial?class?Form1?:?DevExpress.XtraEditors.XtraForm
????{
????????public?Form1()
????????{
????????????InitializeComponent();
?????????????
????????????//?修改barButtonItem1的Caption
????????????barButtonItem1.Caption?=?"测试";
?????????????
????????????//?添加事件处理
????????????barButtonItem1.ItemClick?+=?barButtonItem1_ItemClick;
????????}
?
????????void?barButtonItem1_ItemClick(object?sender,
????????????DevExpress.XtraBars.ItemClickEventArgs?e)
????????{
????????????XtraMessageBox.Show("测试按钮被点击!");
????????}
????}
}

文章来源:https://blog.csdn.net/wushijun5200/article/details/135732322
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。