Example #1
0
        public override void ZoomFont(Control control, ZoomFontInfo infos)
        {
            base.ZoomFont(control, infos);

            C1NavBar navBar = control as C1NavBar;

            if (navBar.ButtonFont != null)
            {
                navBar.ButtonFont = infos.Zoom(navBar.ButtonFont);
            }
            if (navBar.PanelHeaderFont != null)
            {
                navBar.PanelHeaderFont = infos.Zoom(navBar.PanelHeaderFont);
            }
            if (navBar.SectionHeaderFont != null)
            {
                navBar.SectionHeaderFont = infos.Zoom(navBar.SectionHeaderFont);
            }
        }
Example #2
0
        public override void ZoomBounds(Control control, ZoomBoundsInfo infos)
        {
            base.ZoomBounds(control, infos);
            C1NavBar navBar = control as C1NavBar;

            if (navBar.ButtonHeight > 0)
            {
                navBar.ButtonHeight = infos.Zoom(navBar.ButtonHeight);
            }
            if (navBar.ImageIndent > 0)
            {
                navBar.ImageIndent = infos.Zoom(navBar.ImageIndent);
            }
            if (navBar.PanelHeaderHeight > 0)
            {
                navBar.PanelHeaderHeight = infos.Zoom(navBar.PanelHeaderHeight);
            }
            if (navBar.SectionHeaderHeight > 0)
            {
                navBar.SectionHeaderHeight = infos.Zoom(navBar.SectionHeaderHeight);
            }
            if (navBar.SectionHeaderIndent > 0)
            {
                navBar.SectionHeaderIndent = infos.Zoom(navBar.SectionHeaderIndent);
            }
            if (navBar.StripHeight > 0)
            {
                navBar.StripHeight = infos.Zoom(navBar.StripHeight);
            }


            if (!navBar.ImageScalingSize.IsEmpty)
            {
                navBar.ImageScalingSize = infos.Zoom(navBar.ImageScalingSize);
            }
        }