RadPane looses its style after it's pinned

3 posts, 1 answers
  1. Tomer
    Tomer avatar
    2 posts
    Member since:
    Jun 2011

    Posted 15 Feb 2012 Link to this post

    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. Answer
    Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 20 Feb 2012 Link to this post

    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 >>
  3. DevCraft banner
  4. Tomer
    Tomer avatar
    2 posts
    Member since:
    Jun 2011

    Posted 20 Feb 2012 Link to this post

    Thanks Konstantina, the attached sample was very helpful.

    Tomer
Back to Top