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
105
Fun with tab colors
posted

 

We are using a XamDockManager with the blue/silver/black office themes.  By default, I believe inactive tabs don't have a border/background and are just transparent.  But we wanted to give them the look of tabs again so I've been assigning our own colors to some of the keys defined in the DockManagerBrushes to get the above look.

My problem is that for some reason it seems the line underneath the tabs only extends under the left most tab.  In the image above, the top version is what I'm seeing.  The bottom version is what I think it should be.  But near as I can tell, there is something weird going on where the left most tab is actually rendered 1 pixel up from the rest of the tabs.  And so even though the line really is there, the middle tab is overlapping it which is what makes it so it can't be seen.

Anyone know what's going wrong or how I could work around this?

  • 54937
    Offline posted

    This looks like a problem in the default template where the tab item may have a negative bottom margin which is causing it to render over the line. I've submitted an issue for this.

  • 105
    posted

    I've been playing around with the template and style for PaneTabeItem found in DockManagerGeneric.xaml, but as far as I can tell, it seems like that is not the template used bu default in the office blue theme.  Is that the case?

    What's weird is I see a different ControlTemplate in the black theme, but not blue or silver.