Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
Resizing quick access toolbar configuration button
posted

Hello!

I'm developing a DPI aware application and I want to increase the size of the buttons and icons in the quick access toolbar.

When I set the ImageSizeSmall property on the toolbarsmanager it scales the command buttons properly in QAT but the configuration button remains small.

How can I increase the size of the QAT configuration button and its icon?

I made the following sample to demonstrate my problem:
public partial class Test : Form
    {
        private Infragistics.Win.UltraWinToolbars.UltraToolbarsManager toolbarManager;


        public Test()
        {
            InitializeComponent();
            this.Size = new Size(600, 400);
        }

        private void Test_Load(object sender, EventArgs e)
        {
            toolbarManager = new Infragistics.Win.UltraWinToolbars.UltraToolbarsManager();
            toolbarManager.DockWithinContainer = this;

            var tool = new ButtonTool("Button1");
            toolbarManager.Tools.Add(tool);
            var tabGroup = new RibbonGroup("Key2", "TabItem1");
            var tab = new RibbonTab("Key1", "Tab1");
            tab.Groups.Add(tabGroup);

            toolbarManager.Ribbon.Tabs.Add(tab);
            toolbarManager.Ribbon.QuickAccessToolbar.AddRemoveTool(tool, 0);
            toolbarManager.Style = ToolbarStyle.Office2010;
            toolbarManager.Office2007UICompatibility = false;
            toolbarManager.Ribbon.FileMenuStyle = FileMenuStyle.ApplicationMenu;
            toolbarManager.Ribbon.Visible = true;
            toolbarManager.Style = ToolbarStyle.ScenicRibbon;
            toolbarManager.ImageSizeSmall = new Size(32, 32);
        }
    }

Parents
No Data
Reply Children
No Data