<Window x:Class="IHM.MainWindow"
        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:IHM"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Grid>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="0.30*"/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>


        

        <StackPanel Grid.Column="0"  Background="{StaticResource CouleurPrincipale}">

            <Image Source="images/logo.png" Margin="10" Grid.Column="0" Grid.Row="0" Width="75"/>
            
            <Button Content="Tableau de bord" Style="{StaticResource BoutonMain}" IsDefault="True"/>
            <Button Click="Button_Click_Compte" Content="Compte" Style="{StaticResource BoutonMain}"/>
            <Button Click="Button_Click_Operation" Content="Opérations" Style="{StaticResource BoutonMain}"/>
            <Button Click="Button_Click_Echeancier" Content="Echéancier" Style="{StaticResource BoutonMain}"/>
            <Button Click="Button_Click_Plannification" Content="Plannification" Style="{StaticResource BoutonMain}"/>

        
        </StackPanel>

        <ContentControl x:Name="contentControl" 
                        DataContext="{Binding Nav}" 
                        Content="{Binding SelectedUserControlCreator.Value,Converter={StaticResource Func2WpConv}}"
                        Grid.Column="1" Grid.Row="1"/>

    </Grid>
</Window>
