parent
44e64db510
commit
5b741fa016
@ -0,0 +1,9 @@
|
||||
namespace Views;
|
||||
|
||||
public partial class RecipeReviews : ContentPage
|
||||
{
|
||||
public RecipeReviews()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 1.2 KiB |
@ -0,0 +1,38 @@
|
||||
<?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, *"
|
||||
RowDefinitions="200">
|
||||
|
||||
<!-- Stars, user profile picture and name -->
|
||||
<Grid Grid.Column="0"
|
||||
ColumnDefinitions="50, 50, 50, 50"
|
||||
RowDefinitions="50, 50">
|
||||
|
||||
<Image Source="star_icon.png" Grid.Column="0"/>
|
||||
<Image Source="star_icon.png" Grid.Column="1"/>
|
||||
<Image Source="star_icon.png" Grid.Column="2"/>
|
||||
<Image Source="star_icon.png" 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 -->
|
||||
<Label Text="{Binding Comment, Source={x:Reference nUserRef}}"
|
||||
Grid.Column="2"
|
||||
BackgroundColor="{AppThemeBinding Light={StaticResource Secondary}, Dark={StaticResource Gray400}}"
|
||||
TextColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
|
||||
|
||||
</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