Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to Change Font Size in Phone 8 App

Posted on 2014-02-06
7
Medium Priority
?
930 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
Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

 

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

715 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