hi i'm use VS2008 and Infragistics2.Win.v11.2 (11.2.20112.2050)
SharedProps.Visible = False ... Does not disappear
I want using the Ribbon and make the button disappear
Ask for help
Thank you for answer
Hello,
I am just checking about the progress of this issue. Let me know If you need my further assistance on this matter?
Thank you for using Infragistics Components.
Hello ,
Our Ribbon was developed based on Microsoft Ribbon guidelines. In the section “Interaction” is described that it is not recommended to remove toll from the ribbon because doing so can cause the ribbon layout to change, making the ribbon presentation unusable. That is why visible property of ToolBase object act as “Enable”
http://msdn.microsoft.com/en-us/library/windows/desktop/cc872782.aspx#interaction
So if want to hide ToolBase object of customer view, you should remove it from the tools collection. You could use code like:
UltraToolbarsManager1.Ribbon.Tabs("ribbon1").Groups("ribbonGroup1").Tools.Remove(UltraToolbarsManager1.Ribbon.Tabs("ribbon1").Groups("ribbonGroup1").Tools("ButtonTool1"))
Also in order not to loose this ToolBase object you could add it to a prive global collection variable and when you need to make this toolBase object visible again, then just insert it to Tools collection of the desired UltraToolbarsManager element.
Please let me know if you have nay further questions.