<Window x:Class="FasdDesktopUi.Pages.RawHealthCardValuesPage.RawHealthCardValuesPage"
        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:FasdDesktopUi.Pages.RawHealthCardValuesPage"
        xmlns:ico="clr-namespace:FasdDesktopUi.Basics.UserControls.AdaptableIcon;assembly=F4SD-AdaptableIcon"
        xmlns:vc="clr-namespace:FasdDesktopUi.Basics.Converter"
        mc:Ignorable="d"
        Title="F4SD Raw healthcard values"
        Height="800" Width="1024"
        MinHeight="800" MinWidth="1024" Loaded="Window_Loaded"
        >
    <WindowChrome.WindowChrome>
        <WindowChrome CaptionHeight="20" />
    </WindowChrome.WindowChrome>
    <Window.Resources>
        <vc:LanguageDefinitionsConverter x:Key="LanguageConverter" />
        <Style x:Key="AdaptableIconButtonStyle" TargetType="ico:AdaptableIcon">
            <Setter Property="Cursor" Value="Hand" />
            <Setter Property="PrimaryIconColor" Value="{DynamicResource Color.Menu.Icon}" />
            <Setter Property="Margin" Value="7.5 0" />
            <Setter Property="BorderPadding" Value="0" />
            <Setter Property="IconHeight" Value="25" />
            <Setter Property="IconWidth" Value="25" />
            <Style.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="PrimaryIconColor" Value="{DynamicResource Color.Menu.Icon.Hover}" />
                </Trigger>
            </Style.Triggers>
        </Style>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="45"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="20"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="20"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="20"/>
        </Grid.ColumnDefinitions>

        <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal">
            <TextBlock VerticalAlignment="Center" FontSize="12" Margin="0,0,0,0" Text="Dieter Sagawe | PC010089" />
            <TextBlock VerticalAlignment="Center" Margin="20,0,0,0" FontSize="12" Text="Origin filter:" />
            <ComboBox Name="OriginFilterComboBox" Width="150" Height="28" FontSize="12" Margin="5,0,0,0" SelectionChanged="OriginFilterComboBox_SelectionChanged">
                <ComboBoxItem Content="All" IsSelected="True"/>
                <ComboBoxItem Content="Main"/>
                <ComboBoxItem Content="Active Directory"/>
                <ComboBoxItem Content="Azure AD"/>
                <ComboBoxItem Content="F4SD Agent"/>
                <ComboBoxItem Content="Intune"/>
                <ComboBoxItem Content="Citrix"/>
                <ComboBoxItem Content="Matrix42"/>
            </ComboBox>
        </StackPanel>
        <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal"  HorizontalAlignment="Right"  VerticalAlignment="Center" WindowChrome.IsHitTestVisibleInChrome="True">
            <ico:AdaptableIcon x:Name="MinimizeButton"
                               Style="{StaticResource AdaptableIconButtonStyle}"
                               BorderPadding="0 10 0 0"
                               VerticalAlignment="Bottom"
                               MouseUp="MinimizeButton_Click"
                               TouchDown="MinimizeButton_Click"
                               ToolTip="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=Global.NavBar.Minimize}"
                               SelectedInternIcon="window_minimize" />

            <ico:AdaptableIcon x:Name="WindowSizeButton"
                               MouseUp="WindowSizeButton_Click"
                               TouchDown="WindowSizeButton_Click">

                <ico:AdaptableIcon.Resources>
                    <Style TargetType="ico:AdaptableIcon"
                           BasedOn="{StaticResource AdaptableIconButtonStyle}">
                        <Setter Property="SelectedInternIcon"
                                Value="window_fullscreen" />
                        <Setter Property="ToolTip"
                                Value="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=Global.NavBar.Maximize}" />
                        <Style.Triggers>
                            <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=Window}, Path=WindowState}"
                                         Value="Normal">
                                <Setter Property="SelectedInternIcon"
                                        Value="window_fullscreen" />
                            </DataTrigger>
                            <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=Window}, Path=WindowState}"
                                         Value="Maximized">
                                <Setter Property="SelectedInternIcon"
                                        Value="window_fullscreenExit" />
                                <Setter Property="ToolTip"
                                        Value="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=Global.NavBar.UnMaximize}" />
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>
                </ico:AdaptableIcon.Resources>
            </ico:AdaptableIcon>

            <ico:AdaptableIcon x:Name="CloseButton"
                               Style="{StaticResource AdaptableIconButtonStyle}"
                               HorizontalAlignment="Right"
                               VerticalAlignment="Center"
                               ToolTip="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=Global.NavBar.Close}"
                               MouseUp="CloseButton_Click"
                               TouchDown="CloseButton_Click"
                               SelectedInternIcon="window_close" />
        </StackPanel>
        <TreeView Grid.Row="1" Grid.Column="1" Name="RawValuesTreeView" />
    </Grid>
</Window>
