Hauteur plat non automatique
This commit is contained in:
parent
995fb3068e
commit
8c94a47456
|
@ -19,6 +19,7 @@
|
||||||
<RowDefinition Height="auto" />
|
<RowDefinition Height="auto" />
|
||||||
<RowDefinition Height="*" />
|
<RowDefinition Height="*" />
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<TextBlock Grid.Column="2" Style="{StaticResource MaterialDesignTitleTextBlock}" HorizontalAlignment="Center" Height="Auto" Text="Evenement Futur" />
|
<TextBlock Grid.Column="2" Style="{StaticResource MaterialDesignTitleTextBlock}" HorizontalAlignment="Center" Height="Auto" Text="Nom Evenement Futur" />
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
|
|
@ -32,14 +32,26 @@
|
||||||
<ColumnDefinition />
|
<ColumnDefinition />
|
||||||
<ColumnDefinition />
|
<ColumnDefinition />
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
<ItemsControl x:Name="RepasMatin">
|
<RowDefinition Height="Auto" />
|
||||||
<ItemsControl.ItemTemplate>
|
<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">
|
<DataTemplate DataType="classes:C_T_plat">
|
||||||
<control:Plat ></control:Plat>
|
<control:Plat ></control:Plat>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ItemsControl.ItemTemplate>
|
</ListView.ItemTemplate>
|
||||||
</ItemsControl>
|
</ListView>
|
||||||
|
</DockPanel>
|
||||||
|
|
||||||
<materialDesign:PackIcon Kind="Build" Grid.Column="2" HorizontalAlignment="Right" Cursor="Hand"/>
|
<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);
|
byte[] result = br.ReadBytes((int)fs.Length);
|
||||||
br.Close();
|
br.Close();
|
||||||
fs.Close();
|
fs.Close();
|
||||||
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("Desert", result, null));
|
Rm.ListPlat.Add(new C_T_plat("Plat", 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("Desert", result, null));
|
||||||
Console.WriteLine($"~~~~~~{Rm.ListPlat[0].P_nom}~~~~~~");
|
Console.WriteLine($"~~~~~~{Rm.ListPlat[0].P_nom}~~~~~~");
|
||||||
|
|
||||||
RepasMatin.ItemsSource = Rm.ListPlat;
|
RepasMatin.ItemsSource = Rm.ListPlat;
|
||||||
|
//Test.DataContext = Rm.ListPlat[0];
|
||||||
|
//Test1.DataContext = Rm.ListPlat[1];
|
||||||
|
//Test2.DataContext = Rm.ListPlat[2];
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,16 @@ namespace ProjetTheAlone.ViewModel
|
||||||
public class BasePropriete : INotifyPropertyChanged
|
public class BasePropriete : INotifyPropertyChanged
|
||||||
{
|
{
|
||||||
public event PropertyChangedEventHandler PropertyChanged;
|
public event PropertyChangedEventHandler PropertyChanged;
|
||||||
|
|
||||||
|
protected void OnPropertyChanged(string name)
|
||||||
|
{
|
||||||
|
PropertyChangedEventHandler handler = PropertyChanged;
|
||||||
|
if (handler != null)
|
||||||
|
{
|
||||||
|
handler(this, new PropertyChangedEventArgs(name));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected void NotifyPropertyChanged(String propertyName)
|
protected void NotifyPropertyChanged(String propertyName)
|
||||||
{ PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); }
|
{ PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); }
|
||||||
protected bool AssignerChamp<T>(ref T field, T value, string propertyName)
|
protected bool AssignerChamp<T>(ref T field, T value, string propertyName)
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue