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);
        }
    }

  • 210
    Verified Answer
    posted

    Hi Gabor,

    I attached a sample that utilizes DrawFilter and CreationFilters to draw a new larger image into the QAT button.

    Let me know if you have further questions.

    Regards,

    Ari Shaposhnik

    Sample.zip
  • 210
    posted

    Hi Gabor,

    Unfortunately there is no simple way to do this, to get the intended effect we need to use DrawFilters and CreationFilters. I am writing up a sample to show you how this can be done and will send it shortly.

    Thanks,

    Ari Shaposhnik