Merge branch 'Binding' of https://codefirst.iut.uca.fr/git/ConsEcoTeam/ConsEco into Binding
continuous-integration/drone/push Build was killed Details

pull/143/head
Hugo LIVET 2 years ago
commit fd34a64857

@ -32,15 +32,15 @@
<ContentView Grid.Row="2" Grid.Column="0" Grid.RowSpan="3" Grid.ColumnSpan="2"> <ContentView Grid.Row="2" Grid.Column="0" Grid.RowSpan="2" Grid.ColumnSpan="2" >
<CollectionView Grid.Row="2" Grid.Column="0" Grid.RowSpan="3" Grid.ColumnSpan="2" ItemsSource="{Binding User.LesBanques}" > <CollectionView Grid.Row="2" Grid.Column="0" Grid.RowSpan="2" Grid.ColumnSpan="2" ItemsSource="{Binding AllBanque}" >
<CollectionView.ItemTemplate> <CollectionView.ItemTemplate>
<DataTemplate> <DataTemplate>
<Grid> <Grid>
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="1.75*"/> <ColumnDefinition Width="1.75*"/>
<ColumnDefinition Width="0.5*"/> <ColumnDefinition Width="0.5*"/>
<ColumnDefinition Width="0.5*"/> <ColumnDefinition Width="1.5*"/>
<ColumnDefinition Width="0.5*"/> <ColumnDefinition Width="0.5*"/>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
@ -49,6 +49,7 @@
FontAttributes="Bold" FontSize="Body" FontAttributes="Bold" FontSize="Body"
HorizontalOptions="Center" HorizontalOptions="Center"
VerticalOptions="Center"/> VerticalOptions="Center"/>
<ImageButton Grid.Column="2" Source="reload_banks.png" <ImageButton Grid.Column="2" Source="reload_banks.png"
Padding="10" Margin="5" Padding="10" Margin="5"
CornerRadius="10" HeightRequest="45" CornerRadius="10" HeightRequest="45"

@ -8,9 +8,13 @@ public partial class CV_HomePage : ContentView
public CV_HomePage() public CV_HomePage()
{ {
InitializeComponent(); InitializeComponent();
Mgr.LoadBanque();
Mgr.LoadCompte();
BindingContext = Mgr; BindingContext = Mgr;
//Mgr.LoadBanques();
} }
} }

@ -39,8 +39,9 @@
<ContentView Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="3" Grid.RowSpan="6" x:Name="mainCV"> <ContentView Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="3" Grid.RowSpan="6" x:Name="mainCV">
<Border Stroke="{StaticResource Corail}" StrokeThickness="4" Margin="10,0,0,0" StrokeShape="RoundRectangle 40,5,5,40"> <Border Stroke="{StaticResource Yellow100Accent}" StrokeThickness="4" Margin="10,0,10,10" StrokeShape="RoundRectangle 45,5,5,45">
</Border> <Image Source="refresh.png"/>
</Border>
</ContentView> </ContentView>

@ -12,7 +12,7 @@ public partial class Dashboard
InitializeComponent(); InitializeComponent();
BindingContext = Mgr.User; BindingContext = Mgr.User;
mainCV.Content = new CV_HomePage();
} }

Loading…
Cancel
Save