Solved

How to Change Font Size in Phone 8 App

Posted on 2014-02-06
7
904 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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

734 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