diff --git a/sources/PocketBook/AppShell.xaml b/sources/PocketBook/AppShell.xaml index a809d40..fcfd5ee 100644 --- a/sources/PocketBook/AppShell.xaml +++ b/sources/PocketBook/AppShell.xaml @@ -6,7 +6,7 @@ xmlns:local="clr-namespace:PocketBook" Shell.FlyoutBehavior="Disabled" Shell.NavBarIsVisible="False"> - + diff --git a/sources/PocketBook/BookChange.xaml b/sources/PocketBook/BookChange.xaml new file mode 100644 index 0000000..b28fce5 --- /dev/null +++ b/sources/PocketBook/BookChange.xaml @@ -0,0 +1,9 @@ + + + + + + diff --git a/sources/PocketBook/BookChange.xaml.cs b/sources/PocketBook/BookChange.xaml.cs new file mode 100644 index 0000000..e6a704c --- /dev/null +++ b/sources/PocketBook/BookChange.xaml.cs @@ -0,0 +1,30 @@ +namespace PocketBook; + +public partial class BookChange : ContentView +{ + + public static readonly BindableProperty ImageNameProperty= + BindableProperty.Create(nameof(ImageName), typeof(string), typeof(BookChange), string.Empty); + + public static readonly BindableProperty PropertyNameProperty = + BindableProperty.Create(nameof(PropertyName), typeof(string), typeof(BookChange), string.Empty); + + public string ImageName + { + get { return (string)GetValue(ImageNameProperty); } + set { SetValue(ImageNameProperty, value); } + } + + public string PropertyName + { + get { return (string)GetValue(PropertyNameProperty); } + set { SetValue(PropertyNameProperty, value); } + } + + public BookChange() + { + InitializeComponent(); + imageName.SetBinding(Image.SourceProperty, new Binding(nameof(ImageName), source: this)); + propertyName.SetBinding(Label.TextProperty, new Binding(nameof(PropertyName), source: this)); + } +} \ No newline at end of file diff --git a/sources/PocketBook/BookDetail.xaml b/sources/PocketBook/BookDetail.xaml index 557ae34..ad293fb 100644 --- a/sources/PocketBook/BookDetail.xaml +++ b/sources/PocketBook/BookDetail.xaml @@ -2,21 +2,18 @@ - - - - - - + + + @@ -25,13 +22,7 @@ @@ -43,79 +34,61 @@ - - diff --git a/sources/PocketBook/BookDetail.xaml.cs b/sources/PocketBook/BookDetail.xaml.cs index 467e8df..5eca7c2 100644 --- a/sources/PocketBook/BookDetail.xaml.cs +++ b/sources/PocketBook/BookDetail.xaml.cs @@ -4,7 +4,14 @@ public partial class BookDetail : ContentPage { public BookDetail(Book book) { - InitializeComponent(); + InitializeComponent(); + + ToolbarItem item = new ToolbarItem + { + Text = "Add item", + IconImageSource = ImageSource.FromFile("add.png") + }; + this.ToolbarItems.Add(item); titreBook.Text = book.name; bookAuteur.Text = book.auteur; bookEdition.Text = "Fayard (2019)"; diff --git a/sources/PocketBook/PocketBook.csproj b/sources/PocketBook/PocketBook.csproj index 7cc7f9c..37befb6 100644 --- a/sources/PocketBook/PocketBook.csproj +++ b/sources/PocketBook/PocketBook.csproj @@ -56,6 +56,9 @@ MSBuild:Compile + + MSBuild:Compile + MSBuild:Compile diff --git a/sources/PocketBook/Resources/Images/folder.svg b/sources/PocketBook/Resources/Images/folder.svg new file mode 100644 index 0000000..1ca00b4 --- /dev/null +++ b/sources/PocketBook/Resources/Images/folder.svg @@ -0,0 +1,7 @@ + + + + + Svg Vector Icons : http://www.onlinewebfonts.com/icon + + \ No newline at end of file diff --git a/sources/PocketBook/Resources/Images/plus_round.svg b/sources/PocketBook/Resources/Images/plus_round.svg new file mode 100644 index 0000000..33acf06 --- /dev/null +++ b/sources/PocketBook/Resources/Images/plus_round.svg @@ -0,0 +1,7 @@ + + + + + Svg Vector Icons : http://www.onlinewebfonts.com/icon + + \ No newline at end of file