Hi Darren,
This is a known issue in the ribbon implementation. Currently you can change the theme of the control in run-time from outside the control. Basically if you move the
RadRibbonSplitButton with the Themes outside of the
RadRibbonBar definition, the theme of the control will be properly changed.
<
telerik:RadRibbonBar
ApplicationButtonVisibility
=
"Collapsed"
MinimizeButtonVisibility
=
"Visible"
telerik:KeyTipService.IsKeyTipsEnabled
=
"True"
telerik:StyleManager.Theme
=
"{Binding CurrentTheme}"
TitleBarVisibility
=
"Collapsed"
>
<
telerik:RadRibbonTab
Header
=
"Home"
>
<
telerik:RadRibbonGroup
Header
=
"Themes"
/>
</
telerik:RadRibbonTab
>
</
telerik:RadRibbonBar
>
<
telerik:RadRibbonSplitButton
Grid.Row
=
"1"
VerticalAlignment
=
"Top"
LargeImage
=
"/Images/displayoptions.png"
Size
=
"Large"
telerik:ScreenTip.Title
=
"Change Theme"
Text
=
"Change"
>
<
telerik:RadRibbonSplitButton.DropDownContent
>
<
telerik:RadMenu
BorderThickness
=
"0"
Orientation
=
"Vertical"
>
<
telerik:RadMenuItem
Command
=
"{Binding ToggleThemeCommand}"
CommandParameter
=
"Office_Black"
Header
=
" Office_Black"
/>
<
telerik:RadMenuItem
Command
=
"{Binding ToggleThemeCommand}"
CommandParameter
=
"Office_Blue"
Header
=
"Office_Blue"
/>
<
telerik:RadMenuItem
Command
=
"{Binding ToggleThemeCommand}"
CommandParameter
=
"Office_Silver"
Header
=
"Office_Silver"
/>
<
telerik:RadMenuItem
Command
=
"{Binding ToggleThemeCommand}"
CommandParameter
=
"Expression_Dark"
Header
=
"Expression_Dark"
/>
</
telerik:RadMenu
>
</
telerik:RadRibbonSplitButton.DropDownContent
>
</
telerik:RadRibbonSplitButton
>
Also, due to the many known limitations of the current implementation of the
RadRibbonBar control, with the
Q2 release of the RadControls for Silverlight and WPF we announced the new
RadRibbonView control. It keeps the
RibbonBar API but it significantly improves the
design-time and
databinding support of the control, as well as its
functionality. In
this blog post you can find more info about the differences between the two controls and a list of improvements that the
RadRibbonView control brings to the "ribbon" UI.
Unfortunately the run-time theme change issue is not resolved in the
RibbonView control as well, but it is logged in our
PITS and we will do our best to fix it as soon as possible.
Moreover, please keep in mind that the
RadContextMenu control is designed to behave as a
ContextMenu that is opened on an element after a right-click action. And when it is used as a
DropDownContent of a
Button it might not behave properly. This is why we recommend using a
RadMenu or a
ListBox control to define a list of options inside the
RadRibbonSplit/DropDownButtons.
Greetings,
Tina Stancheva
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>