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

RadPane custom style gets wiped out after layout change

1 Answer 47 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Raj
Top achievements
Rank 1
Raj asked on 15 Jul 2010, 11:23 PM
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.

Thanks,
Raj

1 Answer, 1 is accepted

Sort by
0
Accepted
George
Telerik team
answered on 21 Jul 2010, 12:01 PM
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,
George
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
Tags
Docking
Asked by
Raj
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or