In the “Active Files” menu of the TabGroupPane, how can I remove the Close “X” button in those menu items?
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.
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!
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.
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!