Hello,
I have an UltraTabbedMdiManager in which I programatically open two tabs.
The user can then open additional tabs from the information contained in these two tabs.
I'd like for the two tabs to never close. While the user opened ones can be closed.
How can I go about doing this?
Thank You!
I was able to disable close functionality on the first two tabs using the following code:
ultraTabbedMdiManager.TabGroups[0].Tabs[0].Settings.AllowClose = DefaultableBoolean.False;ultraTabbedMdiManager.TabGroups[0].Tabs[0].Settings.CloseButtonVisibility = TabCloseButtonVisibility.Never;
ultraTabbedMdiManager.TabGroups[0].Tabs[1].Settings.AllowClose = DefaultableBoolean.False;ultraTabbedMdiManager.TabGroups[0].Tabs[1].Settings.CloseButtonVisibility = TabCloseButtonVisibility.Never;
Hello Anthony,
You can prevent a tab from closing by setting the AllowClose property. When the selected tab cannot be closed, the close button will appear disabled and the 'Close' menu option on the context menu that is displayed for the tab will be removed.
You can find more information about displaying a close button on each tab in Infragistics documentation.