Guest User

tabbed.xaml

a guest
Aug 28th, 2020
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.86 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  4. x:Class="appsmile.View.Approve">
  5.  
  6. <ContentPage.Content>
  7. <StackLayout BackgroundColor="#a39898" >
  8. <AbsoluteLayout BackgroundColor="#ffffff" Padding="0,0,0,0" HeightRequest="150">
  9. <Image Source="logo"
  10. BackgroundColor="Transparent"
  11. HorizontalOptions="CenterAndExpand"
  12. VerticalOptions="CenterAndExpand"
  13. AbsoluteLayout.LayoutFlags="PositionProportional" AbsoluteLayout.LayoutBounds=".5,0,100,70" />
  14. <ImageButton Source="approve.png"
  15. FlexLayout.AlignSelf="Center"
  16. BackgroundColor="Transparent"
  17. HorizontalOptions="CenterAndExpand"
  18. VerticalOptions="CenterAndExpand"
  19. AbsoluteLayout.LayoutFlags="XProportional" AbsoluteLayout.LayoutBounds=".5,75,100,65" />
  20. </AbsoluteLayout>
  21. <AbsoluteLayout BackgroundColor="#ffffff" Padding="0,0,0,0" Margin="0,-10,0,0">
  22. <Grid HorizontalOptions="FillAndExpand" Margin="0,10,0,0"
  23. VerticalOptions="FillAndExpand"
  24. ColumnSpacing="0"
  25. RowSpacing="0"
  26. Padding="0">
  27.  
  28. <Grid.RowDefinitions>
  29. <RowDefinition Height="Auto" />
  30. <RowDefinition Height="Auto" />
  31. <RowDefinition Height="Auto" />
  32. </Grid.RowDefinitions>
  33.  
  34. <Grid.ColumnDefinitions>
  35. <ColumnDefinition Width="*" />
  36. <ColumnDefinition Width="*" />
  37. <ColumnDefinition Width="*" />
  38. </Grid.ColumnDefinitions>
  39.  
  40. <!-- Tab 1 -->
  41. <StackLayout Grid.Row="0" Grid.Column="0" VerticalOptions="FillAndExpand" >
  42. <Button Clicked="Tab1Clicked" Text="NEED APPROVAL" BackgroundColor="#ffffff"/>
  43. </StackLayout>
  44.  
  45. <!-- Tab 2 -->
  46. <StackLayout Grid.Row="0" Grid.Column="1" VerticalOptions="FillAndExpand">
  47. <Button Clicked="Tab2Clicked" Text="APPROVED" BackgroundColor="#ffffff"/>
  48. </StackLayout>
  49.  
  50. <!-- Tab 3 -->
  51. <StackLayout Grid.Row="0" Grid.Column="2" VerticalOptions="FillAndExpand">
  52. <Button Clicked="Tab3Clicked" Text="REJECT" BackgroundColor="#ffffff" />
  53. </StackLayout>
  54.  
  55. <StackLayout Grid.Row="1" Grid.Column="0" VerticalOptions="FillAndExpand" x:Name="line1" IsVisible="true">
  56. <BoxView Color="Red" HeightRequest="2" />
  57. </StackLayout>
  58. <StackLayout Grid.Row="1" Grid.Column="1" VerticalOptions="FillAndExpand" x:Name="line2" IsVisible="false">
  59. <BoxView Color="Red" HeightRequest="2" />
  60. </StackLayout>
  61. <StackLayout Grid.Row="1" Grid.Column="2" VerticalOptions="FillAndExpand" x:Name="line3" IsVisible="false">
  62. <BoxView Color="Red" HeightRequest="2" />
  63. </StackLayout>
  64.  
  65. <StackLayout x:Name="stkTab1" IsVisible="true">
  66.  
  67. </StackLayout>
  68. <StackLayout x:Name="stkTab2" IsVisible="false">
  69. </StackLayout>
  70.  
  71. <StackLayout x:Name="stkTab3" IsVisible="false">
  72. </StackLayout>
  73. </Grid>
  74. </AbsoluteLayout>
  75. </StackLayout>
  76. </ContentPage.Content>
  77. </ContentPage>
Add Comment
Please, Sign In to add comment