Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > TabControl > RadTab Template Copy Breaking Binding

Not answered RadTab Template Copy Breaking Binding

Feed from this thread
  • Chris avatar

    Posted on Jul 18, 2011 (permalink)

    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!

    Reply

  • Petar Mladenov Petar Mladenov admin's avatar

    Posted on Jul 21, 2011 (permalink)

    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!

    Reply

  • Deepak Shakya avatar

    Posted on Nov 16, 2011 (permalink)

    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!
    Attached files

    Reply

  • Petar Mladenov Petar Mladenov admin's avatar

    Posted on Nov 21, 2011 (permalink)

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

    Attached files

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > TabControl > RadTab Template Copy Breaking Binding
Related resources for "RadTab Template Copy Breaking Binding"

Silverlight TabControl Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]