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

RadWindow - Header Font family in Template

2 Answers 93 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mateusz
Top achievements
Rank 1
Mateusz asked on 23 Nov 2012, 02:23 PM
Hello, I try to manage with some problem, but I didn't find solution so far. Is it possible to set FontFamily of Header in RadWindow Template? ContentPresenter of the header doesn't allow to set such parameter.

 <ContentPresenter x:Name="HeaderContent"  ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center"/>

And additional thing: could you send me default radwindow template of windows8 theme? Expression Blend generates only OfficeBlackTheme.

Thank you in advance,

Mateusz

2 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 28 Nov 2012, 12:40 PM
Hi Mateusz,

You could find all the templates in your installation folder (usually it is C://Program FIles/Telerik/RadControls for Silverlight [version]) in Themes and Themes.Implicit folders. Themes folder contains the standard styles for all themes while Themes.Implicit contains Implicit Styles friendly XAML.  You can check here for more details on implicit styles.

As to the question - you could replace the ContentPresenter with ContentControl and set the needed Font properties to it:

<ContentControl x:Name="HeaderContent"
                FontFamily="Segoe UI Light" FontSize="16"
                Grid.Column="1" HorizontalAlignment="Stretch"
                VerticalAlignment="Center"
                Content="{TemplateBinding Header}"
                ContentTemplate="{TemplateBinding HeaderTemplate}"></ContentControl>

Actually this is the approach we're using in Windows8 theme.  The other option is to set HeaderTemplate property of the Window.

Hope this helps.

Kind regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Mateusz
Top achievements
Rank 1
answered on 29 Nov 2012, 10:38 AM
Hi Yana!
That's all I need. Thanks a lot!

Regards,
Mateusz
Tags
Window
Asked by
Mateusz
Top achievements
Rank 1
Answers by
Yana
Telerik team
Mateusz
Top achievements
Rank 1
Share this question
or