Set Margin between Pane's header

6 posts, 0 answers
  1. Akram
    Akram avatar
    45 posts
    Member since:
    Dec 2012

    Posted 15 Jun 2013 Link to this post

    Hi Telerik support team,

    I am trying to set margin between headers in RadDocking control, I tried to create a style that target PaneHeader but nothing happened.
    I also, tried to override the HeaderTemplate of RadPane but also not worked.

    Please show me the easiest way to do that.

    Thanks,
    Akram

  2. Masha
    Admin
    Masha avatar
    355 posts

    Posted 20 Jun 2013 Link to this post

    Hi Akram,

    In order to customize the header margins you should modify the PaneHeaderStyle of RadDocking control. It would be great if you give it a try and let us know if everything work as expecting.

    I hope it helps.

    Regards,
    Masha
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Akram
    Akram avatar
    45 posts
    Member since:
    Dec 2012

    Posted 20 Jun 2013 Link to this post

    Hi
    I don't find this property inside RadDocking, please let me know where i can find it?

    Thanks,
    Akram
  5. Masha
    Admin
    Masha avatar
    355 posts

    Posted 25 Jun 2013 Link to this post

    Hi Akram,

    I've demonstrated approach in the attached project. PaneHeaderStyle is a separate style which is responsible for PaneHeaders. You can take style and resources for RadDocking theme from the RadControls installation folder on your machine. Inside that folder you will find the ThemesImplicit folder which contains all themes resources.

    I hope it helps.

    Regards,
    Masha
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Akram
    Akram avatar
    45 posts
    Member since:
    Dec 2012

    Posted 25 Jun 2013 Link to this post

    Hi
    Thanks for the example, but i was asking about setting margin between pane headers. (Not Titles)
    Please see the attached image 
  7. Masha
    Admin
    Masha avatar
    355 posts

    Posted 26 Jun 2013 Link to this post

    Hello Arakm,

    In that case you need to modify the RadPaneStyle. Simply replace the style of PaneHeader in my previous example with this:

    <Style  TargetType="telerik:RadPane" BasedOn="{StaticResource RadPaneStyle}">
       <Setter Property="Margin" Value="2 0 0 0" />
    </Style>

    I hope this helps.


    Regards,
    Masha
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top
UI for WPF is Visual Studio 2017 Ready