Gros UC avec 3 petit UC Ok (3xPlat=>Repa)
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
TextOptions.TextRenderingMode="Auto"
|
||||
Background="{DynamicResource MaterialDesignPaper}"
|
||||
FontFamily="{DynamicResource MaterialDesignFont}"
|
||||
Name="wnd">
|
||||
Name="wnd" Closing="wnd_Closing">
|
||||
<Window.Resources>
|
||||
<local:DebugDummyConverter x:Key="DebugDummyConverter" />
|
||||
</Window.Resources>
|
||||
@@ -32,11 +32,11 @@
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<!--<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
µ
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock ></TextBlock>
|
||||
<DockPanel>
|
||||
<ListView x:Name="RepasMatin">
|
||||
<ListView.ItemContainerStyle>
|
||||
@@ -51,10 +51,11 @@
|
||||
</DataTemplate>
|
||||
</ListView.ItemTemplate>
|
||||
</ListView>
|
||||
</DockPanel>
|
||||
</DockPanel>-->
|
||||
<control:Repa x:Name="RepasMatin"></control:Repa>
|
||||
|
||||
<materialDesign:PackIcon Kind="Build" Grid.Column="2" HorizontalAlignment="Right" Cursor="Hand"/>
|
||||
|
||||
|
||||
</Grid>
|
||||
<Grid Grid.Row="1" >
|
||||
<Grid.ColumnDefinitions>
|
||||
@@ -63,15 +64,19 @@
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<control:EventPasse x:Name="EventPasse1" Classement="{Binding Classement}"></control:EventPasse>
|
||||
<control:EventPasse x:Name="EventPasse1" Classement="{Binding Classement}" ></control:EventPasse>
|
||||
<control:EventPasse x:Name="EventPasse2" Classement="{Binding Classement}" Grid.Column="1"></control:EventPasse>
|
||||
<control:EventFutur Grid.Column="2"></control:EventFutur>
|
||||
<control:EventFutur Grid.Column="3"></control:EventFutur>
|
||||
</Grid>
|
||||
|
||||
|
||||
|
||||
<Grid Grid.Row="2" Visibility="Visible">
|
||||
<Border>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="356*"/>
|
||||
<ColumnDefinition Width="147*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border Grid.ColumnSpan="2">
|
||||
<Border.Background>
|
||||
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="OrangeRed" Offset="0" />
|
||||
@@ -79,8 +84,8 @@
|
||||
</LinearGradientBrush>
|
||||
</Border.Background>
|
||||
</Border>
|
||||
<TextBlock Grid.Column="1" Style="{StaticResource MaterialDesignTitleTextBlock}" VerticalAlignment="Center" Height="Auto" Text="Absentéisme ou alerte" />
|
||||
<TextBlock Style="{StaticResource MaterialDesignTitleTextBlock}" VerticalAlignment="Center" Height="Auto" Text="Absentéisme ou alerte" Grid.ColumnSpan="2" Margin="0,9" />
|
||||
</Grid>
|
||||
|
||||
|
||||
</Grid>
|
||||
</Window>
|
||||
|
||||
@@ -16,6 +16,7 @@ using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
using ProjetTheAlone.Model;
|
||||
using ProjetTheAlone.Classes;
|
||||
using ProjetTheAlone.ViewModel;
|
||||
|
||||
namespace ProjetTheAlone.View
|
||||
{
|
||||
@@ -58,7 +59,7 @@ namespace ProjetTheAlone.View
|
||||
EventPasse2.DataContext = EventPasse1.DataContext = Epm;
|
||||
Epm.Classement = Cl;
|
||||
|
||||
FileStream fs = new System.IO.FileStream(@"C:\Users\adrie\Nextcloud\ecole\3IS\POO\ProjetTheAlone\ProjetTheAlone\img\desert.jpg", FileMode.Open, FileAccess.Read);
|
||||
FileStream fs = new System.IO.FileStream(@".\desert.jpg", FileMode.Open, FileAccess.Read);
|
||||
BinaryReader br = new BinaryReader(fs);
|
||||
byte[] result = br.ReadBytes((int)fs.Length);
|
||||
br.Close();
|
||||
@@ -66,15 +67,18 @@ namespace ProjetTheAlone.View
|
||||
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));
|
||||
Rm.Quand = "Matin";
|
||||
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];
|
||||
RepasMatin.DataContext = Rm;
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void wnd_Closing(object sender, System.ComponentModel.CancelEventArgs e)
|
||||
{
|
||||
Accueil.Openaffichage = false;
|
||||
}
|
||||
}
|
||||
public class DebugDummyConverter : IValueConverter
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user