modification et binding de compte
continuous-integration/drone/push Build is failing Details

pull/143/head
Nicolas MAYE 2 years ago
parent 1ca736aa2f
commit 0a4b1727d8

@ -32,19 +32,13 @@
Text="Modifier le solde"
Style="{StaticResource WindowsButton}"/>
<ListView ItemsSource="{Binding }">
</ListView>
<ContentView BackgroundColor="{StaticResource Yellow300Accent}" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2" Grid.RowSpan="2" x:Name="windowAjout">
<CollectionView ItemsSource="{Binding}" Grid.Row="2" Grid.ColumnSpan="4" Grid.RowSpan="2">
<CollectionView.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
@ -56,22 +50,26 @@
<Label Grid.Column="0" Text="{Binding Nom}"
TextColor="{StaticResource Secondary}"
FontAttributes="Bold" FontSize="Body"
FontAttributes="Bold" FontSize="Large"
HorizontalOptions="Center"
VerticalOptions="Center"/>
<Label Grid.Column="1" Text="{Binding Solde}"
TextColor="{StaticResource Secondary}"
FontAttributes="Bold" FontSize="Body"
FontAttributes="Bold" FontSize="Large"
HorizontalOptions="Center"
VerticalOptions="Center"/>
<Label Grid.Column="1" Text="€"
TextColor="{StaticResource Secondary}"
FontAttributes="Bold" FontSize="Large"
HorizontalOptions="Center"
VerticalOptions="Center"
Margin="120,0,0,0"/>
</Grid>
</Grid>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
</ContentView>

@ -9,7 +9,7 @@ public partial class Compte : ContentView
{
InitializeComponent();
Model.Compte compte = new Model.Compte("", "compte courant", 2000);
Model.Compte compte = new Model.Compte("", "Compte courant", 2000);
BindingContext = compte;

@ -36,7 +36,9 @@ namespace Model
}
public Compte(string id,string nom, double solde) : base()
{
Nom = nom;
Solde = solde;
}
public Compte(string id, string nom, double solde, List<Operation> lesOpe)
{

Loading…
Cancel
Save