ProjetThe/ProjetTheAlone/View/DashBoard.xaml

136 lines
7.7 KiB
Plaintext
Raw Normal View History

2019-01-18 13:08:55 +01:00
<Window x:Class="ProjetTheAlone.View.DashBoard"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:ProjetTheAlone.View"
xmlns:control="clr-namespace:ProjetTheAlone.UserControlDIY"
xmlns:diag="clr-namespace:System.Diagnostics;assembly=WindowsBase"
xmlns:classes="clr-namespace:ProjetTheAlone.Classes"
mc:Ignorable="d"
Title="DashBoard" Height="495.378" Width="1014.286" xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
TextElement.FontWeight="Regular"
TextElement.FontSize="13"
TextOptions.TextFormattingMode="Ideal"
TextOptions.TextRenderingMode="Auto"
Background="{DynamicResource MaterialDesignPaper}"
FontFamily="{DynamicResource MaterialDesignFont}"
Name="wnd" Closing="wnd_Closing" WindowStyle="None" MouseDown="wnd_MouseDown"
Loaded="wnd_Loaded">
2019-01-18 13:08:55 +01:00
<Window.Resources>
<local:DebugDummyConverter x:Key="DebugDummyConverter" />
</Window.Resources>
2019-01-24 22:24:05 +01:00
<Grid x:Name="testQuand">
2019-01-18 13:08:55 +01:00
<Grid.RowDefinitions>
2019-01-24 22:24:05 +01:00
<RowDefinition Height="10*" />
2019-01-18 13:08:55 +01:00
<RowDefinition Height="*" />
</Grid.RowDefinitions>
2019-01-24 22:24:05 +01:00
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
2019-01-25 16:23:52 +01:00
<materialDesign:PackIcon Kind="Close" Grid.Column="2" HorizontalAlignment="Right" Cursor="Hand" MouseDown="PackIcon_MouseDown"/>
2019-01-24 22:24:05 +01:00
<Grid Grid.Column="0">
2019-01-18 13:08:55 +01:00
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
2019-01-24 22:24:05 +01:00
<DataGrid x:Name="dgEventPasse2" ItemsSource="{Binding BcpPlats}" VerticalScrollBarVisibility="Visible"
IsReadOnly="True" AutoGenerateColumns="False" IsEnabled="{Binding ActiverBcpFiche, Mode=OneWay}"
SelectedItem="{Binding PlatSelectionnee, Mode=TwoWay}" Height="auto">
<DataGrid.Columns>
<DataGridTextColumn Visibility="Hidden" Binding="{Binding ID_plat}" />
<DataGridTextColumn Header="Avent Avent Hier" Binding="{Binding P_nom}" Width="*" />
</DataGrid.Columns>
</DataGrid>
<DataGrid x:Name="dgEventPasse1" Grid.Column="1" ItemsSource="{Binding BcpPlats}" VerticalScrollBarVisibility="Visible"
IsReadOnly="True" AutoGenerateColumns="False" IsEnabled="{Binding ActiverBcpFiche, Mode=OneWay}"
SelectedItem="{Binding PlatSelectionnee, Mode=TwoWay}" Grid.Row="1" Height="auto">
<DataGrid.Columns>
<DataGridTextColumn Visibility="Hidden" Binding="{Binding ID_plat}" />
<DataGridTextColumn Header="Avent Hier" Binding="{Binding P_nom}" Width="*" />
</DataGrid.Columns>
</DataGrid>
<DataGrid x:Name="dgEventPasse0" Grid.Column="2" ItemsSource="{Binding BcpPlats}" VerticalScrollBarVisibility="Visible"
IsReadOnly="True" AutoGenerateColumns="False" IsEnabled="{Binding ActiverBcpFiche, Mode=OneWay}"
SelectedItem="{Binding PlatSelectionnee, Mode=TwoWay}" Grid.Row="1" Height="auto">
<DataGrid.Columns>
<DataGridTextColumn Visibility="Hidden" Binding="{Binding ID_plat}" />
<DataGridTextColumn Header="Hier" Binding="{Binding P_nom}" Width="*" />
</DataGrid.Columns>
</DataGrid>
</Grid>
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
2019-01-18 19:04:54 +01:00
</Grid.RowDefinitions>
2019-01-18 13:08:55 +01:00
</Grid>
2019-01-24 22:24:05 +01:00
<Grid Grid.Column="1" >
2019-01-18 13:08:55 +01:00
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
2019-01-24 22:24:05 +01:00
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<TextBlock HorizontalAlignment="Center" Text="{Binding Plat1}"></TextBlock>
<TextBlock HorizontalAlignment="Center" Grid.Column="1">Demain</TextBlock>
<TextBlock HorizontalAlignment="Center" Grid.Column="2">Après demain</TextBlock>
<control:Repa Grid.Row="1" x:Name="RepasAjd" Loaded="RepasMatin_Loaded"></control:Repa>
<control:Repa Grid.Row="1" x:Name="RepasDemain" Grid.Column="1" ></control:Repa>
<control:Repa Grid.Row="1" x:Name="RepasApresDemain" Grid.Column="2" ></control:Repa>
<DataGrid Grid.Row="2" x:Name="dgEventFutur" ItemsSource="{Binding BcpPlats}" VerticalScrollBarVisibility="Visible"
IsReadOnly="True" AutoGenerateColumns="False" IsEnabled="{Binding ActiverBcpFiche, Mode=OneWay}"
SelectedItem="{Binding PlatSelectionnee, Mode=TwoWay}" Height="auto">
<DataGrid.Columns>
<DataGridTextColumn Visibility="Hidden" Binding="{Binding ID_plat}" />
<DataGridTextColumn Header="Avent Avent Hier" Binding="{Binding P_nom}" Width="*" />
</DataGrid.Columns>
</DataGrid>
<DataGrid Grid.Row="2" Grid.Column="1" x:Name="dgEventFutur2" ItemsSource="{Binding BcpPlats}" VerticalScrollBarVisibility="Visible"
IsReadOnly="True" AutoGenerateColumns="False" IsEnabled="{Binding ActiverBcpFiche, Mode=OneWay}"
SelectedItem="{Binding PlatSelectionnee, Mode=TwoWay}" Height="auto">
<DataGrid.Columns>
<DataGridTextColumn Visibility="Hidden" Binding="{Binding ID_plat}" />
<DataGridTextColumn Header="Avent Avent Hier" Binding="{Binding P_nom}" Width="*" />
</DataGrid.Columns>
</DataGrid>
<DataGrid Grid.Row="2" Grid.Column="2" x:Name="dgEventFutur3" ItemsSource="{Binding BcpPlats}" VerticalScrollBarVisibility="Visible"
IsReadOnly="True" AutoGenerateColumns="False" IsEnabled="{Binding ActiverBcpFiche, Mode=OneWay}"
SelectedItem="{Binding PlatSelectionnee, Mode=TwoWay}" Height="auto">
<DataGrid.Columns>
<DataGridTextColumn Visibility="Hidden" Binding="{Binding ID_plat}" />
<DataGridTextColumn Header="Avent Avent Hier" Binding="{Binding P_nom}" Width="*" />
</DataGrid.Columns>
</DataGrid>
<control:EventFutur Grid.Row="2" x:Name="EventFuture1" ></control:EventFutur>
<control:EventFutur Grid.Row="2" x:Name="EventFuture2" Grid.Column="1"></control:EventFutur>
<control:EventFutur Grid.Row="2" x:Name="EventFuture3" Grid.Column="2"></control:EventFutur>
2019-01-18 13:08:55 +01:00
</Grid>
2019-01-24 22:24:05 +01:00
<Grid Grid.Row="2" Visibility="Visible" Grid.ColumnSpan="2">
<Border >
2019-01-18 13:08:55 +01:00
<Border.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="OrangeRed" Offset="0" />
<GradientStop Color="DarkOrange" Offset="1" />
</LinearGradientBrush>
</Border.Background>
</Border>
<TextBlock x:Name="Alert" Style="{StaticResource MaterialDesignTitleTextBlock}" VerticalAlignment="Center" Height="Auto" HorizontalAlignment="Stretch" Text="{Binding TextAfficher}" Grid.ColumnSpan="2" Margin="0,9" />
2019-01-18 13:08:55 +01:00
</Grid>
2019-01-18 13:08:55 +01:00
</Grid>
</Window>