Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ScrollView>
- <Grid ColumnSpacing="0" RowSpacing="0">
- <Grid.RowDefinitions>
- <RowDefinition Height="AUTO" />
- </Grid.RowDefinitions>
- <!-- header background -->
- <Image Aspect="AspectFill" BackgroundColor="#B11541" HeightRequest="190" WidthRequest="400" />
- <Image Aspect="AspectFill" Margin="0,125,0,-1" Source="CurvedMask.png" VerticalOptions="End" />
- <Grid Grid.Row="0" Margin="50,63,50,70" ColumnSpacing="5" RowSpacing="0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Frame x:Name="frameView" Grid.Row=“0” IsVisible="false" TranslationY="40" Margin="10,5,10,0" HeightRequest="55">
- <StackLayout Margin="0">
- <Label Text="LeaseID : JMT-LA-201611-000001" TextColor="#B11541" FontFamily="{StaticResource OpenSansBold}" FontSize="16"/>
- <BoxView HeightRequest="1" BackgroundColor="#e6e6e6"/>
- <Label x:Name="leaseLabel">
- <Label.FormattedText>
- <FormattedString>
- <Span Text="CustomerName: " TextColor="Black" FontFamily="{StaticResource OpenSansBold}" FontSize="16"/>
- <Span Text=" U Min Min" TextColor="Gray" FontFamily="{StaticResource OpenSansRegular}" FontSize="15"/>
- <Span Text="{x:Static x:Environment.NewLine}"/>
- </FormattedString>
- </Label.FormattedText>
- </Label>
- </StackLayout>
- </Frame>
- <!--IsRefreshing="{Binding IsBusy, Mode=OneWay}"
- ItemsSource="{Binding Items}" IsRefreshing="{Binding IsBusy, Mode=OneWay}"
- RefreshCommand="{Binding LoadProsCommand}"
- RefreshCommand="{Binding LoadProsCommand}"-->
- <StackLayout x:Name="mainLayout" IsVisible="false" Grid.Row="2" BackgroundColor="#e6e6e6" VerticalOptions="Fill" TranslationY="50" Padding="1,0,1,5" >
- <ListView x:Name="mainlistView"
- BackgroundColor="White"
- IsGroupingEnabled="True"
- SeparatorColor="Transparent" SeparatorVisibility="None" IsEnabled="False"
- HasUnevenRows="True"
- Margin="5,5,5,0"
- >
- <ListView.ItemTemplate>
- <DataTemplate>
- <ViewCell >
- <StackLayout Orientation="Vertical" VerticalOptions="FillAndExpand">
- <ScrollView>
- <views:ViewIn HorizontalOptions="Fill"></views:ViewIn>
- </ScrollView>
- </StackLayout>
- </ViewCell>
- </DataTemplate>
- </ListView.ItemTemplate>
- <ListView.GroupHeaderTemplate>
- <DataTemplate>
- <ViewCell>
- <Grid BackgroundColor="#FEDAE3">
- <Label FontSize="17"
- Margin="10,0,0,0"
- FontAttributes="Bold"
- Text="{Binding Name}"
- TextColor="#B11541" FontFamily="{StaticResource OpenSansBold}"
- VerticalTextAlignment="Center"></Label>
- </Grid>
- </ViewCell>
- </DataTemplate>
- </ListView.GroupHeaderTemplate>
- </ListView>
- </StackLayout>
- <Frame x:Name="tenantframeView" BackgroundColor="White" Grid.Row=“0” IsVisible="true" TranslationY="37" Margin="10,5,10,0" HeightRequest="95">
- <StackLayout Margin="0">
- <Label Text="SJM001000-0001" TextColor="#B11541" FontFamily="{StaticResource OpenSansBold}" FontSize="16"/>
- <BoxView HeightRequest="1" BackgroundColor="#e6e6e6"/>
- <Label>
- <Label.FormattedText>
- <FormattedString>
- <Span Text="Shop Name: " TextColor="Black" FontFamily="{StaticResource OpenSansBold}" FontSize="14"/>
- <Span Text="City Mart Holding Co.Ltd" TextColor="Gray" FontFamily="{StaticResource OpenSansRegular}" FontSize="15"/>
- <Span Text="{x:Static x:Environment.NewLine}"/>
- <Span Text="Duration: " TextColor="Black" FontFamily="{StaticResource OpenSansBold}" FontSize="14"/>
- <Span Text="18/09/2015 to 17/09/2020" TextColor="Gray" FontFamily="{StaticResource OpenSansRegular}" FontSize="15"/>
- </FormattedString>
- </Label.FormattedText>
- </Label>
- <BoxView HeightRequest="1" BackgroundColor="#e6e6e6"/>
- <StackLayout Orientation="Horizontal" VerticalOptions="Center" HorizontalOptions="Center">
- <Image WidthRequest="15" HeightRequest="15" Source="contact.png"/>
- <Label x:Name="tenantLabel" Text="U Min Min" TextColor="Gray" FontFamily="{StaticResource OpenSansRegular}" FontSize="15"/>
- <BoxView HeightRequest="15" WidthRequest="2" BackgroundColor="#e6e6e6"/>
- <Image WidthRequest="15" HeightRequest="15" Source="phonebook.png"/>
- <Label Text="988464646" TextColor="Gray" FontFamily="{StaticResource OpenSansRegular}" FontSize="15"/>
- </StackLayout>
- </StackLayout>
- </Frame>
- <StackLayout x:Name="tenantLayout" IsVisible="true" Grid.Row="2" BackgroundColor="gray" VerticalOptions="Fill" TranslationY="45" Padding="1,0,1,5" >
- <ListView x:Name="tenantListview"
- BackgroundColor="#e6e6e6"
- IsGroupingEnabled="True"
- HasUnevenRows="True"
- SeparatorColor="Transparent" SeparatorVisibility="None" IsEnabled="False"
- >
- <ListView.ItemTemplate>
- <DataTemplate>
- <ViewCell>
- <Frame Margin="10,0,10,20" IsClippedToBounds="true" BorderColor="Transparent" BackgroundColor="White" HeightRequest="110" CornerRadius="5" Padding="0" >
- <StackLayout HorizontalOptions="FillAndExpand" BackgroundColor="White" >
- <!-- <StackLayout HorizontalOptions="Center" WidthRequest="60" HeightRequest="65" VerticalOptions="CenterAndExpand" BackgroundColor="White">
- -->
- <StackLayout BackgroundColor="#f8f9f8">
- <Label Text="{Binding Type}" Margin="8" TextColor="#B11541" FontSize="16"/>
- <BoxView HeightRequest="1" BackgroundColor="Gray"/>
- </StackLayout>
- <StackLayout>
- <Label x:Name="tenantLabel" Margin="10,0,0,0">
- <Label.FormattedText>
- <FormattedString>
- <Span Text="Duration: " FontFamily="{StaticResource OpenSansBold}" TextColor="Black" FontSize="14"/>
- <Span Text="{Binding Duration}" TextColor="Gray" FontSize="15" FontFamily="{StaticResource OpenSansRegular}"/>
- <Span Text="{x:Static x:Environment.NewLine}"/>
- <Span Text="{x:Static x:Environment.NewLine}"/>
- <Span Text="Service Charge(Area): " FontFamily="{StaticResource OpenSansBold}" TextColor="Black" FontSize="14"/>
- <Span Text="{Binding Amount}" TextColor="Gray" FontSize="15" FontFamily="{StaticResource OpenSansRegular}"/>
- </FormattedString>
- </Label.FormattedText>
- </Label>
- </StackLayout>
- </StackLayout>
- </Frame>
- </ViewCell>
- </DataTemplate>
- </ListView.ItemTemplate>
- <ListView.GroupHeaderTemplate>
- <DataTemplate>
- <ViewCell>
- <Grid BackgroundColor="#FEDAE3">
- <Label FontSize="17"
- Margin="10,0,0,0"
- FontAttributes="Bold"
- Text="{Binding Name}"
- TextColor="#B11541" FontFamily="{StaticResource OpenSansBold}"
- VerticalTextAlignment="Center"></Label>
- </Grid>
- </ViewCell>
- </DataTemplate>
- </ListView.GroupHeaderTemplate>
- </ListView>
- </StackLayout>
- </Grid>
- </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement