MobilePage.xaml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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.RowDefinitions>
  20. <RowDefinition Height="40" />
  21. <RowDefinition Height="*" />
  22. </Grid.RowDefinitions>
  23. <Grid
  24. x:Name="_titleBar"
  25. Grid.Row="0"
  26. Padding="5,0,5,0"
  27. ColumnSpacing="0">
  28. <Grid.ColumnDefinitions>
  29. <ColumnDefinition Width="Auto" />
  30. <ColumnDefinition Width="Auto" />
  31. <ColumnDefinition Width="*" />
  32. <ColumnDefinition Width="Auto" />
  33. <ColumnDefinition Width="Auto" />
  34. </Grid.ColumnDefinitions>
  35. <ImageButton
  36. Grid.Column="0"
  37. x:Name="_backButton"
  38. Aspect="AspectFit"
  39. Source="arrow_white_left"
  40. Clicked="_backButton_OnClicked"/>
  41. <StackLayout
  42. x:Name="_alternateMenu"
  43. Grid.Column="1"
  44. Orientation="Horizontal"
  45. HorizontalOptions="EndAndExpand" />
  46. <Label
  47. x:Name="_titleLabel"
  48. Grid.Column="2"
  49. Margin="5,0,0,0"
  50. Text="{Binding Title, Source={x:Reference _basepage}}"
  51. FontSize="Medium"
  52. FontAttributes="Bold"
  53. VerticalTextAlignment="Center"
  54. HorizontalTextAlignment="Start"
  55. LineBreakMode="TailTruncation"/>
  56. <Image
  57. x:Name="_connectionIndicator"
  58. Grid.Column="3"
  59. Source="disconnected"
  60. IsVisible="False"/>
  61. <StackLayout
  62. x:Name="_primaryMenu"
  63. Grid.Column="4"
  64. Margin="0,0,3,0"
  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. BorderColor="Transparent"
  80. Padding="0"
  81. Margin="0"
  82. VerticalOptions="Center"
  83. HorizontalOptions="Center"
  84. IsVisible="False"
  85. IsClippedToBounds="True"
  86. HeightRequest="80"
  87. WidthRequest="80">
  88. <xForms:SfBusyIndicator
  89. AnimationType="SingleCircle"
  90. x:Name="activity_indicator"
  91. VerticalOptions="CenterAndExpand"
  92. HorizontalOptions="CenterAndExpand"
  93. ViewBoxWidth="50"
  94. ViewBoxHeight="50"
  95. TextColor="White"
  96. IsBusy="False"
  97. Duration="200"
  98. />
  99. </mobile:MobileCard>
  100. </Grid>
  101. </ContentPage>