<commit_before>﻿<Window x:Class="UIconEdit.Maker.MainWindow" x:ClassModifier="internal"
        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:UIconEdit.Maker"
        mc:Ignorable="d" x:Name="window" Icon="GradientEdit.ico" SnapsToDevicePixels="True"
        Title="{Binding SettingsFile.LanguageFile.Title, ElementName=window, FallbackValue=UIconEdit}"
        MinHeight="622" MinWidth="654" Height="622" Width="654" Loaded="window_Loaded" Closing="window_Closing" Closed="window_Closed">
    <Window.CommandBindings>
        <CommandBinding Command="ApplicationCommands.Open" CanExecute="CommandBinding_CanExecute" Executed="Open_Executed"/>
        <CommandBinding Command="ApplicationCommands.New" CanExecute="CommandBinding_CanExecute" Executed="New_Executed"/>
        <CommandBinding Command="ApplicationCommands.Save" CanExecute="Save_CanExecute" Executed="Save_Executed"/>
        <CommandBinding Command="ApplicationCommands.SaveAs" CanExecute="SaveAs_CanExecute" Executed="SaveAs_Executed"/>
        <CommandBinding Command="ApplicationCommands.Close" CanExecute="CommandBinding_CanExecute" Executed="Close_Executed"/>
        <CommandBinding Command="{x:Static local:MainWindow.AddCommand}" CanExecute="Add_CanExecute" Executed="Add_Executed"/>
        <CommandBinding Command="{x:Static local:MainWindow.DuplicateCommand}" CanExecute="Duplicate_CanExecute" Executed="Duplicate_Executed"/>
        <CommandBinding Command="{x:Static local:MainWindow.RemoveCommand}" CanExecute="Duplicate_CanExecute" Executed="Remove_Executed"/>
        <CommandBinding Command="{x:Static local:MainWindow.ExportCommand}" CanExecute="Duplicate_CanExecute" Executed="Export_Executed"/>
        <CommandBinding Command="NavigationCommands.FirstPage" CanExecute="NavBack_CanExecute" Executed="FirstPage_Executed"/>
        <CommandBinding Command="NavigationCommands.PreviousPage" CanExecute="NavBack_CanExecute" Executed="PreviousPage_Executed"/>
        <CommandBinding Command="NavigationCommands.NextPage" CanExecute="NavForward_CanExecute" Executed="NextPage_Executed"/>
        <CommandBinding Command="NavigationCommands.LastPage" CanExecute="NavForward_CanExecute" Executed="LastPage_Executed"/>
    </Window.CommandBindings>
    <Window.InputBindings>
        <KeyBinding Key="S" Modifiers="Shift" Command="ApplicationCommands.SaveAs"/>
    </Window.InputBindings>
    <Window.Resources>
        <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
        <local:BPSStringConverter x:Key="BPSStringConverter"/>
        <local:SizeStringConverter x:Key="SizeStringConverter"/>
        <Style x:Key="imgEnabled" TargetType="{x:Type Image}">
            <Style.Triggers>
                <Trigger Property="IsEnabled" Value="false">
                    <Setter Property="Opacity" Value="0.5"/>
                </Trigger>
            </Style.Triggers>
        </Style>
    </Window.Resources>
    <DockPanel>
        <Menu DockPanel.Dock="Top" IsMainMenu="True" Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}">
            <MenuItem Header="{Binding SettingsFile.LanguageFile.MenuFile, ElementName=window, FallbackValue=_File}">
                <MenuItem Command="ApplicationCommands.New" Header="{Binding SettingsFile.LanguageFile.MenuFileNew, ElementName=window, FallbackValue=_New}">
                    <MenuItem.Icon>
                        <Image Source="Resources\New_24x24.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Command="ApplicationCommands.Open" Header="{Binding SettingsFile.LanguageFile.MenuFileOpen, ElementName=window, FallbackValue=_Open}">
                    <MenuItem.Icon>
                        <Image Source="Resources\Open_24x24.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Command="ApplicationCommands.Save" Header="{Binding SettingsFile.LanguageFile.MenuFileSave, ElementName=window, FallbackValue=_Save}">
                    <MenuItem.Icon>
                        <Image Source="Resources\Save_24x24.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Command="ApplicationCommands.SaveAs" Header="{Binding SettingsFile.LanguageFile.MenuFileSaveAs, ElementName=window, FallbackValue=Save _As}"
                          InputGestureText="Ctrl+Shift+S"/>
                <Separator/>
                <MenuItem Command="ApplicationCommands.Close" Header="{Binding SettingsFile.LanguageFile.MenuFileQuit, ElementName=window, FallbackValue=E_xit}"
                          InputGestureText="Alt+F4"/>
            </MenuItem>
            <MenuItem Header="{Binding SettingsFile.LanguageFile.MenuEdit, ElementName=window, FallbackValue=_Edit}">
                <MenuItem Header="{Binding SettingsFile.LanguageFile.MenuEditAdd, ElementName=window, FallbackValue=_Add}" Command="{x:Static local:MainWindow.AddCommand}">
                    <MenuItem.Icon>
                        <Image Source="Resources\Add_24x24.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="{Binding SettingsFile.LanguageFile.MenuEditDup, ElementName=window, FallbackValue=_Duplicate}"
                          Command="{x:Static local:MainWindow.DuplicateCommand}">
                    <MenuItem.Icon>
                        <Image Source="Resources\Copy_24x24.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="{Binding SettingsFile.LanguageFile.MenuEditRem, ElementName=window, FallbackValue=_Remove}"
                          Command="{x:Static local:MainWindow.RemoveCommand}">
                    <MenuItem.Icon>
                        <Image Source="Resources\Delete_24x24.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="{Binding SettingsFile.LanguageFile.MenuEditExp, ElementName=window, FallbackValue=_Export}"
                          Command="{x:Static local:MainWindow.ExportCommand}">
                    <MenuItem.Icon>
                        <Image Source="Resources\Download_24x24.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
                    </MenuItem.Icon>
                </MenuItem>
            </MenuItem>
        </Menu>
        <ToolBar DockPanel.Dock="Top" Height="Auto">
            <Button Command="ApplicationCommands.New" ToolTip="{Binding SettingsFile.LanguageFile.ButtonTipNew, ElementName=window, FallbackValue=New}">
                <Image Source="Resources\New_24x24.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
            </Button>
            <Button Command="ApplicationCommands.Open" ToolTip="{Binding SettingsFile.LanguageFile.ButtonTipOpen, ElementName=window, FallbackValue=Open}">
                <Image Source="Resources\Open_24x24.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
            </Button>
            <Button Command="ApplicationCommands.Save" ToolTip="{Binding SettingsFile.LanguageFile.ButtonTipSave, ElementName=window, FallbackValue=Save}">
                <Image Source="Resources\Save_24x24.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
            </Button>
            <Separator/>
            <Image Source="Resources\Zoom_24x24.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"
                   IsEnabled="{Binding IsLoadedAndSelected, ElementName=window}"/>
            <ComboBox x:Name="cmbZoom" Width="100" IsEditable="True" IsEnabled="{Binding IsLoadedAndSelected, ElementName=window}"
                      Text="{Binding Zoom, ElementName=window, Mode=TwoWay}" PreviewTextInput="ComboBox_PreviewTextInput">
                <ComboBoxItem>3200</ComboBoxItem>
                <ComboBoxItem>2400</ComboBoxItem>
                <ComboBoxItem>2000</ComboBoxItem>
                <ComboBoxItem>1600</ComboBoxItem>
                <ComboBoxItem>1200</ComboBoxItem>
                <ComboBoxItem>1000</ComboBoxItem>
                <ComboBoxItem>800</ComboBoxItem>
                <ComboBoxItem>600</ComboBoxItem>
                <ComboBoxItem>400</ComboBoxItem>
                <ComboBoxItem>300</ComboBoxItem>
                <ComboBoxItem>200</ComboBoxItem>
                <ComboBoxItem>150</ComboBoxItem>
                <ComboBoxItem>100</ComboBoxItem>
                <ComboBoxItem>50</ComboBoxItem>
                <ComboBoxItem>25</ComboBoxItem>
            </ComboBox>
            <TextBlock VerticalAlignment="Center" IsEnabled="{Binding IsLoadedAndSelected, ElementName=window}">%</TextBlock>
            <Separator/>
            <Button Command="NavigationCommands.FirstPage" ToolTip="{Binding SettingsFile.LanguageFile.ButtonTipFirst, ElementName=window, FallbackValue=First}">
                <Image Source="Resources\DArrowBackward.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
            </Button>
            <Button Command="NavigationCommands.PreviousPage" ToolTip="{Binding SettingsFile.LanguageFile.ButtonTipPrev, ElementName=window, FallbackValue=Prev}">
                <Image Source="Resources\ArrowBackward.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
            </Button>
            <Button Command="NavigationCommands.NextPage" ToolTip="{Binding SettingsFile.LanguageFile.ButtonTipNext, ElementName=window, FallbackValue=Next}">
                <Image Source="Resources\ArrowForward.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
            </Button>
            <Button Command="NavigationCommands.LastPage" ToolTip="{Binding SettingsFile.LanguageFile.ButtonTipLast, ElementName=window, FallbackValue=Last}">
                <Image Source="Resources\DArrowForward.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
            </Button>
            <Separator/>
            <Button Command="{x:Static local:MainWindow.AddCommand}" ToolTip="{Binding SettingsFile.LanguageFile.ButtonTipAdd, ElementName=window, FallbackValue=Add}">
                <Image Source="Resources\Add_24x24.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
            </Button>
            <Button Command="{x:Static local:MainWindow.DuplicateCommand}"
                    ToolTip="{Binding SettingsFile.LanguageFile.ButtonTipDup, ElementName=window, FallbackValue=Duplicate}">
                <Image Source="Resources\Copy_24x24.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
            </Button>
            <Button Command="{x:Static local:MainWindow.RemoveCommand}"
                    ToolTip="{Binding SettingsFile.LanguageFile.ButtonTipRem, ElementName=window, FallbackValue=Remove}">
                <Image Source="Resources\Delete_24x24.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
            </Button>
            <Button Command="{x:Static local:MainWindow.ExportCommand}"
                    ToolTip="{Binding SettingsFile.LanguageFile.ButtonTipExp, ElementName=window, FallbackValue=Export}">
                <Image Source="Resources\Download_24x24.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
            </Button>
        </ToolBar>
        <Border BorderThickness="1" BorderBrush="{DynamicResource {x:Static SystemColors.ActiveBorderBrushKey}}" DockPanel.Dock="Left">
            <ScrollViewer>
                <ListBox SelectionMode="Single" x:Name="listbox" ItemsSource="{Binding LoadedFile.Entries, ElementName=window}" Width="80"
                         SelectionChanged="listbox_SelectionChanged">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <Grid Margin="1,2,1,1" HorizontalAlignment="Center">
                                <Grid.RowDefinitions>
                                    <RowDefinition/>
                                    <RowDefinition/>
                                    <RowDefinition/>
                                </Grid.RowDefinitions>
                                <Border BorderThickness="1" Background="{StaticResource TransparentTiles}"
                                        BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}">
                                    <Image Source="{Binding BaseImage}" Width="64" Margin="2" RenderOptions.BitmapScalingMode="NearestNeighbor"/>
                                </Border>
                                <TextBlock Grid.Row="1" HorizontalAlignment="Center">
                                    <TextBlock.Text>
                                        <MultiBinding Converter="{StaticResource BPSStringConverter}">
                                            <Binding ElementName="window" Path="SettingsFile.LanguageFile.FormatBitsPerPixel"/>
                                            <Binding Path="BitsPerPixel"/>
                                        </MultiBinding>
                                    </TextBlock.Text>
                                </TextBlock>
                                <TextBlock Grid.Row="2" HorizontalAlignment="Center">
                                    <TextBlock.Text>
                                        <MultiBinding Converter="{StaticResource SizeStringConverter}">
                                            <Binding ElementName="window" Path="SettingsFile.LanguageFile.FormatSize"/>
                                            <Binding Path="Width"/>
                                            <Binding Path="Height"/>
                                        </MultiBinding>
                                    </TextBlock.Text>
                                </TextBlock>
                            </Grid>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </ScrollViewer>
        </Border>
        <Border BorderThickness="0,1,1,1" BorderBrush="{DynamicResource {x:Static SystemColors.ActiveBorderBrushKey}}">
            <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" x:Name="scrollImage"
                          Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}">
                <Border BorderThickness="1" BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}" x:Name="frameImage"
                        HorizontalAlignment="Center" VerticalAlignment="Center" Margin="8" Background="{StaticResource TransparentTiles}"
                        Visibility="{Binding IsLoadedAndSelected, Converter={StaticResource BooleanToVisibilityConverter}, ElementName=window, Mode=OneWay}">
                    <Image Source="{Binding SelectedItem.BaseImage, ElementName=listbox}" RenderOptions.BitmapScalingMode="{Binding ZoomScaleMode, ElementName=window}"
                           Width="{Binding ZoomedWidth, ElementName=window}" Height="{Binding ZoomedHeight, ElementName=window}" Margin="2"/>
                </Border>
            </ScrollViewer>
        </Border>
    </DockPanel>
</Window>
<commit_msg>Adjusted the sizes of the toolbar-buttons so that they're back to their original size.<commit_after>﻿<Window x:Class="UIconEdit.Maker.MainWindow" x:ClassModifier="internal"
        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:UIconEdit.Maker"
        mc:Ignorable="d" x:Name="window" Icon="GradientEdit.ico" SnapsToDevicePixels="True"
        Title="{Binding SettingsFile.LanguageFile.Title, ElementName=window, FallbackValue=UIconEdit}"
        MinHeight="626" MinWidth="656" Height="624" Width="654" Loaded="window_Loaded" Closing="window_Closing" Closed="window_Closed">
    <Window.CommandBindings>
        <CommandBinding Command="ApplicationCommands.Open" CanExecute="CommandBinding_CanExecute" Executed="Open_Executed"/>
        <CommandBinding Command="ApplicationCommands.New" CanExecute="CommandBinding_CanExecute" Executed="New_Executed"/>
        <CommandBinding Command="ApplicationCommands.Save" CanExecute="Save_CanExecute" Executed="Save_Executed"/>
        <CommandBinding Command="ApplicationCommands.SaveAs" CanExecute="SaveAs_CanExecute" Executed="SaveAs_Executed"/>
        <CommandBinding Command="ApplicationCommands.Close" CanExecute="CommandBinding_CanExecute" Executed="Close_Executed"/>
        <CommandBinding Command="{x:Static local:MainWindow.AddCommand}" CanExecute="Add_CanExecute" Executed="Add_Executed"/>
        <CommandBinding Command="{x:Static local:MainWindow.DuplicateCommand}" CanExecute="Duplicate_CanExecute" Executed="Duplicate_Executed"/>
        <CommandBinding Command="{x:Static local:MainWindow.RemoveCommand}" CanExecute="Duplicate_CanExecute" Executed="Remove_Executed"/>
        <CommandBinding Command="{x:Static local:MainWindow.ExportCommand}" CanExecute="Duplicate_CanExecute" Executed="Export_Executed"/>
        <CommandBinding Command="NavigationCommands.FirstPage" CanExecute="NavBack_CanExecute" Executed="FirstPage_Executed"/>
        <CommandBinding Command="NavigationCommands.PreviousPage" CanExecute="NavBack_CanExecute" Executed="PreviousPage_Executed"/>
        <CommandBinding Command="NavigationCommands.NextPage" CanExecute="NavForward_CanExecute" Executed="NextPage_Executed"/>
        <CommandBinding Command="NavigationCommands.LastPage" CanExecute="NavForward_CanExecute" Executed="LastPage_Executed"/>
    </Window.CommandBindings>
    <Window.InputBindings>
        <KeyBinding Key="S" Modifiers="Shift" Command="ApplicationCommands.SaveAs"/>
    </Window.InputBindings>
    <Window.Resources>
        <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
        <local:BPSStringConverter x:Key="BPSStringConverter"/>
        <local:SizeStringConverter x:Key="SizeStringConverter"/>
        <Style x:Key="imgEnabled" TargetType="{x:Type Image}">
            <Style.Triggers>
                <Trigger Property="IsEnabled" Value="false">
                    <Setter Property="Opacity" Value="0.5"/>
                </Trigger>
            </Style.Triggers>
        </Style>
    </Window.Resources>
    <DockPanel>
        <Menu DockPanel.Dock="Top" IsMainMenu="True" Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}">
            <MenuItem Header="{Binding SettingsFile.LanguageFile.MenuFile, ElementName=window, FallbackValue=_File}">
                <MenuItem Command="ApplicationCommands.New" Header="{Binding SettingsFile.LanguageFile.MenuFileNew, ElementName=window, FallbackValue=_New}">
                    <MenuItem.Icon>
                        <Image Source="Resources\New_24x24.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Command="ApplicationCommands.Open" Header="{Binding SettingsFile.LanguageFile.MenuFileOpen, ElementName=window, FallbackValue=_Open}">
                    <MenuItem.Icon>
                        <Image Source="Resources\Open_24x24.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Command="ApplicationCommands.Save" Header="{Binding SettingsFile.LanguageFile.MenuFileSave, ElementName=window, FallbackValue=_Save}">
                    <MenuItem.Icon>
                        <Image Source="Resources\Save_24x24.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Command="ApplicationCommands.SaveAs" Header="{Binding SettingsFile.LanguageFile.MenuFileSaveAs, ElementName=window, FallbackValue=Save _As}"
                          InputGestureText="Ctrl+Shift+S"/>
                <Separator/>
                <MenuItem Command="ApplicationCommands.Close" Header="{Binding SettingsFile.LanguageFile.MenuFileQuit, ElementName=window, FallbackValue=E_xit}"
                          InputGestureText="Alt+F4"/>
            </MenuItem>
            <MenuItem Header="{Binding SettingsFile.LanguageFile.MenuEdit, ElementName=window, FallbackValue=_Edit}">
                <MenuItem Header="{Binding SettingsFile.LanguageFile.MenuEditAdd, ElementName=window, FallbackValue=_Add}" Command="{x:Static local:MainWindow.AddCommand}">
                    <MenuItem.Icon>
                        <Image Source="Resources\Add_24x24.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="{Binding SettingsFile.LanguageFile.MenuEditDup, ElementName=window, FallbackValue=_Duplicate}"
                          Command="{x:Static local:MainWindow.DuplicateCommand}">
                    <MenuItem.Icon>
                        <Image Source="Resources\Copy_24x24.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="{Binding SettingsFile.LanguageFile.MenuEditRem, ElementName=window, FallbackValue=_Remove}"
                          Command="{x:Static local:MainWindow.RemoveCommand}">
                    <MenuItem.Icon>
                        <Image Source="Resources\Delete_24x24.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="{Binding SettingsFile.LanguageFile.MenuEditExp, ElementName=window, FallbackValue=_Export}"
                          Command="{x:Static local:MainWindow.ExportCommand}">
                    <MenuItem.Icon>
                        <Image Source="Resources\Download_24x24.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
                    </MenuItem.Icon>
                </MenuItem>
            </MenuItem>
        </Menu>
        <ToolBar DockPanel.Dock="Top" Height="Auto">
            <Button Command="ApplicationCommands.New" ToolTip="{Binding SettingsFile.LanguageFile.ButtonTipNew, ElementName=window, FallbackValue=New}">
                <Image Source="Resources\New_24x24.png" Height="24" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
            </Button>
            <Button Command="ApplicationCommands.Open" ToolTip="{Binding SettingsFile.LanguageFile.ButtonTipOpen, ElementName=window, FallbackValue=Open}">
                <Image Source="Resources\Open_24x24.png" Height="24" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
            </Button>
            <Button Command="ApplicationCommands.Save" ToolTip="{Binding SettingsFile.LanguageFile.ButtonTipSave, ElementName=window, FallbackValue=Save}">
                <Image Source="Resources\Save_24x24.png" Height="24" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
            </Button>
            <Separator/>
            <Image Source="Resources\Zoom_24x24.png" Height="20" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"
                   IsEnabled="{Binding IsLoadedAndSelected, ElementName=window}" VerticalAlignment="Center"/>
            <ComboBox x:Name="cmbZoom" Width="100" IsEditable="True" IsEnabled="{Binding IsLoadedAndSelected, ElementName=window}"
                      Text="{Binding Zoom, ElementName=window, Mode=TwoWay}" PreviewTextInput="ComboBox_PreviewTextInput">
                <ComboBoxItem>3200</ComboBoxItem>
                <ComboBoxItem>2400</ComboBoxItem>
                <ComboBoxItem>2000</ComboBoxItem>
                <ComboBoxItem>1600</ComboBoxItem>
                <ComboBoxItem>1200</ComboBoxItem>
                <ComboBoxItem>1000</ComboBoxItem>
                <ComboBoxItem>800</ComboBoxItem>
                <ComboBoxItem>600</ComboBoxItem>
                <ComboBoxItem>400</ComboBoxItem>
                <ComboBoxItem>300</ComboBoxItem>
                <ComboBoxItem>200</ComboBoxItem>
                <ComboBoxItem>150</ComboBoxItem>
                <ComboBoxItem>100</ComboBoxItem>
                <ComboBoxItem>50</ComboBoxItem>
                <ComboBoxItem>25</ComboBoxItem>
            </ComboBox>
            <TextBlock VerticalAlignment="Center" IsEnabled="{Binding IsLoadedAndSelected, ElementName=window}">%</TextBlock>
            <Separator/>
            <Button Command="NavigationCommands.FirstPage" ToolTip="{Binding SettingsFile.LanguageFile.ButtonTipFirst, ElementName=window, FallbackValue=First}">
                <Image Source="Resources\DArrowBackward.png" Height="24" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
            </Button>
            <Button Command="NavigationCommands.PreviousPage" ToolTip="{Binding SettingsFile.LanguageFile.ButtonTipPrev, ElementName=window, FallbackValue=Prev}">
                <Image Source="Resources\ArrowBackward.png" Height="24" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
            </Button>
            <Button Command="NavigationCommands.NextPage" ToolTip="{Binding SettingsFile.LanguageFile.ButtonTipNext, ElementName=window, FallbackValue=Next}">
                <Image Source="Resources\ArrowForward.png" Height="24" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
            </Button>
            <Button Command="NavigationCommands.LastPage" ToolTip="{Binding SettingsFile.LanguageFile.ButtonTipLast, ElementName=window, FallbackValue=Last}">
                <Image Source="Resources\DArrowForward.png" Height="24" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
            </Button>
            <Separator/>
            <Button Command="{x:Static local:MainWindow.AddCommand}" ToolTip="{Binding SettingsFile.LanguageFile.ButtonTipAdd, ElementName=window, FallbackValue=Add}">
                <Image Source="Resources\Add_24x24.png" Height="24" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
            </Button>
            <Button Command="{x:Static local:MainWindow.DuplicateCommand}"
                    ToolTip="{Binding SettingsFile.LanguageFile.ButtonTipDup, ElementName=window, FallbackValue=Duplicate}">
                <Image Source="Resources\Copy_24x24.png" Height="24" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
            </Button>
            <Button Command="{x:Static local:MainWindow.RemoveCommand}"
                    ToolTip="{Binding SettingsFile.LanguageFile.ButtonTipRem, ElementName=window, FallbackValue=Remove}">
                <Image Source="Resources\Delete_24x24.png" Height="24" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
            </Button>
            <Button Command="{x:Static local:MainWindow.ExportCommand}"
                    ToolTip="{Binding SettingsFile.LanguageFile.ButtonTipExp, ElementName=window, FallbackValue=Export}">
                <Image Source="Resources\Download_24x24.png" Height="24" RenderOptions.BitmapScalingMode="HighQuality" Style="{StaticResource imgEnabled}"/>
            </Button>
        </ToolBar>
        <Border BorderThickness="1" BorderBrush="{DynamicResource {x:Static SystemColors.ActiveBorderBrushKey}}" DockPanel.Dock="Left">
            <ScrollViewer>
                <ListBox SelectionMode="Single" x:Name="listbox" ItemsSource="{Binding LoadedFile.Entries, ElementName=window}" Width="80"
                         SelectionChanged="listbox_SelectionChanged">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <Grid Margin="1,2,1,1" HorizontalAlignment="Center">
                                <Grid.RowDefinitions>
                                    <RowDefinition/>
                                    <RowDefinition/>
                                    <RowDefinition/>
                                </Grid.RowDefinitions>
                                <Border BorderThickness="1" Background="{StaticResource TransparentTiles}"
                                        BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}">
                                    <Image Source="{Binding BaseImage}" Width="64" Margin="2" RenderOptions.BitmapScalingMode="NearestNeighbor"/>
                                </Border>
                                <TextBlock Grid.Row="1" HorizontalAlignment="Center">
                                    <TextBlock.Text>
                                        <MultiBinding Converter="{StaticResource BPSStringConverter}">
                                            <Binding ElementName="window" Path="SettingsFile.LanguageFile.FormatBitsPerPixel"/>
                                            <Binding Path="BitsPerPixel"/>
                                        </MultiBinding>
                                    </TextBlock.Text>
                                </TextBlock>
                                <TextBlock Grid.Row="2" HorizontalAlignment="Center">
                                    <TextBlock.Text>
                                        <MultiBinding Converter="{StaticResource SizeStringConverter}">
                                            <Binding ElementName="window" Path="SettingsFile.LanguageFile.FormatSize"/>
                                            <Binding Path="Width"/>
                                            <Binding Path="Height"/>
                                        </MultiBinding>
                                    </TextBlock.Text>
                                </TextBlock>
                            </Grid>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </ScrollViewer>
        </Border>
        <Border BorderThickness="0,1,1,1" BorderBrush="{DynamicResource {x:Static SystemColors.ActiveBorderBrushKey}}">
            <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" x:Name="scrollImage"
                          Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}">
                <Border BorderThickness="1" BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}" x:Name="frameImage"
                        HorizontalAlignment="Center" VerticalAlignment="Center" Margin="8" Background="{StaticResource TransparentTiles}"
                        Visibility="{Binding IsLoadedAndSelected, Converter={StaticResource BooleanToVisibilityConverter}, ElementName=window, Mode=OneWay}">
                    <Image Source="{Binding SelectedItem.BaseImage, ElementName=listbox}" RenderOptions.BitmapScalingMode="{Binding ZoomScaleMode, ElementName=window}"
                           Width="{Binding ZoomedWidth, ElementName=window}" Height="{Binding ZoomedHeight, ElementName=window}" Margin="2"/>
                </Border>
            </ScrollViewer>
        </Border>
    </DockPanel>
</Window>

{'fraction_non_alphanumeric': 0.11117792075040586, 'fraction_numerical': 0.012085863748421622, 'mean_word_length': 2.5778208024093794, 'pattern_counts': {'":': 0, '<': 393, '<?xml version=': 0, '>': 393, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 50, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3373515', 'n_tokens_mistral': 8561, 'n_tokens_neox': 7806, 'n_words': 1164}