Divelements Community
Customer discussion of all Divelements products

Setting RibbonManager Color Scheme into Dynamicaly loaded Tab

Latest post 03-20-2008 15:50 by Andy Gleed. 1 replies.
  • 03-20-2008 14:28

    Stick out tongue [:P] Setting RibbonManager Color Scheme into Dynamicaly loaded Tab

    Hello

    I have an application using the latest evaluation version of SandRibbon for Windows Forms.

    I also have a usercontrol with a ribbon that has one tab on it. The tabs Modifier property is Public.

    At a certain point, my application loads the usercontrol and i programaticaly add the controls tab into my main forms ribbon:

    // add our storage ribbon tab
    ribbonMain.Tabs.Add((RibbonTab)storageView.tabDevices);

    // give focus to the storage context
    ribbonMain.SetEditingContext("STORAGE");

    The tab now appers ok (contextualy) but if my main Ribbon has a black color scheme, i cant get the new tab to also be black.

    I have tried something like this, but the tab remains the default blue:
    storageView.RibbonManager.Renderer.ColorScheme = ribbonManager.Renderer.ColorScheme;

    Any help would be appreciated.
  • 03-20-2008 15:50 In reply to

    Re: Setting RibbonManager Color Scheme into Dynamicaly loaded Tab

    Not to worry, the structure of my app was completely wrong, so have got around it another way.

    would be useful to know how to do this though :)
Page 1 of 1 (2 items) | RSS
Copyright © 2008 Divelements Limited
Powered by Community Server (Commercial Edition), by Telligent Systems