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

Font size

2 Answers 44 Views
HubTile
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sébastien
Top achievements
Rank 2
Iron
Iron
Iron
Sébastien asked on 28 Apr 2012, 04:45 PM
Hi,

Is there a way to change the font size of the big text on the HubTile?

Thank you
ArchieCoder

2 Answers, 1 is accepted

Sort by
0
Accepted
Kiril Stanoev
Telerik team
answered on 01 May 2012, 02:58 PM
Hello Segastien,

Thank you for contacting us. Yes, you can change the size of text within a RadHubTile. The example bellow with set a global font size, which means that all text will have a size of 32.

<telerikPrimitives:RadHubTile Title="Title" ImageSource="Desert.jpg" Count="1" Message="Some message"
        Width="200" Height="200" FontSize="32">
    <telerikPrimitives:RadHubTile.BackContent>
        <Border Background="{StaticResource PhoneAccentBrush}">
            <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="back content" />
        </Border>
    </telerikPrimitives:RadHubTile.BackContent>
</telerikPrimitives:RadHubTile>
 
If you want to set a font size just to a specific element, for example the TextBlock that says "back content", you can do the following:

<telerikPrimitives:RadHubTile Title="Title" ImageSource="Desert.jpg" Count="1" Message="Some message"
        Width="200" Height="200">
    <telerikPrimitives:RadHubTile.BackContent>
        <Border Background="{StaticResource PhoneAccentBrush}">
            <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="back content" FontSize="32" />
        </Border>
    </telerikPrimitives:RadHubTile.BackContent>
</telerikPrimitives:RadHubTile>

More on RadHubTile and its derivatives, you can find here: 
http://www.telerik.com/help/windows-phone/radhubtile-overview.html

In addition, you can take a look at the link bellow as it gives more information on Silverlight/WP property precedence: http://msdn.microsoft.com/en-us/library/cc265148(v=vs.95).aspx 

Give it a try and let me know if it helps. I'd be glad to answer any further questions you might have.

Greetings,
Kiril Stanoev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Sébastien
Top achievements
Rank 2
Iron
Iron
Iron
answered on 02 May 2012, 03:19 AM
Thank you Kiril
Tags
HubTile
Asked by
Sébastien
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Kiril Stanoev
Telerik team
Sébastien
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or