Merge pull request 'Vue : Avis des recettes' (#34) from feature/10-recipe-reviews into dev-views
Reviewed-on: #34pull/27/head
commit
5c87a63f49
@ -0,0 +1,9 @@
|
||||
namespace Views;
|
||||
|
||||
public partial class RecipeReviews : ContentPage
|
||||
{
|
||||
public RecipeReviews()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 1.2 KiB |
@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:local="clr-namespace:Views"
|
||||
x:Class="Views.UserReview"
|
||||
x:Name="nUserRef">
|
||||
|
||||
<Grid
|
||||
ColumnDefinitions="250, *">
|
||||
|
||||
<!-- Stars, user profile picture and name -->
|
||||
<Grid Grid.Column="0"
|
||||
ColumnDefinitions="50, 50, 50, 50"
|
||||
RowDefinitions="50, 50"
|
||||
Margin="20">
|
||||
|
||||
<Image Style="{StaticResource Key=starCommentImage}" Grid.Column="0"/>
|
||||
<Image Style="{StaticResource Key=starCommentImage}" Grid.Column="1"/>
|
||||
<Image Style="{StaticResource Key=starCommentImage}" Grid.Column="2"/>
|
||||
<Image Style="{StaticResource Key=starCommentImage}" Grid.Column="3"/>
|
||||
|
||||
<Image Source="person_default.png" Grid.Row="1"/>
|
||||
|
||||
<Label Text="Charles Jacob"
|
||||
Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="1"
|
||||
HorizontalOptions="StartAndExpand" VerticalOptions="Center"
|
||||
HorizontalTextAlignment="Center"/>
|
||||
|
||||
</Grid>
|
||||
|
||||
<!-- Comment content -->
|
||||
<Border Grid.Column="2" Margin="20"
|
||||
BackgroundColor="{AppThemeBinding Light={StaticResource Secondary}, Dark={StaticResource Gray400}}">
|
||||
|
||||
<Label Text="{Binding Comment, Source={x:Reference nUserRef}}"
|
||||
BackgroundColor="{AppThemeBinding Light={StaticResource Secondary}, Dark={StaticResource Gray400}}"
|
||||
TextColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"
|
||||
Margin="20" FontSize="16"/>
|
||||
</Border>
|
||||
|
||||
</Grid>
|
||||
|
||||
</ContentView>
|
@ -0,0 +1,18 @@
|
||||
namespace Views;
|
||||
|
||||
public partial class UserReview : ContentView
|
||||
{
|
||||
public UserReview()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public static readonly BindableProperty CommentProperty =
|
||||
BindableProperty.Create("Comment", typeof(string), typeof(Label), "");
|
||||
|
||||
public string Comment
|
||||
{
|
||||
get => (string)GetValue(CommentProperty);
|
||||
set => SetValue(CommentProperty, value);
|
||||
}
|
||||
}
|
Loading…
Reference in new issue