Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.67 KB | None | 0 0
  1. <ScrollView>
  2. <Grid ColumnSpacing="0" RowSpacing="0">
  3. <Grid.RowDefinitions>
  4. <RowDefinition Height="AUTO" />
  5. </Grid.RowDefinitions>
  6. <!-- header background -->
  7. <Image Aspect="AspectFill" BackgroundColor="#B11541" HeightRequest="190" WidthRequest="400" />
  8. <Image Aspect="AspectFill" Margin="0,125,0,-1" Source="CurvedMask.png" VerticalOptions="End" />
  9.  
  10. <Grid Grid.Row="0" Margin="50,63,50,70" ColumnSpacing="5" RowSpacing="0">
  11. <Grid.ColumnDefinitions>
  12. <ColumnDefinition Width="*" />
  13. <ColumnDefinition Width="*" />
  14. <ColumnDefinition Width="*" />
  15. </Grid.ColumnDefinitions>
  16.  
  17. <Frame x:Name="frameView" Grid.Row=“0” IsVisible="false" TranslationY="40" Margin="10,5,10,0" HeightRequest="55">
  18.  
  19. <StackLayout Margin="0">
  20. <Label Text="LeaseID : JMT-LA-201611-000001" TextColor="#B11541" FontFamily="{StaticResource OpenSansBold}" FontSize="16"/>
  21. <BoxView HeightRequest="1" BackgroundColor="#e6e6e6"/>
  22. <Label x:Name="leaseLabel">
  23. <Label.FormattedText>
  24. <FormattedString>
  25. <Span Text="CustomerName: " TextColor="Black" FontFamily="{StaticResource OpenSansBold}" FontSize="16"/>
  26. <Span Text=" U Min Min" TextColor="Gray" FontFamily="{StaticResource OpenSansRegular}" FontSize="15"/>
  27. <Span Text="{x:Static x:Environment.NewLine}"/>
  28. </FormattedString>
  29. </Label.FormattedText>
  30. </Label>
  31. </StackLayout>
  32. </Frame>
  33.  
  34. <!--IsRefreshing="{Binding IsBusy, Mode=OneWay}"
  35. ItemsSource="{Binding Items}" IsRefreshing="{Binding IsBusy, Mode=OneWay}"
  36. RefreshCommand="{Binding LoadProsCommand}"
  37. RefreshCommand="{Binding LoadProsCommand}"-->
  38. <StackLayout x:Name="mainLayout" IsVisible="false" Grid.Row="2" BackgroundColor="#e6e6e6" VerticalOptions="Fill" TranslationY="50" Padding="1,0,1,5" >
  39.  
  40. <ListView x:Name="mainlistView"
  41. BackgroundColor="White"
  42. IsGroupingEnabled="True"
  43. SeparatorColor="Transparent" SeparatorVisibility="None" IsEnabled="False"
  44. HasUnevenRows="True"
  45. Margin="5,5,5,0"
  46.  
  47. >
  48.  
  49. <ListView.ItemTemplate>
  50. <DataTemplate>
  51. <ViewCell >
  52.  
  53. <StackLayout Orientation="Vertical" VerticalOptions="FillAndExpand">
  54. <ScrollView>
  55. <views:ViewIn HorizontalOptions="Fill"></views:ViewIn>
  56. </ScrollView>
  57. </StackLayout>
  58.  
  59. </ViewCell>
  60. </DataTemplate>
  61. </ListView.ItemTemplate>
  62. <ListView.GroupHeaderTemplate>
  63. <DataTemplate>
  64. <ViewCell>
  65. <Grid BackgroundColor="#FEDAE3">
  66. <Label FontSize="17"
  67. Margin="10,0,0,0"
  68. FontAttributes="Bold"
  69. Text="{Binding Name}"
  70. TextColor="#B11541" FontFamily="{StaticResource OpenSansBold}"
  71. VerticalTextAlignment="Center"></Label>
  72. </Grid>
  73. </ViewCell>
  74. </DataTemplate>
  75. </ListView.GroupHeaderTemplate>
  76. </ListView>
  77. </StackLayout>
  78.  
  79.  
  80. <Frame x:Name="tenantframeView" BackgroundColor="White" Grid.Row=“0” IsVisible="true" TranslationY="37" Margin="10,5,10,0" HeightRequest="95">
  81. <StackLayout Margin="0">
  82. <Label Text="SJM001000-0001" TextColor="#B11541" FontFamily="{StaticResource OpenSansBold}" FontSize="16"/>
  83. <BoxView HeightRequest="1" BackgroundColor="#e6e6e6"/>
  84. <Label>
  85. <Label.FormattedText>
  86. <FormattedString>
  87. <Span Text="Shop Name: " TextColor="Black" FontFamily="{StaticResource OpenSansBold}" FontSize="14"/>
  88. <Span Text="City Mart Holding Co.Ltd" TextColor="Gray" FontFamily="{StaticResource OpenSansRegular}" FontSize="15"/>
  89. <Span Text="{x:Static x:Environment.NewLine}"/>
  90. <Span Text="Duration: " TextColor="Black" FontFamily="{StaticResource OpenSansBold}" FontSize="14"/>
  91. <Span Text="18/09/2015 to 17/09/2020" TextColor="Gray" FontFamily="{StaticResource OpenSansRegular}" FontSize="15"/>
  92. </FormattedString>
  93. </Label.FormattedText>
  94. </Label>
  95. <BoxView HeightRequest="1" BackgroundColor="#e6e6e6"/>
  96.  
  97. <StackLayout Orientation="Horizontal" VerticalOptions="Center" HorizontalOptions="Center">
  98. <Image WidthRequest="15" HeightRequest="15" Source="contact.png"/>
  99. <Label x:Name="tenantLabel" Text="U Min Min" TextColor="Gray" FontFamily="{StaticResource OpenSansRegular}" FontSize="15"/>
  100. <BoxView HeightRequest="15" WidthRequest="2" BackgroundColor="#e6e6e6"/>
  101. <Image WidthRequest="15" HeightRequest="15" Source="phonebook.png"/>
  102. <Label Text="988464646" TextColor="Gray" FontFamily="{StaticResource OpenSansRegular}" FontSize="15"/>
  103.  
  104. </StackLayout>
  105. </StackLayout>
  106. </Frame>
  107.  
  108.  
  109. <StackLayout x:Name="tenantLayout" IsVisible="true" Grid.Row="2" BackgroundColor="gray" VerticalOptions="Fill" TranslationY="45" Padding="1,0,1,5" >
  110.  
  111. <ListView x:Name="tenantListview"
  112. BackgroundColor="#e6e6e6"
  113. IsGroupingEnabled="True"
  114. HasUnevenRows="True"
  115. SeparatorColor="Transparent" SeparatorVisibility="None" IsEnabled="False"
  116. >
  117.  
  118. <ListView.ItemTemplate>
  119. <DataTemplate>
  120. <ViewCell>
  121. <Frame Margin="10,0,10,20" IsClippedToBounds="true" BorderColor="Transparent" BackgroundColor="White" HeightRequest="110" CornerRadius="5" Padding="0" >
  122.  
  123. <StackLayout HorizontalOptions="FillAndExpand" BackgroundColor="White" >
  124. <!-- <StackLayout HorizontalOptions="Center" WidthRequest="60" HeightRequest="65" VerticalOptions="CenterAndExpand" BackgroundColor="White">
  125. -->
  126.  
  127. <StackLayout BackgroundColor="#f8f9f8">
  128. <Label Text="{Binding Type}" Margin="8" TextColor="#B11541" FontSize="16"/>
  129. <BoxView HeightRequest="1" BackgroundColor="Gray"/>
  130.  
  131. </StackLayout>
  132. <StackLayout>
  133. <Label x:Name="tenantLabel" Margin="10,0,0,0">
  134. <Label.FormattedText>
  135. <FormattedString>
  136. <Span Text="Duration: " FontFamily="{StaticResource OpenSansBold}" TextColor="Black" FontSize="14"/>
  137. <Span Text="{Binding Duration}" TextColor="Gray" FontSize="15" FontFamily="{StaticResource OpenSansRegular}"/>
  138. <Span Text="{x:Static x:Environment.NewLine}"/>
  139. <Span Text="{x:Static x:Environment.NewLine}"/>
  140. <Span Text="Service Charge(Area): " FontFamily="{StaticResource OpenSansBold}" TextColor="Black" FontSize="14"/>
  141. <Span Text="{Binding Amount}" TextColor="Gray" FontSize="15" FontFamily="{StaticResource OpenSansRegular}"/>
  142. </FormattedString>
  143. </Label.FormattedText>
  144. </Label>
  145. </StackLayout>
  146. </StackLayout>
  147. </Frame>
  148. </ViewCell>
  149. </DataTemplate>
  150. </ListView.ItemTemplate>
  151. <ListView.GroupHeaderTemplate>
  152. <DataTemplate>
  153. <ViewCell>
  154. <Grid BackgroundColor="#FEDAE3">
  155. <Label FontSize="17"
  156. Margin="10,0,0,0"
  157. FontAttributes="Bold"
  158. Text="{Binding Name}"
  159. TextColor="#B11541" FontFamily="{StaticResource OpenSansBold}"
  160. VerticalTextAlignment="Center"></Label>
  161. </Grid>
  162. </ViewCell>
  163. </DataTemplate>
  164. </ListView.GroupHeaderTemplate>
  165. </ListView>
  166. </StackLayout>
  167.  
  168. </Grid>
  169. </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement