Hello!
I have a pop up menu tool in a ribbon menu that contains a lot of state buttons. Is there a way to stop the menu from closing when any of the state buttons are closed?
The state buttons controls the appstyling theme of the interface, and it would be nice to be able click the different options and view the interface without having to open the menu time after time...
/Henrik
Thanks for the feedback. If you have any questions, feel free to write us
That more or less did the trick. Depending on where in the menu-system the tool is located, you have to activate a set of operation to make it stay opened.
In my case, I had to execute the following lines.
tbm.Ribbon.ApplicationMenu.DropDown()
e.Tool.Owner.Owner.DropDown()
e.Tool.Owner.DropDown()
OK. If so, maybe you could try the code:
private void ultraToolbarsManager1_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e)
{
if (e.Tool.Owner.GetType() == typeof(PopupMenuTool))
ultraToolbarsManager1.Ribbon.ApplicationMenu.DropDown();
((PopupMenuTool)e.Tool.Owner).DropDown();
}
Let me know if you have any questions
Sorry, I guess that you are calling it ApplicationMenu. The big dropdown that appears when you click the round ribbon button...
Hello Henrik,
I`m not able to follow you. What you mean with "...to the ribbon drop down menu...". Do you mean QuickAccessToolbar ? Or maybe you are talking about ApplicationMenu or ApplicationMenu2010.
Zlatan said:it seems like the behavior of your code works differently depending on if the tool is placed in a toolbar or a menu
Regards