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

unable to change RadPaneGroup FontSize with metro theme

1 Answer 49 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Grégory Cornet
Top achievements
Rank 2
Grégory Cornet asked on 28 Aug 2012, 03:07 PM
Hi,

I have a problem to change th font size of the radpanegroup header when using the metro them.  I have already tried this code :

First :
<telerik:RadPaneGroup FontSize="26" >
<telerik:RadPane x:Name="_outputControl" CanUserClose="True" Header="Output" >
   <ContentControl Grid.Row="0" regions:RegionManager.RegionName="OutputRegion" />                     
</telerik:RadPane>                 
</telerik:RadPaneGroup>


Second :
<Window.Resources>         
<Style x:key="headerStyle" TargetType="telerik:RadPaneGroup" BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:MetroTheme, ElementType=telerik:RadPaneGroup}}">             
<Setter Property="FontSize" Value="26"/>         
</Style>    
</Window.Resources>
<telerik:RadPaneGroup  Style="{StaticResource headerStyle}">                     
<telerik:RadPane x:Name="_outputControl" CanUserClose="True" Header="Output" >                         
<ContentControl Grid.Row="0" regions:RegionManager.RegionName="OutputRegion" />                     
</telerik:RadPane>                 
</telerik:RadPaneGroup>
Nothing work, Is there a way to change the font size?

Regards.

1 Answer, 1 is accepted

Sort by
0
Masha
Telerik team
answered on 30 Aug 2012, 03:07 PM
Hello Christophe,

To change header FontSize you should modify PaneHeaderControlTemplate template of Docking control.
Inside it find ContentControl x:Name="TitleElement" and edit FontSize of your choice.

Hope this helps.

All the best,
Maria
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
General Discussions
Asked by
Grégory Cornet
Top achievements
Rank 2
Answers by
Masha
Telerik team
Share this question
or