Styles for Radpane not applying

6 posts, 0 answers
  1. Josh
    Josh avatar
    8 posts
    Member since:
    Nov 2012

    Posted 14 Feb 2013 Link to this post

    Hi,

    I've been having some trouble with RadDocking as a whole when trying to apply styles.  I have used Blend to Edit a Copy of each template for RadDocking, RadPaneGroup, and RadPane.  I've literally changed every background color and border to a Blue color, which works...but no matter what the RadPane Content Won't change!  If i set the RadPane to IsPinned, the style works, but if I set IsPinned = false, the default style is there when I click or hover over the Pane's Tab to see it.  What am i missing?
  2. Masha
    Admin
    Masha avatar
    355 posts

    Posted 18 Feb 2013 Link to this post

    Hello Josh,

    In order to change the look of  RadPane when it is set to false you should modify brushes inside VisualStates named: NormalVertical, HighlightedVertical, SelectedVertical and SelectedHighlightedVertical.  In the attached project I demonstrated the approach.

    I hope this will be helpful.

    Greetings,
    Maria
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Josh
    Josh avatar
    8 posts
    Member since:
    Nov 2012

    Posted 20 Feb 2013 Link to this post

    I have already accomplished what you've just replied with.  I said, the style for which the CONTENT uses will not stick.  For example, when I hover over the Radpane (the part that you styled in the example with a purple background), the content that slides out to the right, which has the upside down triangle, the pin/unpin button, and the "close" button, does not style.  I am trying to apply styles to that whole thing, header, header text, everything...I hope I've explained myself better.  Thanks.
  5. Masha
    Admin
    Masha avatar
    355 posts

    Posted 21 Feb 2013 Link to this post

    Hello Josh,

    Please, excuse me for the misunderstanding. What you need to do is to modify PaneHeaderStyle in order changes to be applied inside HeaderContent of RadPane. The style has been missing so I've added it to the sample project. Expression Blend didn't generate it, that's why you could not find it.

    You could find all resources of the RadDocking control inside RadControls installation folder on your machine. Find Themes folder which contains all themes resources and select Telerik.Windows.Controls.Docking.xaml file of the desired theme.

    Please let me know if you need any further help.

    Kind regards,
    Maria
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Josh
    Josh avatar
    8 posts
    Member since:
    Nov 2012

    Posted 21 Feb 2013 Link to this post

    Thankyou, that did work...however there is still one more issue...the content background is still white.  I have a Radpane with a datagrid inside of it, that has some margin and some padding, so I should see the background, which is white.  How do I change the content background also?
  7. Masha
    Admin
    Masha avatar
    355 posts

    Posted 26 Feb 2013 Link to this post

    Hi Josh,

    In order to change the background color of the selected RadPane, you need to modify PaneTabBackground_Selected brush and PaneTabBackground_SelectedHighlighted Brushes.

    I hope this will be helpful.

    Greetings,
    Maria
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
DevCraft banner