Font size

3 posts, 1 answers
  1. Sebastien
    Sebastien avatar
    7 posts
    Member since:
    Oct 2010

    Posted 28 Apr 2012 Link to this post

    Hi,

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

    Thank you
    ArchieCoder
  2. Answer
    Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 01 May 2012 Link to this post

    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 >>

  3. DevCraft banner
  4. Sebastien
    Sebastien avatar
    7 posts
    Member since:
    Oct 2010

    Posted 01 May 2012 Link to this post

    Thank you Kiril
Back to Top