Exemple #1
0
        private void navBarGroup3_CalcGroupClientHeight(object sender, DevExpress.XtraNavBar.NavBarCalcGroupClientHeightEventArgs e)
        {
            NavBarViewInfo             vi           = GetViewInfo(navBarControl1);
            NavGroupInfoArgs           gi           = vi.Groups[vi.Groups.Count - 1] as NavGroupInfoArgs;
            ExplorerBarNavGroupPainter groupPainter = GetGroupPainter(navBarControl1);
            Size buttonSize;
            int  footerHeight = groupPainter.CalcFooterHeight(gi, out buttonSize);
            int  delta        = gi.Bounds.Top - vi.Client.Top;
            int  ch           = vi.Client.Height - delta - gi.Bounds.Height - footerHeight;

            e.Height = ch;
        }
Exemple #2
0
 private void RobotParaGroup_CalcGroupClientHeight(object sender, DevExpress.XtraNavBar.NavBarCalcGroupClientHeightEventArgs e)
 {
     //  MessageBox.Show("ok");
 }