Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
50
DocumentContentHost Tabs Visual Style
posted

Hello!

Currently XamDockManager only allows docking at the edges leaving the central area for the content. For our application we do not want this central space, we want all the dock manager client area available for docking. I.e. we want the standard behaviour of the DockPanel when the last child fills all the rest of the space. Infragistics dock manager for WinForms allowed it by setting some property, which was extremely handy. I read the forum and learnt that I'm not the first to request this functionality and it is not currently available.

So, I want to ask about different approach: is it possible to adjust the visual representation of the DocumentContentHost so that its Tabs look like the Tabs of the panes docked to the edge and it does not have a thick border?

 Thanks in advance,

Andrey.

Parents
No Data
Reply
  • 54937
    Offline posted

    The visual difference between a tabgroup in the documentcontenthost and those outside the documentcontenthost is handled in the styles for the TabGroupPane and PaneTabItem. Specifically there is a style trigger in the style of the TabGroupPane that will change the Template and ItemsPanel when its PaneLocation is Document. Similarly, there is a style trigger in the style of the PaneTabItem to change the Template when the PaneLocation is Document. The templates for these two are accessed via a dynamicresource to a resourcekey - TabGroupPane.DocumentTabGroupTemplateKey and PaneTabItem.DocumentTabItemTemplateKey respectively. So you could use the default styles that we ship with the product to remove these triggers or use the other styles.

Children