Hauteur plat non automatique
This commit is contained in:
@@ -32,14 +32,26 @@
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<ItemsControl x:Name="RepasMatin">
|
||||
<ItemsControl.ItemTemplate>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
µ
|
||||
</Grid.RowDefinitions>
|
||||
<DockPanel>
|
||||
<ListView x:Name="RepasMatin">
|
||||
<ListView.ItemContainerStyle>
|
||||
<Style TargetType="{x:Type ListViewItem}">
|
||||
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
||||
<Setter Property="Height" Value="65"/>
|
||||
</Style>
|
||||
</ListView.ItemContainerStyle>
|
||||
<ListView.ItemTemplate>
|
||||
<DataTemplate DataType="classes:C_T_plat">
|
||||
<control:Plat ></control:Plat>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
</ListView.ItemTemplate>
|
||||
</ListView>
|
||||
</DockPanel>
|
||||
|
||||
<materialDesign:PackIcon Kind="Build" Grid.Column="2" HorizontalAlignment="Right" Cursor="Hand"/>
|
||||
|
||||
|
||||
@@ -63,13 +63,15 @@ namespace ProjetTheAlone.View
|
||||
byte[] result = br.ReadBytes((int)fs.Length);
|
||||
br.Close();
|
||||
fs.Close();
|
||||
Rm.ListPlat.Add(new C_T_plat("Desert", result, null));
|
||||
Rm.ListPlat.Add(new C_T_plat("Desert", result, null));
|
||||
Rm.ListPlat.Add(new C_T_plat("Desert", result, null));
|
||||
Rm.ListPlat.Add(new C_T_plat("Entrée", result, null));
|
||||
Rm.ListPlat.Add(new C_T_plat("Plat", result, null));
|
||||
Rm.ListPlat.Add(new C_T_plat("Desert", result, null));
|
||||
Console.WriteLine($"~~~~~~{Rm.ListPlat[0].P_nom}~~~~~~");
|
||||
|
||||
RepasMatin.ItemsSource = Rm.ListPlat;
|
||||
//Test.DataContext = Rm.ListPlat[0];
|
||||
//Test1.DataContext = Rm.ListPlat[1];
|
||||
//Test2.DataContext = Rm.ListPlat[2];
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user