MakeReservation.xaml 4.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <!--
  2. Copyright © 2011-2012 Nokia Corporation. All rights reserved.
  3. Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation.
  4. Other product and company names mentioned herein may be trademarks
  5. or trade names of their respective owners.
  6. See LICENSE.TXT for license information.
  7. -->
  8. <phone:PhoneApplicationPage
  9. x:Class="wprestaurantapp.MakeReservation"
  10. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  11. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  12. xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
  13. xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
  14. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  15. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  16. xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
  17. FontFamily="{StaticResource PhoneFontFamilyNormal}"
  18. FontSize="{StaticResource PhoneFontSizeNormal}"
  19. Foreground="{StaticResource PhoneForegroundBrush}"
  20. SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
  21. mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480"
  22. shell:SystemTray.IsVisible="False">
  23. <Grid x:Name="LayoutRoot" Background="Transparent">
  24. <Grid.RowDefinitions>
  25. <RowDefinition Height="Auto"/>
  26. <RowDefinition Height="*"/>
  27. </Grid.RowDefinitions>
  28. <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
  29. <TextBlock x:Name="ApplicationTitle" Text="{Binding Path=Restaurant.Name}" Style="{StaticResource PhoneTextNormalStyle}"/>
  30. <TextBlock x:Name="PageTitle" Text="{Binding Path=LocalizedResources.TitleReservation, Source={StaticResource LocalizedStrings}}" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
  31. </StackPanel>
  32. <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0">
  33. <StackPanel>
  34. <TextBlock Margin="12,0" Text="{Binding Path=LocalizedResources.HeaderName, Source={StaticResource LocalizedStrings}}" />
  35. <TextBox Margin="0,0,0,8" Name="NameInput" InputScope="PersonalFullName" TextChanged="validateFields"/>
  36. <Grid>
  37. <Grid.RowDefinitions>
  38. <RowDefinition Height="Auto"/>
  39. <RowDefinition Height="*"/>
  40. </Grid.RowDefinitions>
  41. <Grid.ColumnDefinitions>
  42. <ColumnDefinition Width="*"/>
  43. <ColumnDefinition Width="Auto"/>
  44. </Grid.ColumnDefinitions>
  45. <TextBlock Margin="12,0" Grid.Column="0" Grid.Row="0"
  46. Text="{Binding Path=LocalizedResources.HeaderTelephone, Source={StaticResource LocalizedStrings}}" />
  47. <TextBox Margin="0,0,0,8" Grid.Column="0" Grid.Row="1"
  48. Name="TelephoneInput" InputScope="Number" TextChanged="validateFields" />
  49. <TextBlock Margin="12,0" Grid.Column="1" Grid.Row="0"
  50. Text="{Binding Path=LocalizedResources.HeaderTableFor, Source={StaticResource LocalizedStrings}}" />
  51. <TextBox Margin="0,0,0,8"
  52. Grid.Column="1" Grid.Row="1"
  53. Name="PersonsInput" InputScope="Number" TextChanged="validateFields"/>
  54. </Grid>
  55. <TextBlock Margin="12,0" Grid.Column="0" Grid.Row="0"
  56. Text="{Binding Path=LocalizedResources.HeaderTime, Source={StaticResource LocalizedStrings}}" />
  57. <Grid>
  58. <Grid.ColumnDefinitions>
  59. <ColumnDefinition Width="*"/>
  60. <ColumnDefinition Width="*"/>
  61. </Grid.ColumnDefinitions>
  62. <!-- DatePicker and TimePicker are part of Silverlight Toolkit which does not ship as part of this
  63. example. Please see release notes for instructions how to install and use Silverlight Toolkit. -->
  64. <toolkit:DatePicker Margin="0,0,0,8" Grid.Column="0"
  65. x:Name="DatePicker" />
  66. <toolkit:TimePicker Grid.Column="1"
  67. Margin="0,0,0,16" x:Name="TimePicker" />
  68. </Grid>
  69. </StackPanel>
  70. </Grid>
  71. </Grid>
  72. </phone:PhoneApplicationPage>