Solved

How to Change Font Size in Phone 8 App

Posted on 2014-02-06
7
890 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
  • 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help with error when uploading excel file 3 29
tutorial for ebay api 3 35
Store results in vb.net 3 22
"Video DataSource is Offline or not responding"  - why? 1 34
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

831 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