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

ControlTemplate Focused State Changes Not Reflected

2 Answers 71 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 04 Jun 2009, 08:09 PM
I'm using Blend to edit the ControlTemplate – specifically, the OuterBorder, InnerBorder and RightBorder on the focused state. Everything shows up properly in Blend, but the changes are not reflected when the application is run. The other states work just fine, but the focused state does NOT!

Steps to reproduce the issue:

  1. In Blend, plop a RadComboBox into a page.
  2. Directly underneath the page's tab, click on [RadComboBox] >> Edit Control Parts (Template) >> Edit a Copy...
  3. Click OK.
  4. In the States panel, click on the Focused state.
  5. In the Objects and Timeline panel, expand the [Grid] to reveal and click on the OuterBorder Border.
  6. In the Properties panel, notice the OuterBorder is template-bound to the BorderBrush. I don't want to unbind it, but I do want to change the color on the focused event. First, I need to create my own color. To do that, I find the SolidColorBrush x:Key="FocusBrush" and copy the entire tag to paste a new one, changing the x:Key="MyFocusOuterBrush" and the Color="Cyan" to make it blatantly obvious.
  7. Blend has collapsed the ControlTemplate, so I have to, again, [RadComboBox] >> Edit Control Parts (Template) >> Edit Template... and click on the Focused state again.
  8. Now, in Design/XAML split view, I expand the InnerBorder and click on its BorderBrush to reveal the markup for the InnerBorder focused event.
  9. Copy the entire ObjectAnimationUsingKeyFrames tag and paste it once more inside the same Storyboard.
  10. Change the Storyboard.TargetName="OuterBorder" and the Value="{StaticResource MyFocusOuterBrush}".
  11. Now, click back and forth between the Base and Focused states to see that Blend has properly identified what should be the result of the changes made above.
  12. Test the solution to find that the focused state is not being reflected. No amount of clicking or tabbing into that RadComboBox will ever reveal Cyan.

  • The latest version of Silverlight 2 is installed, version Silverlight 2 GDR 1 (2.0.40115.0).
  • Operating System: Windows Vista Home Premium (32-bit).
  • Attempted Browsers: Internet Explorer 8.0.6001.18702, Mozilla Firefox version 3.0.10, Google Chrome 2.0.172.28.
  • Telerik version: 2009.1.413.1020.
  • Preferred programming language: C#.
  • Microsoft Visual Studio 2008 Professional Edition, Version 9.0.30729.1 SP.
  • Microsoft Expression Blend 2 Service Pack 1, Version 2.1.1760.0.

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 09 Jun 2009, 02:29 PM
Hello Alex,

We apologize for this problem.The problem is that the MouseOver state is the same as Focused state. We will do our best to find solution and provide it in the next Q2 release due at the end of June/beginning of July.

I also added 1000 Telerik points to your account for your involvement.

Regards,
Dimitrina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Richard
Top achievements
Rank 1
answered on 09 Jun 2009, 05:21 PM
I look forward to the release :)
Tags
ComboBox
Asked by
Richard
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Richard
Top achievements
Rank 1
Share this question
or