MobilePage.xaml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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:xForms="clr-namespace:Syncfusion.SfBusyIndicator.XForms;assembly=Syncfusion.SfBusyIndicator.XForms"
  10. xmlns:mobile="clr-namespace:InABox.Mobile;assembly=InABox.Mobile.Shared"
  11. x:Class="InABox.Mobile.MobilePage">
  12. <!-- NavigationPage.HasBackButton="false" -->
  13. <Grid
  14. x:Name="_rootGrid"
  15. RowSpacing="0"
  16. ColumnSpacing="0"
  17. VerticalOptions="FillAndExpand"
  18. HorizontalOptions="FillAndExpand">
  19. <Grid.Margin>
  20. <OnPlatform x:TypeArguments="Thickness">
  21. <OnPlatform.Platforms>
  22. <On Platform="iOS" Value="0,-5,0,0" />
  23. <On Platform="Android" Value="0,0,0,0" />
  24. </OnPlatform.Platforms>
  25. </OnPlatform>
  26. </Grid.Margin>
  27. <Grid.RowDefinitions>
  28. <RowDefinition>
  29. <RowDefinition.Height>
  30. <OnPlatform x:TypeArguments="GridLength">
  31. <OnPlatform.Platforms>
  32. <On Platform="iOS" Value="40" />
  33. <On Platform="Android" Value="50" />
  34. </OnPlatform.Platforms>
  35. </OnPlatform>
  36. </RowDefinition.Height>
  37. </RowDefinition>
  38. <RowDefinition Height="*" />
  39. </Grid.RowDefinitions>
  40. <Grid
  41. x:Name="_titleBar"
  42. Grid.Row="0"
  43. Padding="5,0,5,0"
  44. ColumnSpacing="0">
  45. <Grid.ColumnDefinitions>
  46. <ColumnDefinition Width="Auto" />
  47. <ColumnDefinition Width="Auto" />
  48. <ColumnDefinition Width="*" />
  49. <ColumnDefinition Width="Auto" />
  50. <ColumnDefinition Width="Auto" />
  51. <ColumnDefinition Width="Auto" />
  52. </Grid.ColumnDefinitions>
  53. <ImageButton
  54. Grid.Column="0"
  55. x:Name="_backButton"
  56. Aspect="AspectFit"
  57. Source="arrow_white_left"
  58. Clicked="_backButton_OnClicked"/>
  59. <StackLayout
  60. x:Name="_alternateMenu"
  61. Grid.Column="1"
  62. Orientation="Horizontal"
  63. HorizontalOptions="EndAndExpand" />
  64. <Label
  65. x:Name="_titleLabel"
  66. Grid.Column="2"
  67. Margin="5,0,0,0"
  68. Text="{Binding Title, Source={x:Reference _basepage}}"
  69. FontSize="Medium"
  70. FontAttributes="Bold"
  71. VerticalTextAlignment="Center"
  72. HorizontalTextAlignment="Start"
  73. LineBreakMode="TailTruncation"/>
  74. <Image
  75. x:Name="_updateIndicator"
  76. Grid.Column="3"
  77. Source="upload"
  78. IsVisible="False"/>
  79. <Image
  80. x:Name="_connectionIndicator"
  81. Grid.Column="4"
  82. Source="disconnected"
  83. IsVisible="False"/>
  84. <StackLayout
  85. x:Name="_primaryMenu"
  86. Grid.Column="5"
  87. Margin="0,0,3,0"
  88. Orientation="Horizontal"
  89. HorizontalOptions="EndAndExpand" />
  90. </Grid>
  91. <Grid
  92. x:Name="_content"
  93. Grid.Row="1"
  94. RowSpacing="0"
  95. ColumnSpacing="0"
  96. Padding="0"
  97. Margin="0"/>
  98. <mobile:MobileCard
  99. x:Name="activity_frame"
  100. Grid.Row="1"
  101. BackgroundColor="Transparent"
  102. BorderColor="Transparent"
  103. Padding="0"
  104. Margin="0"
  105. VerticalOptions="Center"
  106. HorizontalOptions="Center"
  107. IsVisible="False"
  108. IsClippedToBounds="True"
  109. HeightRequest="80"
  110. WidthRequest="80">
  111. <xForms:SfBusyIndicator
  112. AnimationType="SingleCircle"
  113. x:Name="activity_indicator"
  114. VerticalOptions="CenterAndExpand"
  115. HorizontalOptions="CenterAndExpand"
  116. ViewBoxWidth="50"
  117. ViewBoxHeight="50"
  118. TextColor="White"
  119. IsBusy="False"
  120. Duration="200"
  121. />
  122. </mobile:MobileCard>
  123. </Grid>
  124. </ContentPage>