RadWindow - Header Font family in Template

3 posts, 0 answers
  1. Mateusz
    Mateusz avatar
    2 posts
    Member since:
    Oct 2012

    Posted 23 Nov 2012 Link to this post

    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,

  2. Yana
    Yana avatar
    4548 posts

    Posted 28 Nov 2012 Link to this post

    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"
                    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,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Mateusz
    Mateusz avatar
    2 posts
    Member since:
    Oct 2012

    Posted 29 Nov 2012 Link to this post

    Hi Yana!
    That's all I need. Thanks a lot!

Back to Top