It is unfortunate the you could not open the attached project. The error you are receiving is due to the missing template binding property. The snipped you have copied is normally in the ControlTemplate
of the RadRibbonGroup
. I will provide you with a more detailed explanation of the method for achieving the desired result.
As you have seen and are using - some of the more general customization which can be made to the RadRibbonView
can be made via inline properties of the whole control (like in the case of ContentHeight
). However, for more specific and concrete changes, you need to make modifications to the ControlTemplate
in the Style
of the control or its components (groups, tabs, etc.). The ControlTemplate
for each control holds VisualStates
for animations and inner visual elements that are used in the control. One of those elements is the Border
that holds the bound Image for each RadRibbonGroup
1. You need to fill the desired contents of the RadRibbonView
, buttons etc.
2. In the VS Designer
(or Blend for VisualStuido
), you need to extract the control template of the RadRibbonGroup
. The approach to that is explained in the Editing Control Templates
3. Once you have the ControlTemplate
for the RadRibbonGroup
, you can make modifications to it - in your case change the Background
of the Border x:Name="Image"
and the Width
of the Grid
4. The changes should apply to a specific RadRibbonGroup
if you have specified a x:Key
to the Style
and refer it in the group. Or if you remove the x:Key
from the Style
, it will apply to all the RadRibbonGroups
in you application.
In the previous attached project you can find a style modified in the MainWindow.xaml
. I am attaching as well a file with just the Style
, that you need to copy entirely and paste in the Window.Resources
of your application.
I hope this helps.
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer
and share your thoughts.