I have a toolbar displayed with my application.
I would like to have a number of the toolbar buttons/tools not displayed in the toolbar (by default at startup), but I would like the user to be able to add the invisiable button/tools later via the "Add or Remove Buttons" menu item.
However if I set the SharedProps.Visible = false for the button/tool so that it doesn't show up in the toolbar, then it isn't available as an option in the "Add or Remove Buttons" menu item.
No matter what combination of settings I've tried, if the button/tool is not visible at startup in the toolbar, then it won't be displayed in the "Add or Remove Buttons" menu.
Any suggestions as to what I can try to not display the button/tool in the toolbar at startup, but to allow the user to add it there later via the "Add or Remove Buttons" toolbar menu.
Here's a sample of the code that I tried to use to get this to work:
ultraToolbarsManager.Tools[0].SharedProps.Visible = false; ultraToolbarsManager.Tools[1].SharedProps.Visible = false; ultraToolbarsManager.Tools[0].CustomizedVisible = DefaultableBoolean.True; ultraToolbarsManager.Tools[1].CustomizedVisible = DefaultableBoolean.True;
I've also tried just this as you had suggested with no luck:
ultraToolbarsManager.Tools[0].CustomizedVisible = DefaultableBoolean.False; ultraToolbarsManager.Tools[1].CustomizedVisible = DefaultableBoolean.False;
I added that code but the tools still appeared in the Toolbar, although they are disabled as a result of adding this code.
I also tried a number of permutations of the code (setting Enabled to false and CustomizedVisible to false for example) but nothing I did would allow me to have the tools NOT appear in the toolbar, but show up in the Add or Remove buttons menus.
Any other ideas?
Hide the tool by code using the CustomizedVisible Property
ultraToolbarsManager1.Toolbars[0].Tools[0].CustomizedVisible = Infragistics.Win.DefaultableBoolean.False;
Hi,
Sorry for the late follow up. I have redirected your question to our developers and will update you as soon as I have information.
Regards,
Stefaniya