|
|
@ -5,6 +5,7 @@
|
|
|
|
xmlns:view="clr-namespace:LivreLand.View"
|
|
|
|
xmlns:view="clr-namespace:LivreLand.View"
|
|
|
|
xmlns:contentView="clr-namespace:LivreLand.View.ContentViews"
|
|
|
|
xmlns:contentView="clr-namespace:LivreLand.View.ContentViews"
|
|
|
|
xmlns:viewModel="clr-namespace:ViewModels;assembly=ViewModels"
|
|
|
|
xmlns:viewModel="clr-namespace:ViewModels;assembly=ViewModels"
|
|
|
|
|
|
|
|
xmlns:model="clr-namespace:Model;assembly=Model"
|
|
|
|
x:Class="LivreLand.View.DetailsLivreView"
|
|
|
|
x:Class="LivreLand.View.DetailsLivreView"
|
|
|
|
Title="DetailsLivreView">
|
|
|
|
Title="DetailsLivreView">
|
|
|
|
<Grid>
|
|
|
|
<Grid>
|
|
|
@ -19,7 +20,9 @@
|
|
|
|
HeaderBackButtonText="Tous"
|
|
|
|
HeaderBackButtonText="Tous"
|
|
|
|
HeaderPlusButtonVisible="False"
|
|
|
|
HeaderPlusButtonVisible="False"
|
|
|
|
HeaderSwitchButtonVisible="False"
|
|
|
|
HeaderSwitchButtonVisible="False"
|
|
|
|
HeaderColor="{StaticResource HeaderGray}"/>
|
|
|
|
HeaderColor="{StaticResource HeaderGray}"
|
|
|
|
|
|
|
|
ButtonPlusTappedCommand="{Binding DetailsLivreVM.Navigator.PopupHomePlusNavigationCommand}"
|
|
|
|
|
|
|
|
ButtonBackTappedCommand="{Binding DetailsLivreVM.Navigator.PopupBackButtonNavigationCommand}"/>
|
|
|
|
<contentView:SeparatorEntireView/>
|
|
|
|
<contentView:SeparatorEntireView/>
|
|
|
|
</VerticalStackLayout>
|
|
|
|
</VerticalStackLayout>
|
|
|
|
|
|
|
|
|
|
|
@ -300,6 +303,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
</VerticalStackLayout>
|
|
|
|
</VerticalStackLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--Buttons-->
|
|
|
|
<VerticalStackLayout Grid.Row="2">
|
|
|
|
<VerticalStackLayout Grid.Row="2">
|
|
|
|
|
|
|
|
|
|
|
|
<contentView:SeparatorCutStartView/>
|
|
|
|
<contentView:SeparatorCutStartView/>
|
|
|
@ -316,7 +320,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<contentView:SeparatorCutStartView/>
|
|
|
|
<contentView:SeparatorCutStartView/>
|
|
|
|
|
|
|
|
|
|
|
|
<contentView:DetailsLivreButtonView ButtonIcon="rounded_plus"
|
|
|
|
<contentView:DetailsLivreButtonView ButtonIcon="rounded_plus.png"
|
|
|
|
ButtonTitle="Ajouter à la liste À lire plus tard"
|
|
|
|
ButtonTitle="Ajouter à la liste À lire plus tard"
|
|
|
|
ButtonCommand="{Binding DetailsLivreVM.Manager.UpdateToBeReadBookCommand}"
|
|
|
|
ButtonCommand="{Binding DetailsLivreVM.Manager.UpdateToBeReadBookCommand}"
|
|
|
|
ButtonCommandParameter="{Binding DetailsLivreVM.Book}"/>
|
|
|
|
ButtonCommandParameter="{Binding DetailsLivreVM.Book}"/>
|
|
|
@ -325,14 +329,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
<contentView:DetailsLivreButtonView ButtonIcon="eyeglasses.png"
|
|
|
|
<contentView:DetailsLivreButtonView ButtonIcon="eyeglasses.png"
|
|
|
|
ButtonTitle="Changer le statut de lecture"
|
|
|
|
ButtonTitle="Changer le statut de lecture"
|
|
|
|
ButtonCommand="{Binding DetailsLivreVM.Manager.UpdateStatusBookCommand}"/>
|
|
|
|
ButtonCommand="{Binding DetailsLivreVM.ShowPickerCommand}"/>
|
|
|
|
|
|
|
|
|
|
|
|
<contentView:SeparatorCutStartView/>
|
|
|
|
<contentView:SeparatorCutStartView/>
|
|
|
|
|
|
|
|
|
|
|
|
<contentView:DetailsLivreButtonView ButtonIcon="person.png"
|
|
|
|
<contentView:DetailsLivreButtonView ButtonIcon="person.png"
|
|
|
|
ButtonTitle="Prêter le livre"/>
|
|
|
|
ButtonTitle="Prêter le livre"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<contentView:SeparatorCutStartView/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<contentView:DetailsLivreButtonView ButtonTitle="Supprimer le livre"
|
|
|
|
|
|
|
|
ButtonCommand="{Binding DetailsLivreVM.Manager.RemoveBookCommand}"
|
|
|
|
|
|
|
|
ButtonCommandParameter="{Binding DetailsLivreVM.Book}"/>
|
|
|
|
|
|
|
|
|
|
|
|
</VerticalStackLayout>
|
|
|
|
</VerticalStackLayout>
|
|
|
|
<!--Buttons-->
|
|
|
|
|
|
|
|
|
|
|
|
<Picker SelectedItem="{Binding DetailsLivreVM.Manager.SelectedStatus}"
|
|
|
|
|
|
|
|
IsVisible="true"
|
|
|
|
|
|
|
|
Grid.RowSpan="3"
|
|
|
|
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
|
|
|
|
VerticalOptions="Center">
|
|
|
|
|
|
|
|
<Picker.ItemsSource>
|
|
|
|
|
|
|
|
<x:Array Type="{x:Type model:Status}"/>
|
|
|
|
|
|
|
|
</Picker.ItemsSource>
|
|
|
|
|
|
|
|
<Picker.Behaviors>
|
|
|
|
|
|
|
|
<toolkit:EventToCommandBehavior Command="{Binding DetailsLivreVM.Manager.UpdateStatusBookCommand}"
|
|
|
|
|
|
|
|
CommandParameter="{Binding DetailsLivreVM.Book}"/>
|
|
|
|
|
|
|
|
</Picker.Behaviors>
|
|
|
|
|
|
|
|
</Picker>
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</ScrollView>
|
|
|
|
</ScrollView>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|