Solved

How to Change Font Size in Phone 8 App

Posted on 2014-02-06
7
875 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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 gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now