Compare commits
1 Commits
master
...
stars-nota
Author | SHA1 | Date |
---|---|---|
|
e793e6db3b | 2 years ago |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 167 B |
@ -1,24 +1,67 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||||
x:Class="LivreLand.View.ContentViews.StarNotationView">
|
x:Class="LivreLand.View.ContentViews.StarNotationView">
|
||||||
|
|
||||||
<HorizontalStackLayout Spacing="2">
|
<Grid ColumnSpacing="2">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Image Source="star.png"
|
||||||
|
HeightRequest="20"
|
||||||
|
WidthRequest="20"
|
||||||
|
Grid.Column="0"/>
|
||||||
<Image Source="star_fill.png"
|
<Image Source="star_fill.png"
|
||||||
HeightRequest="20"
|
HeightRequest="20"
|
||||||
WidthRequest="20"/>
|
WidthRequest="20"
|
||||||
|
Grid.Column="0"
|
||||||
|
IsVisible="{Binding StarNotationVM.Star1IsVisible}"/>
|
||||||
|
|
||||||
|
<Image Source="star.png"
|
||||||
|
HeightRequest="20"
|
||||||
|
WidthRequest="20"
|
||||||
|
Grid.Column="1"/>
|
||||||
<Image Source="star_fill.png"
|
<Image Source="star_fill.png"
|
||||||
HeightRequest="20"
|
HeightRequest="20"
|
||||||
WidthRequest="20"/>
|
WidthRequest="20"
|
||||||
|
Grid.Column="1"
|
||||||
|
IsVisible="{Binding StarNotationVM.Star2IsVisible}"/>
|
||||||
|
|
||||||
|
<Image Source="star.png"
|
||||||
|
HeightRequest="20"
|
||||||
|
WidthRequest="20"
|
||||||
|
Grid.Column="2"/>
|
||||||
<Image Source="star_fill.png"
|
<Image Source="star_fill.png"
|
||||||
HeightRequest="20"
|
HeightRequest="20"
|
||||||
WidthRequest="20"/>
|
WidthRequest="20"
|
||||||
|
Grid.Column="2"
|
||||||
|
IsVisible="{Binding StarNotationVM.Star3IsVisible}"/>
|
||||||
|
|
||||||
|
<Image Source="star.png"
|
||||||
|
HeightRequest="20"
|
||||||
|
WidthRequest="20"
|
||||||
|
Grid.Column="3"/>
|
||||||
<Image Source="star_fill.png"
|
<Image Source="star_fill.png"
|
||||||
HeightRequest="20"
|
HeightRequest="20"
|
||||||
WidthRequest="20"/>
|
WidthRequest="20"
|
||||||
|
Grid.Column="3"
|
||||||
|
IsVisible="{Binding StarNotationVM.Star4IsVisible}"/>
|
||||||
|
|
||||||
<Image Source="star_fill.png"
|
<Image Source="star_fill.png"
|
||||||
HeightRequest="20"
|
HeightRequest="20"
|
||||||
WidthRequest="20"/>
|
WidthRequest="20"
|
||||||
</HorizontalStackLayout>
|
Grid.Column="4"
|
||||||
|
IsVisible="{Binding StarNotationVM.Star5IsVisible}"/>
|
||||||
|
<Image Source="star.png"
|
||||||
|
HeightRequest="20"
|
||||||
|
WidthRequest="20"
|
||||||
|
Grid.Column="4"/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
</ContentView>
|
</ContentView>
|
||||||
|
@ -1,9 +1,30 @@
|
|||||||
|
using LivreLand.ViewModel;
|
||||||
|
|
||||||
namespace LivreLand.View.ContentViews;
|
namespace LivreLand.View.ContentViews;
|
||||||
|
|
||||||
public partial class StarNotationView : ContentView
|
public partial class StarNotationView : ContentView
|
||||||
{
|
{
|
||||||
public StarNotationView()
|
#region Properties
|
||||||
|
|
||||||
|
public static readonly BindableProperty StarNotationProperty = BindableProperty.Create(nameof(StarNotation), typeof(StarNotationVM), typeof(StarNotationView), Application.Current.Handler.MauiContext.Services.GetService<StarNotationVM>());
|
||||||
|
|
||||||
|
public StarNotationVM StarNotation
|
||||||
|
{
|
||||||
|
get { return (StarNotationVM)GetValue(StarNotationProperty); }
|
||||||
|
set { SetValue(StarNotationProperty, value); }
|
||||||
|
}
|
||||||
|
|
||||||
|
public StarNotationVM StarNotationVM { get; private set; }
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Constructor
|
||||||
|
|
||||||
|
public StarNotationView()
|
||||||
{
|
{
|
||||||
|
StarNotationVM = StarNotation;
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
}
|
}
|
Loading…
Reference in new issue