This is a migrated thread and some comments may be shown as answers.

RadComboBox Background

1 Answer 35 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Elena
Top achievements
Rank 1
Elena asked on 10 May 2013, 02:40 PM
Hi,
We use RadComboBox in our Silverlight applocation. Perfect for large itemsSouce!!!
But I try to change default value för  ButtonChrome background to lightblue 

<LinearGradientBrush x:Key="ControlBackground_MouseOver" StartPoint="0.5,0" EndPoint="0.5,1">

 

 

 

<GradientStop Color="#FFBDE4F9" Offset="0" />

 

 

<GradientStop Color="#FFB4E0F7" Offset="0.5" />

 

 

<GradientStop Color="#FF98D1EF" Offset="0.5" />

 

 

<GradientStop Color="#FF81C3E5" Offset="1" />

 

 

</LinearGradientBrush>

 

in
-------
<vsm:VisualState x:Name="MouseOver">

<Storyboard>

 <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonChrome"   Storyboard.TargetProperty="RenderMouseOver">

 <DiscreteObjectKeyFrame KeyTime="0:0:0">

 <DiscreteObjectKeyFrame.Value>

 <sys:Boolean>True</sys:Boolean>

 </DiscreteObjectKeyFrame.Value>

 </DiscreteObjectKeyFrame>

 </ObjectAnimationUsingKeyFrames>

 <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonChrome" Storyboard.TargetProperty="Background">

 <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_MouseOver}" />

 </ObjectAnimationUsingKeyFrames>

 <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonChrome" Storyboard.TargetProperty="Foreground">

 <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_MouseOver}" />

 </ObjectAnimationUsingKeyFrames>

 <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Foreground">

 <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_MouseOver}" />

 </ObjectAnimationUsingKeyFrames>

 <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Background">

 <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_MouseOver}" />

 </ObjectAnimationUsingKeyFrames>

  </Storyboard>

 </vsm:VisualState>

 <vsm:VisualState x:Name="DropDownOpen">

 <Storyboard>

 <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Foreground">

 <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Pressed}" />

 </ObjectAnimationUsingKeyFrames>

 <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Background">

 <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Pressed}" />

 </ObjectAnimationUsingKeyFrames>

 <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonChrome" Storyboard.TargetProperty="Background">

 <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_MouseOver}" />

 </ObjectAnimationUsingKeyFrames>

 </Storyboard>

 </vsm:VisualState>

-----

 but unsuccessfully :(
Cannot change theme in Blend, get error
Would be very grateful for any suggestion.

Best regards
Elena

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 15 May 2013, 02:52 PM
Hi Elena,

For your convenience I extracted and edited the default Style of the RadComboBoxItem in the attached project. Please take a look at it and let me know if it works for you. Please note that in the attached project I changed only the Background property of the Border control called "HighlightVisual" (which is visualized when you hover any RadComboBoxItem).

I hope this will work for you.

All the best,
Pavel R. Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ToolBar
Asked by
Elena
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or