private void navBarControl1_MouseClick(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
DevExpress.XtraNavBar.NavBarControl navBar = sender as DevExpress.XtraNavBar.NavBarControl;
DevExpress.XtraNavBar.NavBarHitInfo hitInfo = navBar.CalcHitInfo(new Point(e.X, e.Y));
if (hitInfo.InGroupCaption && !hitInfo.InGroupButton)
{
hitInfo.Group.Expanded = !hitInfo.Group.Expanded;
}
}
}
C#操作dev的NavBarGroup控件标题栏(非展开/折叠按钮)实现展开/折叠功能
最新推荐文章于 2023-04-25 09:16:17 发布