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
1070
How to activate a Ribbon Tool like the ActiveControl on Windows Forms
posted

Hi,

 is it possible to activate a Ribbon Tool so that it will be focused like the active Control on a Windows Form?

When im trying to set the Active State with the "IsActiveTool" Property the following Error appears:

Can't activate a root tool. Only tool instances that are in an UltraToolbar's or PopupMenuTool's Tools collection can be activated.

The same Error occurs when im using the "ActiveTool" Property on the Toolbars Manager.

 Im using the Infragistics 2007 Volume 3 Version of the Toolbar.

 

Whats the  Problem? Ribbon Tools cant have Sub Items i think?!? So why i cant activate a Ribbon Tool?

 

 

Parents
No Data
Reply
  • 44743
    Verified Answer
    posted

    I'm guessing you're getting the tool from the Tools collection of the toolbars manager. This collection contains root tools that are not visible and therefore cannot be activated. Instead, you probably want to do something like this:

    this.ultraToolbarsManager.Ribbon.Tabs[0].Groups[0].Tools["ButtonTool1"].IsActiveTool = true;

    This sets IsActiveTool on an instance tool as opposed to a root tool.

Children