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

RadPane looses its style after it's pinned

2 Answers 98 Views
Docking
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tomer
Top achievements
Rank 1
Tomer asked on 15 Feb 2012, 03:44 PM
We are trying to use custom styling for the RadPane control, using the last release of Telerik RadControls for Silverlight (Dec. 2011).
We made test project by extracting the default style of RadPane using Blend, and we saw that every time we pin the RadPane it loose its style.

Attached a simple project that colored the backgroud in a different color for each state, you can see that all the panes have colors in the beginning and after they are pinned they loose their colors.

We will appreciate a quick response,
Thanks

Link to the project:
Test Project

2 Answers, 1 is accepted

Sort by
0
Accepted
Konstantina
Telerik team
answered on 20 Feb 2012, 12:13 PM
Hello Tomer,

When pinning, unpinning, dragging, etc. the RadPane is taken out of the visual tree and put back again into another. That is why explicit styles are lost. I would suggest you to use implicit styles instead.
Please find attached your sample project with this implemented.

Greetings,
Konstantina
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Tomer
Top achievements
Rank 1
answered on 20 Feb 2012, 07:11 PM
Thanks Konstantina, the attached sample was very helpful.

Tomer
Tags
Docking
Asked by
Tomer
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Tomer
Top achievements
Rank 1
Share this question
or