techniks

Black Ribbon

How to give a black theme to the Ribbon.


    I've been asked several times for a black theme for the Ribbon Project.

    Although this was already planned for the next release, I decided to give the hint.

    In order to get a black themed ribbon, you should this:

    After adding the files, apply the following code on form's initialization:

    
    
    ///
    /// Form's constructor
    ///
    public Form1()
    {
        InitializeComponent();
    
        //Apply black renderer to ribbon1
        (ribbon1.Renderer as RibbonProfessionalRenderer).ColorTable = 
              new RibbonProfessionalRendererColorTableBlack();
    }
    

    And that's it.

    Enjoy!


    Bookmark and Share
     

    Post a Comment

    Your name: Your e-mail:
    Comment:
    Are you human?