Advertisement
Guest User

Untitled

a guest
Apr 21st, 2014
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. <v:PageBase
  2. x:Class="PhoneApp1.Views.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. xmlns:v="clr-namespace:PhoneApp1.Views"
  10. mc:Ignorable="d"
  11. FontFamily="{StaticResource PhoneFontFamilyNormal}"
  12. FontSize="{StaticResource PhoneFontSizeNormal}"
  13. Foreground="{StaticResource PhoneForegroundBrush}"
  14. SupportedOrientations="Portrait" Orientation="Portrait"
  15. shell:SystemTray.IsVisible="True">
  16.  
  17. <Grid x:Name="LayoutRoot" Background="Transparent">
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="Auto"/>
  20. <RowDefinition Height="*"/>
  21. </Grid.RowDefinitions>
  22.  
  23. <ItemsControl Grid.Row="0"
  24. Loaded="ItemsControl_Loaded"
  25. Margin="0,0,0,120">
  26.  
  27. <TextBlock Text="Item1"/>
  28. <TextBlock Text="Item2"/>
  29. <TextBlock Text="Item3"/>
  30.  
  31. </ItemsControl>
  32.  
  33. <ItemsControl Grid.Row="1"
  34. Loaded="ItemsControl_Loaded"
  35. Margin="0,120,0,0">
  36.  
  37. <TextBlock Text="Item1"/>
  38. <TextBlock Text="Item2"/>
  39. <TextBlock Text="Item3"/>
  40. <TextBlock Text="Item4"/>
  41.  
  42. </ItemsControl>
  43.  
  44. </Grid>
  45.  
  46. </v:PageBase>
  47.  
  48. namespace PhoneApp1.Views
  49. {
  50. public partial class MainPage : PageBase
  51. {
  52. // Constructor
  53. public MainPage()
  54. {
  55. InitializeComponent();
  56. }
  57. }
  58. }
  59.  
  60. using Microsoft.Phone.Controls;
  61.  
  62. namespace PhoneApp1.Views
  63. {
  64. // Common code across pages.
  65. public class PageBase : PhoneApplicationPage
  66. {
  67. protected virtual void ItemsControl_Loaded(object sender, System.Windows.RoutedEventArgs e )
  68. {
  69. //...
  70. }
  71. }
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement