<Application x:Class="ReAct_PME.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
             xmlns:local="clr-namespace:ReAct_PME"
             StartupUri="MainWindow.xaml">
    <Application.Resources>
        <!-- Référence aux styles de base fournis -->
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Styles/SimpleStyles.xaml"/>

                <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.Indigo.xaml" />

            </ResourceDictionary.MergedDictionaries>

            <!-- Implémentation pour personnalisation des ComboBox-->
            <Style x:Key="ComboBoxStyle" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource SimpleComboBox}">
                <Setter Property="FontFamily" Value="Britannic Bold"></Setter>
                <Setter Property="FontSize" Value="12"></Setter>
                <Setter Property="Height" Value="19"></Setter>
            </Style>

            <!-- Implémentation pour personnalisation des Button-->
            <Style x:Key="ButtonStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource SimpleButton}">
                <Setter Property="FontFamily" Value="Britannic Bold"></Setter>
                <Setter Property="FontSize" Value="12"></Setter>
                <Setter Property="Height" Value="19"></Setter>
            </Style>

            <!--Style pour ListeView (non hérité)-->
            <Style x:Key="ListViewStyle" TargetType="{x:Type ListView}">
                <Setter Property="Background">
                    <Setter.Value>
                        <SolidColorBrush Color="White" Opacity="0.8"/>
                    </Setter.Value>
                </Setter>
            </Style>

            <!-- Style pour ListViewItem (non hérité)-->
            <Style x:Key="AlternatingListViewItemStyle" TargetType="{x:Type ListViewItem}">
                <Setter Property="MinHeight" Value="25"/>
                <Setter Property="Height" Value="30"/>
                <Setter Property="Padding" Value="2"/>
                <Setter Property="ToolTip" Value="{Binding Path=Information}"/>
                <Setter Property="IsSelected" Value="{Binding Path=IsSelectedInView, UpdateSourceTrigger=PropertyChanged}" />
                <Setter Property="Background">
                    <Setter.Value>
                        <SolidColorBrush Color="White" Opacity="0.8"/>
                    </Setter.Value>
                </Setter>
                <Style.Triggers>
                    <Trigger Property="ItemsControl.AlternationIndex" Value="1">
                        <Setter Property="Background" Value="LightGray"></Setter>
                        <Setter Property="FontWeight" Value="Bold"/>
                        <Setter Property="Opacity" Value="0.7"></Setter>
                    </Trigger>
                    <Trigger Property="ItemsControl.AlternationIndex" Value="0">
                        <Setter Property="Background" Value="White"></Setter>
                        <Setter Property="FontWeight" Value="Bold"/>
                        <Setter Property="Opacity" Value="0.7"></Setter>
                    </Trigger>
                    <Trigger Property="IsMouseOver" Value="True">
                        <Setter Property="Background" Value="Gray"/>
                        <Setter Property="Foreground" Value="White"/>
                        <Setter Property="FontWeight" Value="Bold"/>
                        <Setter Property="Opacity" Value="1"/>
                    </Trigger>
                    <Trigger Property="IsFocused" Value="True">
                        <Setter Property="Background" Value="DarkGray"/>
                        <Setter Property="Foreground" Value="White"/>
                        <Setter Property="FontWeight" Value="Bold"/>
                        <Setter Property="Opacity" Value="1"/>
                    </Trigger>
                    <Trigger Property="IsSelected" Value="True">
                        <Setter Property="Background" Value="DeepSkyBlue"/>
                        <Setter Property="Foreground" Value="White"/>
                        <Setter Property="Opacity" Value="1"/>
                    </Trigger>
                </Style.Triggers>
            </Style>

            <!--Style pour Listebox (non hérité)-->
            <Style x:Key="ListBoxStyle" TargetType="{x:Type ListBox}">
                <Setter Property="Background">
                    <Setter.Value>
                        <SolidColorBrush Color="White" Opacity="0.8"/>
                    </Setter.Value>
                </Setter>
            </Style>

            <!-- Style pour ListBoxItem (non hérité)-->
            <Style x:Key="AlternatingListBoxItemStyle" TargetType="{x:Type ListBoxItem}">
                <Style.Triggers>
                    <Trigger Property="ItemsControl.AlternationIndex" Value="1">
                        <Setter Property="Background" Value="LightGray"></Setter>
                        <Setter Property="Foreground" Value="Black"></Setter>
                        <Setter Property="Opacity" Value="0.7"></Setter>
                    </Trigger>
                    <Trigger Property="ItemsControl.AlternationIndex" Value="0">
                        <Setter Property="Background" Value="White"></Setter>
                        <Setter Property="Foreground" Value="Black"></Setter>
                        <Setter Property="Opacity" Value="0.7"></Setter>
                    </Trigger>
                    <Trigger Property="ItemsControl.IsMouseOver" Value="True">
                        <Setter Property="ItemsControl.Background" Value="Gray"/>
                        <Setter Property="ItemsControl.Foreground" Value="White"/>
                        <Setter Property="ItemsControl.Opacity" Value="1"/>
                    </Trigger>
                    <Trigger Property="ItemsControl.IsFocused" Value="True">
                        <Setter Property="ItemsControl.Background" Value="Black"/>
                        <Setter Property="ItemsControl.Foreground" Value="White"/>
                        <Setter Property="ItemsControl.Opacity" Value="1"/>
                    </Trigger>
                </Style.Triggers>
            </Style>

            <!--Style pour TextBox (hérité)-->
            <Style x:Key="TextBoxStyle" TargetType="{x:Type TextBox}" BasedOn="{StaticResource SimpleTextBox}">
                <Setter Property="FontFamily" Value="Dubai Medium"></Setter>
                <Setter Property="FontSize" Value="14"></Setter>
                <Setter Property="Height" Value="19"></Setter>
                <Setter Property="Background" Value="#FFE2DEDE"></Setter>
                <Setter Property="FontWeight" Value="Bold"></Setter>
            </Style>

            <!--Style pour TreeView (non hérité)-->
            <Style x:Key="TreeViewStyle" TargetType="{x:Type TreeView}">
                <Setter Property="Background">
                    <Setter.Value>
                        <SolidColorBrush Color="LightGray" Opacity="0.5"/>
                    </Setter.Value>
                </Setter>
            </Style>



        </ResourceDictionary>
    </Application.Resources>
</Application>
