We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

RibbonBar Header foreground color

I am currently using the syncfushion ribbon inside a syncfushion ribbon window with skin storage of "Office2013". How can I bind the foreground color of the RibbonBar Header to a View Model property?


Thank you

1 Reply

BK Bharadhi K Syncfusion Team March 31, 2015 12:13 PM UTC

Hi Constantin Patak,

Thank you for using Syncfusion products.

Query: How can I bind the foreground color of the RibbonBar Header to a View Model property?

We can bind the Foreground color of the RibbonBar Header by using the Template of the RibbonBar and binding the Brush value to the Header TextBlock. We have prepared a sample to demonstrate the same. In the sample, we have used the template of the RibbonBar "Office2013RibbonBarStyle1" and to the Foreground property of the Header, we have set binding to the "RibbonBarBrush" property defined in the ViewModel.

Please find the sample in the following link.

Sample: Ribbon_133122.zip

Please let us know if our sample fufills your requirements and if you require further assistance on this.

Regards,
Bharadhi K


Loader.
Live Chat Icon For mobile
Up arrow icon