|
|
@ -4,23 +4,7 @@
|
|
|
|
xmlns:composants="clr-namespace:BookApp.Composants"
|
|
|
|
xmlns:composants="clr-namespace:BookApp.Composants"
|
|
|
|
xmlns:model="clr-namespace:Model;assembly=Model"
|
|
|
|
xmlns:model="clr-namespace:Model;assembly=Model"
|
|
|
|
x:Class="BookApp.Composants.GroupCollection">
|
|
|
|
x:Class="BookApp.Composants.GroupCollection">
|
|
|
|
<ContentView.Resources>
|
|
|
|
|
|
|
|
<Style TargetType="StackLayout">
|
|
|
|
|
|
|
|
<Setter Property="VisualStateManager.VisualStateGroups">
|
|
|
|
|
|
|
|
<VisualStateGroupList>
|
|
|
|
|
|
|
|
<VisualStateGroup x:Name="CommonStates">
|
|
|
|
|
|
|
|
<VisualState x:Name="Normal" />
|
|
|
|
|
|
|
|
<VisualState x:Name="Selected">
|
|
|
|
|
|
|
|
<VisualState.Setters>
|
|
|
|
|
|
|
|
<Setter Property="BackgroundColor"
|
|
|
|
|
|
|
|
Value="Transparent" />
|
|
|
|
|
|
|
|
</VisualState.Setters>
|
|
|
|
|
|
|
|
</VisualState>
|
|
|
|
|
|
|
|
</VisualStateGroup>
|
|
|
|
|
|
|
|
</VisualStateGroupList>
|
|
|
|
|
|
|
|
</Setter>
|
|
|
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
</ContentView.Resources>
|
|
|
|
|
|
|
|
<CollectionView ItemsSource="{Binding bookViewModel.AuteurGroups}" IsGrouped="True" SelectionMode="Single"
|
|
|
|
<CollectionView ItemsSource="{Binding bookViewModel.AuteurGroups}" IsGrouped="True" SelectionMode="Single"
|
|
|
|
SelectionChangedCommand="{Binding ViewModelNavigation.BookSelected}"
|
|
|
|
SelectionChangedCommand="{Binding ViewModelNavigation.BookSelected}"
|
|
|
|
SelectedItem="{Binding ViewModelNavigation.SelectedBook}">
|
|
|
|
SelectedItem="{Binding ViewModelNavigation.SelectedBook}">
|
|
|
@ -36,7 +20,7 @@
|
|
|
|
</CollectionView.GroupHeaderTemplate>
|
|
|
|
</CollectionView.GroupHeaderTemplate>
|
|
|
|
<CollectionView.ItemTemplate>
|
|
|
|
<CollectionView.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<StackLayout>
|
|
|
|
<StackLayout Style="{StaticResource StyleCollectionStack}">
|
|
|
|
<Grid>
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|