Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
14 kB
2
Indexable
Never
<Grid RowDefinitions="70, *"
          Margin="0">
        <AbsoluteLayout Grid.Row="1">
            <Grid RowDefinitions="*, 60"
                  AbsoluteLayout.LayoutBounds="0,0,1,1"
                  AbsoluteLayout.LayoutFlags="All"
                  BackgroundColor="Transparent"
                  Margin="0,-40,0,0">
                <ScrollView Grid.Row="0" VerticalScrollBarVisibility="Never">
                    <Grid RowDefinitions="360, Auto, Auto, Auto">
                        <CarouselView x:Name="imgs" Grid.Row="0" Margin="0"
                                      IndicatorView="indicatorView" PeekAreaInsets="70"
                                      IsBounceEnabled="True" IsScrollAnimated="True"
                                      VerticalOptions="Start">
                            <CarouselView.ItemTemplate>
                                <DataTemplate>
                                    <Grid>
                                        <VisualStateManager.VisualStateGroups>
                                            <VisualStateGroup x:Name="CommonStates">
                                                <VisualState x:Name="CurrentItem">
                                                    <VisualState.Setters>
                                                        <Setter Property="Scale"
                                                                Value="1.1" />
                                                    </VisualState.Setters>
                                                </VisualState>
                                                <VisualState x:Name="PreviousItem">
                                                    <VisualState.Setters>
                                                        <Setter Property="Opacity"
                                                                Value="0.3" />
                                                    </VisualState.Setters>
                                                </VisualState>
                                                <VisualState x:Name="NextItem">
                                                    <VisualState.Setters>
                                                        <Setter Property="Opacity"
                                                                Value="0.3" />
                                                    </VisualState.Setters>
                                                </VisualState>
                                                <VisualState x:Name="DefaultItem">
                                                    <VisualState.Setters>
                                                        <Setter Property="Opacity"
                                                                Value="0.25" />
                                                    </VisualState.Setters>
                                                </VisualState>
                                            </VisualStateGroup>
                                        </VisualStateManager.VisualStateGroups>
                                        <Border Padding="0" StrokeShape="RoundRectangle 20"
                                                Margin="10,30"
                                                WidthRequest="250"
                                                StrokeThickness="0"
                                                HorizontalOptions="FillAndExpand">
                                            <Border.Shadow>
                                                <Shadow Radius="10" Brush="{StaticResource ShadowDark}"
                                                        Offset="5,15"
                                                        Opacity=".5" />
                                            </Border.Shadow>
                                            <Image Margin="0"
                                                   Aspect="AspectFill"
                                                   HeightRequest="300"
                                                   WidthRequest="250"
                                                   HorizontalOptions="FillAndExpand">
                                                <Image.Source>
                                                    <UriImageSource Uri="{Binding ImgUrl}"
                                                                    CachingEnabled="True"
                                                                    CacheValidity="10:00:00:00" />
                                                </Image.Source>
                                            </Image>
                                        </Border>
                                    </Grid>
                                </DataTemplate>

                            </CarouselView.ItemTemplate>

                        </CarouselView>
                        <Border HeightRequest="60" WidthRequest="60"
                                StrokeShape="RoundRectangle 50" BackgroundColor="Green"
                                VerticalOptions="End" HorizontalOptions="End"
                                Margin="20" StrokeThickness="0">
                            <Border.Shadow>
                                <Shadow Radius="10" Brush="{StaticResource ShadowDark}"
                                        Offset="10,10"
                                        Opacity=".7" />
                            </Border.Shadow>
                            <Label Text="10" VerticalOptions="Center" HorizontalOptions="Center"
                                   TextColor="{StaticResource TextColorBlack}" FontSize="Large"
                                   FontAttributes="Bold" />
                        </Border>
                        <!--<VerticalStackLayout Grid.Row="0" HeightRequest="50" VerticalOptions="End"
                                     Opacity="0.7"
                                     BackgroundColor="White">

                    <Label Text="This is a preview. This is how your property will look like on the client app."
                           Margin="10"
                           TextColor="{StaticResource TextColorBlack}" />
                </VerticalStackLayout>-->
                        <IndicatorView Grid.Row="1" Margin="0" x:Name="indicatorView"
                                       IndicatorColor="LightGray"
                                       SelectedIndicatorColor="Gray"
                                       HorizontalOptions="Center" />

                        <Grid Grid.Row="1" RowSpacing="10"
                              RowDefinitions="Auto, Auto, Auto, Auto, Auto, Auto, Auto" Margin="5">
                            <Label x:Name="lblpropname"
                                FontFamily="RobotoCondensed" FontSize="20"
                                TextColor="{StaticResource TextColorBlack}" />

                            <BoxView HeightRequest="1" Grid.Row="1" />

                            <Label Grid.Row="2" VerticalTextAlignment="Center">
                                <Label.FormattedText>
                                    <FormattedString>
                                        <Span Text="Php. " FontSize="Large"
                                              FontAttributes="Bold" FontFamily="RobotoCondensed"
                                              TextColor="{StaticResource PriceColor}" />
                                        <Span x:Name="lblpropprice" FontSize="Large"
                                              FontAttributes="Bold" FontFamily="RobotoCondensed"
                                              TextColor="{StaticResource PriceColor}" />
                                        <Span Text="   /   " TextColor="{StaticResource TextColorGray}"
                                              FontSize="Large"
                                              FontAttributes="Bold" FontFamily="RobotoCondensed" />
                                        <Span x:Name="lblrentduration" TextColor="{StaticResource TextColorGray}"
                                              FontSize="Large"
                                              FontAttributes="Bold" FontFamily="RobotoCondensed" />
                                        <Span Text=" " TextColor="{StaticResource TextColorGray}"
                                              FontSize="Large"
                                              FontAttributes="Bold" FontFamily="RobotoCondensed" />
                                        <Span x:Name="lblunitoftime" TextColor="{StaticResource TextColorBlack}"
                                              FontSize="Large"
                                              FontAttributes="Bold" FontFamily="RobotoCondensed" />
                                    </FormattedString>
                                </Label.FormattedText>
                            </Label>
                            <Label x:Name="lblpropStatus" TextColor="{StaticResource TextColorBlack}" Grid.Row="2"
                                   HorizontalOptions="End"
                                   FontFamily="RobotoCondensed"
                                   VerticalOptions="Center" FontAttributes="Bold"
                                   FontSize="Large" />
                            <Label x:Name="lblpropdescription" Grid.Row="3" FontFamily="RobotoCondensed"
                                TextColor="{StaticResource TextColorGray}" />
                            <BoxView Grid.Row="4" HeightRequest="1" />
                            <StackLayout Orientation="Horizontal" Grid.Row="5" HorizontalOptions="FillAndExpand">
                                <Label Text="Comments (10)"
                                   FontSize="Large" FontFamily="RobotoCondensed"
                                   TextColor="{StaticResource TextColorBlack}" />
                                <ImageButton Source="more.png"
                                             Margin="0,0,20,0"
                                             HeightRequest="20" WidthRequest="20"
                                       HorizontalOptions="EndAndExpand"/>
                            </StackLayout>
                            <CollectionView Grid.Row="6" BackgroundColor="Aquamarine"
                                            HeightRequest="100">
                                
                            </CollectionView>
                        </Grid>
                    </Grid>
                </ScrollView>
                <StackLayout Grid.Row="1" HorizontalOptions="FillAndExpand"
                             VerticalOptions="End"
                             Orientation="Horizontal"
                             BackgroundColor="Transparent">

                    <Button Text="Chat" CornerRadius="0" 
                            Clicked="Button_Clicked" TextColor="{StaticResource TextColorBlack}"
                            BackgroundColor="{StaticResource Primary}"/>
                    <BoxView WidthRequest="1" Margin="0,20" />
                    <Button Text="Add to Favorites" CornerRadius="0" 
                            Clicked="Button_Clicked" TextColor="{StaticResource TextColorBlack}"
                            BackgroundColor="{StaticResource Primary}"/>
                    <Button HorizontalOptions="FillAndExpand" BackgroundColor="{StaticResource ButtonColor}"
                            TextColor="{StaticResource TextColorBlack}" Clicked="Button_Clicked"
                            Text="Request to rent now" VerticalOptions="FillAndExpand" CornerRadius="0" />
                </StackLayout>
            </Grid>
            <StackLayout
                x:Name="progressLoading"
                IsVisible="False"
                VerticalOptions="FillAndExpand"
                HorizontalOptions="FillAndExpand"
                AbsoluteLayout.LayoutBounds="0,0,1,1"
                AbsoluteLayout.LayoutFlags="All" Opacity="0.9"
                BackgroundColor="Black">
                <skia:SKLottieView Grid.Row="0"
                                   VerticalOptions="Center"
                                   Source="loader.json"
                                   HeightRequest="200"
                                   Margin="0,300,0,0"
                                   WidthRequest="200"
                                   RepeatCount="-1" />
                <!--<Label Text="Processing , please wait..." 
                   Margin="0" HorizontalOptions="CenterAndExpand" 
                   TextColor="WhiteSmoke"/>-->
            </StackLayout>
        </AbsoluteLayout>
        <Border Grid.Row="0" HeightRequest="70"
                VerticalOptions="Start" StrokeThickness="0" Margin="-5,-20"
                StrokeShape="RoundRectangle 20"
                BackgroundColor="{StaticResource Gradient1}">
            <Border.Shadow>
                <Shadow Radius="10" Brush="{StaticResource ShadowDark}"
                        Offset="10,20"
                        Opacity=".7" />
            </Border.Shadow>
            <Grid ColumnDefinitions="Auto, *"
                  ColumnSpacing="20"
                  HorizontalOptions="FillAndExpand">
                <ImageButton Source="back.png" Grid.Column="0" Grid.Row="0"
                             Margin="20,0,0,0" Clicked="ImageButton_Clicked"
                             HeightRequest="30" WidthRequest="30" />
                <Label Text="Property preview" Grid.Column="1" VerticalOptions="Center"
                       FontSize="Medium" FontAttributes="Bold" FontFamily="RobotoLight"/>
            </Grid>
        </Border>
    </Grid>