PageRenderTime 31ms CodeModel.GetById 29ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/Coding4Fun.MeetingBurn/Calculator.xaml

#
XAML | 53 lines | 42 code | 7 blank | 4 comment | 0 complexity | cc3aa1a7ff3fd79ed919d7653f5d03d1 MD5 | raw file
 1<phone:PhoneApplicationPage 
 2    x:Class="Coding4Fun.MeetingBurn.Calculator"
 3    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 4    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 5    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
 6    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
 7    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
 8    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 9    FontFamily="{StaticResource PhoneFontFamilyNormal}"
10    FontSize="{StaticResource PhoneFontSizeNormal}"
11    Foreground="{StaticResource PhoneForegroundBrush}"
12    SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
13    mc:Ignorable="d" d:DesignHeight="728" d:DesignWidth="480"
14	
15	Loaded="PhoneApplicationPage_Loaded">
16
17    <!--LayoutRoot is the root grid where all page content is placed-->
18    <Grid x:Name="LayoutRoot" Background="Transparent">
19        <Grid.RowDefinitions>
20            <RowDefinition Height="Auto"/>
21            <RowDefinition Height="*"/>
22        </Grid.RowDefinitions>
23
24        <!--TitlePanel contains the name of the application and page title-->
25        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
26			<TextBlock x:Name="ApplicationTitle" Text="HOW MUCH IS THIS MEETING COSTING US?" Style="{StaticResource PhoneTextNormalStyle}"/>
27            <TextBlock x:Name="PageTitle" Text="total cost" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
28        </StackPanel>
29
30        <!--ContentPanel - place additional content here-->
31        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,20,12,0">
32			<TextBlock 
33				Name="txtCost"
34				Foreground="{StaticResource PhoneAccentBrush}"
35				Style="{StaticResource PhoneTextTitle1Style}"
36				VerticalAlignment="Top"
37				HorizontalAlignment="Right" TextWrapping="Wrap" 
38				FontFamily="Lucida Sans Unicode">$0.00</TextBlock>
39		</Grid>
40    </Grid>
41 
42    <!--Sample code showing usage of ApplicationBar-->
43	<phone:PhoneApplicationPage.ApplicationBar>
44		<shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
45			<shell:ApplicationBarIconButton 
46				IconUri="/Media/appbar.repeat.png" 
47				Text="New Meeting"
48				Click="home_Click"/>
49			
50		</shell:ApplicationBar>
51	</phone:PhoneApplicationPage.ApplicationBar>
52
53</phone:PhoneApplicationPage>