diff --git a/src/BookApp/AppShell.xaml b/src/BookApp/AppShell.xaml index 9b032c7..fb3d58b 100644 --- a/src/BookApp/AppShell.xaml +++ b/src/BookApp/AppShell.xaml @@ -5,7 +5,10 @@ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:BookApp" Shell.FlyoutBehavior="Disabled"> + + + @@ -19,7 +22,7 @@ - + diff --git a/src/BookApp/BookApp.csproj b/src/BookApp/BookApp.csproj index 4b3f268..1454c6a 100644 --- a/src/BookApp/BookApp.csproj +++ b/src/BookApp/BookApp.csproj @@ -68,16 +68,23 @@ + - - ContentCollection.xaml + + RatingView.xaml + + + DetailBook.xaml - + + MSBuild:Compile + + MSBuild:Compile diff --git a/src/BookApp/Composants/RatingView.xaml b/src/BookApp/Composants/RatingView.xaml new file mode 100644 index 0000000..29395d3 --- /dev/null +++ b/src/BookApp/Composants/RatingView.xaml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/BookApp/Composants/RatingView.xaml.cs b/src/BookApp/Composants/RatingView.xaml.cs new file mode 100644 index 0000000..1beddf5 --- /dev/null +++ b/src/BookApp/Composants/RatingView.xaml.cs @@ -0,0 +1,22 @@ +using BookApp.Model; + +namespace BookApp.Composants; + +public partial class RatingView : ContentView +{ + public static readonly BindableProperty RatingProperty = + BindableProperty.Create(nameof(Rating), typeof(Star), typeof(RatingView), default(Star), BindingMode.TwoWay); + + public Star Rating + { + get { return (Star)GetValue(RatingProperty); } + set { SetValue(RatingProperty, value); } + } + + + public RatingView() + { + InitializeComponent(); + this.BindingContext = this; + } +} diff --git a/src/BookApp/ContentView/ContentCollection.xaml b/src/BookApp/ContentView/ContentCollection.xaml deleted file mode 100644 index 17569dd..0000000 --- a/src/BookApp/ContentView/ContentCollection.xaml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - -