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

RadTab Template Copy Breaking Binding

3 Answers 69 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chris
Top achievements
Rank 1
Chris asked on 18 Jul 2011, 10:53 PM
I love all the telerik controls, but have ran into what I would think would be a simple issue to remedy?

I've styled the radtabcontrol to suffice but have a border in the template I need to make transparent. The problem occurs when I create a copy of the template it immediately breaks the bindings like Background_Normal & Background_InnerNormal etc. I know exactly how to fix the border for my template, but how do I re-reference all the static bindings so it builds again? They don't appear to carry over when a copy of the template is made?

Thank you for any insight that may be shared!

3 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 21 Jul 2011, 07:12 AM
Hi Chris,

 You have to copy the necessary Brushes and use it in the XAML file where the new template is located. Could you please elaborate more on your scenario if this does not fit in your scenario? You can also send us your code so that we could advise you better. 

Best wishes,
Petar Mladenov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Deepak Shakya
Top achievements
Rank 1
answered on 16 Nov 2011, 06:18 AM
Hi Chris/Petar,

I just ran into similar/same problem.
  • I added a RadTabControl
  • Right-click to Edit a copy of the template
  • Saved it in a ResourceDictionary in a DLL that the Silverlight project references.
  • The DLL has a Generic.xaml file which merges all resource dictionaries in DLL project.
  • I have been doing the same when styling other RadControls with no problem.
  • Now when I run the project, it complains that it can't find the StaticResources that has been used throughout the template as these resources does not get copied when creating a copy of the template. (WHY?)
  • For example, for a TargetType of 'ToggleButton" in VIsualStates,  - ControlOuterBorder_MouseOver is not found. Example attached.

As a result I can't style the TabControl. 

Any soluions?

Cheers!
0
Petar Mladenov
Telerik team
answered on 21 Nov 2011, 08:50 AM
Hello Deepak Shakya,

 We were unable to reproduce such issue in the RadTabControl from Q2 or Q3 2011. The Style of the RadTabItem is successfully extracted from Blend. You can examine this in the attached solution. Please note that if once you have extracted a style, then made some changes to it, then extract the same style again, it may not be completed. Please let us know if this helped you or not. 

All the best,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
TabControl
Asked by
Chris
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Deepak Shakya
Top achievements
Rank 1
Share this question
or