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
510
DockableControlPane Tab - setting the colour
posted

We have an UltraDockManager which has a handful of panes docked in it. We would like to be able to give the tabs a different appearance (when active and not active) depending on the contents of the panes - appearance to be determined when we create the panes at run time.

I have managed to successfully set the colour of the tab when it is active with the following code (Colours are for testing only, please don't judge me on them):
newPane.Settings.ActiveTabAppearance.BackColor = Color.Aqua;
newPane.Settings.ActiveTabAppearance.BackColor2 = Color.Blue;
newPane.Settings.ActiveTabAppearance.ForeColor = Color.White;

But when this pane is not active its appearance goes back to the default - in our case white on black.
I have tried setting: TabAppearance, CaptionAppearance and every other "Appearance" property on DockableControlPane.Settings but with no luck. Please can someone help me?

I am using infragistics version 9.2.

 

Parents
No Data
Reply
  • 4618
    posted

    Hi grasshopper,

    I believe that you will be able to obtain the behavior that you are describing by using the SelectedTabAppearance of the UltraDockManager. I have constructed and attached a sample, which demonstrates this approach.

    Please find the sample attached.

    If you have any questions at all, regarding this issue, please let me know.

    Sincerely,
    Chris K
    Developer Support Engineer
    Infragistics, Inc.
    www.infragistics.com/support

    ActivePanelColor79531.zip
Children