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
100
How to Theme a statusbar as office 2007 black?
posted

Hi,

   I have a statusbar that is in a usercontrol and I would like to theme it as Office 2007 black, just like how it is in the igRibbon:RibbonWindowContentHost.StatusBar, when the ribbon is themed to Office2k7Black, can anyone help?

Thanks.

Parents
No Data
Reply
  • 34810
    Verified Answer
    Offline posted

    Hello Timothy,

    In order to theme the StatusBar in the same way as the RibbonWindowContentHost.StatusBar, I would recommend first including the default ribbon StatusBar default style. This can be found in the RibbonGeneric.xaml file commonly found at the following directory:

    C:\Program Files (x86)\Infragistics\<your version here>\WPF\DefaultStyles\Ribbon

    This default style uses a bunch of dynamic resource RibbonBrushKeys, which can be overridden by including the corresponding ribbon brush dictionaries. I would recommend that you include the RibbonOffice2k7Brushes__Shared and the RibbonOffice2k7Brushes_Black dictionaries from the above directory and merge the Brushes_Black dictionary with the dictionary that you placed the StatusBar style in. Then, remove the x:Key from the StatusBar style and merge the dictionary, or provide your own key and apply the style to the Style property of the StatusBar.

    I am attaching a sample project that demonstrates this. I hope it helps you.

    Please let me know if you have any other questions or concerns on this matter.

    StatusBarOffice2k7Theme.zip

Children