In the “Active Files” menu of the TabGroupPane, how can I remove the Close “X” button in those menu items?
There is no X in those menu items. I have to assume that you have the TabHeaderTemplate set to a data template that contains a close button in which case you may want to review this thread.
Thank you for your response. Can you tell me where to insert the Trigger? Here is my xaml code:<igDock:XamDockManager ActivePaneChanged="dockMgr_ActivePaneChanged" TabItemDragBehavior="DisplayInsertionBar" > <igDock:DocumentContentHost> <igExtensions:ContentPaneFactory.PaneFactory> <v:ContentPaneFactory ItemsSource="{Binding ModuleInstances}" RemoveItemOnClose="True" OurMainViewContainerViewModel="{Binding}" HeaderPath="ModuleInstance.InstanceDescription" ContentPath="." /> </igExtensions:ContentPaneFactory.PaneFactory> </igDock:DocumentContentHost></igDock:XamDockManager>
Thank you!
I'm not sure I follow. The only way that you would have a close button in the menu item is if you created a DataTemplate that you are using for the TabHeaderTemplate property (or via the TabHeaderTemplateSelector) which is not included/shown in any snippet you have provided. The trigger would be used within that DataTemplate.
I use Infragistics.Windows.Extensions and my xaml code is as shown in my previous post. I don’t use TabHeaderTemplate in my code. The close “x” buttons in the menu I referred to are as shown in the screenshot. I can’t figure out how to hide those “x” buttons. TIA!
As I mentioned in my original response you would need to review this other thread and put a trigger in your datatemplate to hide the close button.
Hmm, it has a side-effect. See the screenshot below. I actually want to remove the “X” button in the right side menu; and keep the “X” button in the Tab. TabHeaderTemplate affects both. What should I do? TIA.
Figured out finally. Thank you!
You must be providing a DataTemplate that is being used in that area because the xamDockManager doesn't put a close button in that list. In order to help you you'll need to post a sample that demonstrates the issue.