MainPage.xaml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <phone:PhoneApplicationPage
  2. x:Class="Renci.SshNet.Tests.MainPage"
  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. mc:Ignorable="d"
  10. FontFamily="{StaticResource PhoneFontFamilyNormal}"
  11. FontSize="{StaticResource PhoneFontSizeNormal}"
  12. Foreground="{StaticResource PhoneForegroundBrush}"
  13. SupportedOrientations="Portrait" Orientation="Portrait"
  14. shell:SystemTray.IsVisible="True">
  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. <!-- LOCALIZATION NOTE:
  22. To localize the displayed strings copy their values to appropriately named
  23. keys in the app's neutral language resource file (AppResources.resx) then
  24. replace the hard-coded text value between the attributes' quotation marks
  25. with the binding clause whose path points to that string name.
  26. For example:
  27. Text="{Binding Path=LocalizedResources.ApplicationTitle, Source={StaticResource LocalizedStrings}}"
  28. This binding points to the template's string resource named "ApplicationTitle".
  29. Adding supported languages in the Project Properties tab will create a
  30. new resx file per language that can carry the translated values of your
  31. UI strings. The binding in these examples will cause the value of the
  32. attributes to be drawn from the .resx file that matches the
  33. CurrentUICulture of the app at run time.
  34. -->
  35. <!--TitlePanel contains the name of the application and page title-->
  36. <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
  37. <TextBlock Text="TEST APP" Style="{StaticResource PhoneTextNormalStyle}" Margin="12,0"/>
  38. <TextBlock Text="Unit Test" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
  39. </StackPanel>
  40. <!--ContentPanel - place additional content here-->
  41. <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
  42. <TextBlock x:Name="label" Text="Tests running" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  43. </Grid>
  44. <!--Uncomment to see an alignment grid to help ensure your controls are
  45. aligned on common boundaries. The image has a top margin of -32px to
  46. account for the System Tray. Set this to 0 (or remove the margin altogether)
  47. if the System Tray is hidden.
  48. Before shipping remove this XAML and the image itself.-->
  49. <!--<Image Source="/Assets/AlignmentGrid.png" VerticalAlignment="Top" Height="800" Width="480" Margin="0,-32,0,0" Grid.Row="0" Grid.RowSpan="2" IsHitTestVisible="False" />-->
  50. </Grid>
  51. </phone:PhoneApplicationPage>