RadPane custom style gets wiped out after layout change

2 posts, 1 answers
  1. Raj
    Raj avatar
    34 posts
    Member since:
    Aug 2009

    Posted 15 Jul 2010 Link to this post

    I've created a custom style for the RadPane. When I apply this style in xaml (Style="{StaticResource RadPaneStyle}") it doesn't get applied. I then tried applying the style in code after the layout is deserialized and loaded. This works. However, everytime the layout changes the style gets reset to the default. I tried re-applying the style in the RadDocking_LayoutChangeEnded event handler. This does not seem to work. 

    Any ideas? Using Silverlight 4, Telerik.Windows.Controls.Docking version: 2010.1.422.1040.


  2. Answer
    George avatar
    1332 posts

    Posted 21 Jul 2010 Link to this post

    Hello Raj,

    Thank you for contacting us.

    You could refer to additional information about Save/Load Layout here. You could add Serialization tags to each RadDocking element to prevent loosing the applied style. If this doesn't help, handle ElementLoaded event and you can apply the style in the code behind.
    If you still experience difficulties, please send us a sample project that reproduces the problem so we can investigate the issue.

    I hope this helps. I will be glad to assist you further.

    All the best,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top