Solved

How to Change Font Size in Phone 8 App

Posted on 2014-02-06
7
917 Views
Last Modified: 2014-11-12
<phone:PhoneApplicationPage
    x:Class="PanoramaApp2.OddsChartPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape"  Orientation="LandscapeLeft"
    shell:SystemTray.IsVisible="False">

    <!--LayoutRoot contains the root grid where all other page content is placed-->
    <Grid x:Name="LayoutRoot">
        <phone:Panorama Title="my application" FontSize="18">  <!---Font size does not change-->

            <!--Panorama item one-->
            <phone:PanoramaItem Header="Item 1"
                     Height="500"
                     Width="700">

 <!---Item 1 Font size does not change-->


Please help.

Thanks,
0
Comment
Question by:Dovberman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 5

Expert Comment

by:Jeroen Timmermans
ID: 39841318
<font size="18">
<phone:Panorama Title="my application">  <!---Font size does not change-->

            <!--Panorama item one-->
            <phone:PanoramaItem Header="Item 1"
                     Height="500"
                     Width="700">
0
 

Author Comment

by:Dovberman
ID: 39842526
I am not sure what you mean.

This is not working:

<phone:Panorama
            x:Name="panCharts" Title="Panarama Demo" FontSize="18">
 
            <!--Panorama item one-->
            <phone:PanoramaItem Header="Odds Charts"
                Width="450" FontSize="18" >
                <!--Single line list with text wrapping-->
                <ListBox

What do you recommend?

Thanks,
0
 
LVL 5

Expert Comment

by:Jeroen Timmermans
ID: 39842583
Place a font tag outside the panorama tag.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:Dovberman
ID: 39843277
<phone:PhoneApplicationPage
    x:Class="PanoramaApp2.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
   
    xmlns:system="clr-namespace:System;assembly=mscorlib"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent"
        >

        <!-- LOCALIZATION NOTE:
            To localize the displayed strings copy their values to appropriately named
            keys in the app's neutral language resource file (AppResources.resx) then
            replace the hard-coded text value between the attributes' quotation marks
            with the binding clause whose path points to that string name.

            For example:

                Text="{Binding Path=LocalizedResources.ApplicationTitle, Source={StaticResource LocalizedStrings}}"

            This binding points to the template's string resource named "ApplicationTitle".

            Adding supported languages in the Project Properties tab will create a
            new resx file per language that can carry the translated values of your
            UI strings. The binding in these examples will cause the value of the
            attributes to be drawn from the .resx file that matches the
            CurrentUICulture of the app at run time.
         -->
     
<FontSize=18>  Not allowed.  ???


        <!--Panorama control-->
        <phone:Panorama x:Name="panCharts" Title="Panarama Demo" FontSize="18">
 
            <!--Panorama item one-->
            <phone:PanoramaItem Header="Odds Charts"
                Width="450" FontSize="18" >
                <!--Single line list with text wrapping-->
                <ListBox
                    FontSize="{StaticResource PhoneFontSizeSmall}"
                    Name="lstCharts"
                    Margin= "4,0,0,170"
               
                    Tap="ListBox_SelectionChanged"
             >
                    <system:String>Facing Multiple Larger Pairs when Holding a Pair.</system:String>
                    <system:String>Facing a Larger Pair when Holding a Pair.</system:String>
                    <system:String>Odds of Being Dealt Certain Hole Cards.</system:String>
                    <system:String>Odds of Making a Hand.</system:String>
                    <system:String>Over Card Hitting when Holding a Pair</system:String>
                    <system:String>Two Hands versus Each Other - Preflop</system:String>
                    <system:String>Odds Against Flopping</system:String>
                    <system:String>Odds Facing an Ace with a Larger Kicker</system:String>
                    <system:String>Board Dealt Consisting of...</system:String>
                 </ListBox>
            </phone:PanoramaItem>
 
         </phone:Panorama>


        <!--Panorama item two-->
   

        <!--Uncomment to see an alignment grid to help ensure your controls are
            aligned on common boundaries.  The image has a top margin of -32px to
            account for the System Tray. Set this to 0 (or remove the margin altogether)
            if the System Tray is hidden.

            Before shipping remove this XAML and the image itself.-->
        <!--<Image Source="/Assets/AlignmentGrid.png" VerticalAlignment="Top" Height="800" Width="480" Margin="0" Grid.Row="0" Grid.RowSpan="2" IsHitTestVisible="False" />-->

    </Grid>
</phone:PhoneApplicationPage>
0
 
LVL 5

Accepted Solution

by:
Jeroen Timmermans earned 300 total points
ID: 39843765
Like this:
<Font Size="18">
 <!--Panorama control-->
        <phone:Panorama x:Name="panCharts" Title="Panarama Demo">
0
 

Author Comment

by:Dovberman
ID: 39845219
Error: The type Font was not found. Need assembly reference.

Thanks any way.
0
 

Author Closing Comment

by:Dovberman
ID: 39845220
Does not work.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question