RadTab Template Copy Breaking Binding

4 posts, 0 answers
  1. Chris
    Chris avatar
    19 posts
    Member since:
    Jul 2011

    Posted 18 Jul 2011 Link to this post

    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!
  2. Petar Mladenov
    Petar Mladenov avatar
    3140 posts

    Posted 21 Jul 2011 Link to this post

    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!

  3. Deepak Shakya
    Deepak Shakya avatar
    119 posts
    Member since:
    Aug 2007

    Posted 16 Nov 2011 Link to this post

    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?

  4. Petar Mladenov
    Petar Mladenov avatar
    3140 posts

    Posted 21 Nov 2011 Link to this post

    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 >>

Back to Top