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

Set Margin between Pane's header

5 Answers 151 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Akram
Top achievements
Rank 1
Akram asked on 15 Jun 2013, 10:54 AM
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

5 Answers, 1 is accepted

Sort by
0
Masha
Telerik team
answered on 20 Jun 2013, 07:38 AM
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.

0
Akram
Top achievements
Rank 1
answered on 20 Jun 2013, 07:34 PM
Hi
I don't find this property inside RadDocking, please let me know where i can find it?

Thanks,
Akram
0
Masha
Telerik team
answered on 25 Jun 2013, 06:55 AM
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.

0
Akram
Top achievements
Rank 1
answered on 25 Jun 2013, 11:07 AM
Hi
Thanks for the example, but i was asking about setting margin between pane headers. (Not Titles)
Please see the attached image 
0
Masha
Telerik team
answered on 26 Jun 2013, 06:07 AM
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 >>
Tags
Docking
Asked by
Akram
Top achievements
Rank 1
Answers by
Masha
Telerik team
Akram
Top achievements
Rank 1
Share this question
or