MobilePage.xaml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ContentPage
  3. x:Name="_basepage"
  4. NavigationPage.HasNavigationBar="false"
  5. xmlns:iOS="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core"
  6. iOS:Page.UseSafeArea="true"
  7. xmlns="http://xamarin.com/schemas/2014/forms"
  8. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  9. xmlns:ui="clr-namespace:XF.Material.Forms.UI;assembly=XF.Material"
  10. xmlns:xForms="clr-namespace:Syncfusion.SfBusyIndicator.XForms;assembly=Syncfusion.SfBusyIndicator.XForms"
  11. xmlns:mobile="clr-namespace:InABox.Mobile;assembly=InABox.Mobile.Shared"
  12. x:Class="InABox.Mobile.MobilePage" >
  13. <!-- NavigationPage.HasBackButton="false" -->
  14. <Grid
  15. x:Name="_rootGrid"
  16. RowSpacing="0"
  17. ColumnSpacing="0"
  18. VerticalOptions="FillAndExpand"
  19. HorizontalOptions="FillAndExpand">
  20. <Grid.RowDefinitions>
  21. <RowDefinition Height="48" />
  22. <RowDefinition Height="*" />
  23. </Grid.RowDefinitions>
  24. <Grid
  25. x:Name="_titleBar"
  26. Grid.Row="0"
  27. Padding="5,0,5,0"
  28. ColumnSpacing="0">
  29. <Grid.ColumnDefinitions>
  30. <ColumnDefinition Width="Auto" />
  31. <ColumnDefinition Width="Auto" />
  32. <ColumnDefinition Width="*" />
  33. <ColumnDefinition Width="Auto" />
  34. <ColumnDefinition Width="Auto" />
  35. </Grid.ColumnDefinitions>
  36. <ImageButton
  37. Grid.Column="0"
  38. x:Name="_backButton"
  39. Aspect="AspectFit"
  40. Source="arrow_white_left"
  41. Clicked="_backButton_OnClicked"/>
  42. <StackLayout
  43. x:Name="_alternateMenu"
  44. Grid.Column="1"
  45. Orientation="Horizontal"
  46. HorizontalOptions="EndAndExpand" />
  47. <ui:MaterialLabel
  48. x:Name="_titleLabel"
  49. Grid.Column="2"
  50. Margin="5,0,0,0"
  51. Text="{Binding Title, Source={x:Reference _basepage}}"
  52. TypeScale="H6"
  53. FontAttributes="Bold"
  54. VerticalTextAlignment="Center"
  55. HorizontalTextAlignment="Start"
  56. LineBreakMode="TailTruncation"/>
  57. <Image
  58. x:Name="_connectionIndicator"
  59. Grid.Column="3"
  60. Source="disconnected"
  61. IsVisible="False"/>
  62. <StackLayout
  63. x:Name="_primaryMenu"
  64. Grid.Column="4"
  65. Orientation="Horizontal"
  66. HorizontalOptions="EndAndExpand" />
  67. </Grid>
  68. <Grid
  69. x:Name="_content"
  70. Grid.Row="1"
  71. RowSpacing="0"
  72. ColumnSpacing="0"
  73. Padding="0"
  74. Margin="0"/>
  75. <mobile:MobileCard
  76. x:Name="activity_frame"
  77. Grid.Row="1"
  78. BackgroundColor="Transparent"
  79. Padding="0"
  80. Margin="0"
  81. VerticalOptions="Center"
  82. HorizontalOptions="Center"
  83. IsVisible="False"
  84. IsClippedToBounds="True">
  85. <xForms:SfBusyIndicator
  86. AnimationType="Box"
  87. x:Name="activity_indicator"
  88. VerticalOptions="CenterAndExpand"
  89. HorizontalOptions="CenterAndExpand"
  90. ViewBoxWidth="60"
  91. ViewBoxHeight="60"
  92. TextColor="White"
  93. IsBusy="False"
  94. Duration="500"
  95. />
  96. </mobile:MobileCard>
  97. </Grid>
  98. </ContentPage>