PageRenderTime 232ms CodeModel.GetById 182ms RepoModel.GetById 2ms 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. Loaded="PhoneApplicationPage_Loaded">
  15. <!--LayoutRoot is the root grid where all page content is placed-->
  16. <Grid x:Name="LayoutRoot" Background="Transparent">
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="Auto"/>
  19. <RowDefinition Height="*"/>
  20. </Grid.RowDefinitions>
  21. <!--TitlePanel contains the name of the application and page title-->
  22. <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
  23. <TextBlock x:Name="ApplicationTitle" Text="HOW MUCH IS THIS MEETING COSTING US?" Style="{StaticResource PhoneTextNormalStyle}"/>
  24. <TextBlock x:Name="PageTitle" Text="total cost" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
  25. </StackPanel>
  26. <!--ContentPanel - place additional content here-->
  27. <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,20,12,0">
  28. <TextBlock
  29. Name="txtCost"
  30. Foreground="{StaticResource PhoneAccentBrush}"
  31. Style="{StaticResource PhoneTextTitle1Style}"
  32. VerticalAlignment="Top"
  33. HorizontalAlignment="Right" TextWrapping="Wrap"
  34. FontFamily="Lucida Sans Unicode">$0.00</TextBlock>
  35. </Grid>
  36. </Grid>
  37. <!--Sample code showing usage of ApplicationBar-->
  38. <phone:PhoneApplicationPage.ApplicationBar>
  39. <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
  40. <shell:ApplicationBarIconButton
  41. IconUri="/Media/appbar.repeat.png"
  42. Text="New Meeting"
  43. Click="home_Click"/>
  44. </shell:ApplicationBar>
  45. </phone:PhoneApplicationPage.ApplicationBar>
  46. </phone:PhoneApplicationPage>