<windowManager:ManagedWindow xmlns="https://github.com/avaloniaui"
                             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:windows="clr-namespace:Aaru.Tui.ViewModels.Windows"
                             xmlns:brushes="https://github.com/jinek/consolonia"
                             xmlns:windowManager="clr-namespace:Iciclecreek.Avalonia.WindowManager;assembly=Iciclecreek.Avalonia.WindowManager"
                             xmlns:localization="clr-namespace:Aaru.Tui.Localization"
                             mc:Ignorable="d"
                             d:DesignWidth="800"
                             d:DesignHeight="450"
                             WindowState="FullScreen"
                             CanResize="False"
                             x:Class="Aaru.Tui.Views.Windows.ImageWindow">
    <Design.DataContext>
        <windows:ImageWindowViewModel />
    </Design.DataContext>
    <DockPanel>
        <Menu DockPanel.Dock="Bottom">
            <MenuItem Header="{x:Static localization:Resources.Back_Header}"
                      Command="{Binding BackCommand, Mode=OneWay}"
                      HotKey="Escape" />
            <MenuItem Header="{x:Static localization:Resources.Help_Header}"
                      Command="{Binding HelpCommand, Mode=OneWay}"
                      HotKey="F1" />
            <MenuItem Header="F2      " />
            <MenuItem Header="{x:Static localization:Resources.Exit_Header}"
                      Command="{Binding ExitCommand, Mode=OneWay}"
                      HotKey="F10" />
        </Menu>
        <Border BorderThickness="1">
            <Border.BorderBrush>
                <brushes:LineBrush LineStyle="DoubleLine"
                                   Brush="Blue" />
            </Border.BorderBrush>
            <Grid RowDefinitions="Auto,*,Auto">
                <TextBlock Grid.Row="0"
                           Text="{Binding FilePath, Mode=OneWay}"
                           Foreground="Green"
                           HorizontalAlignment="Center" />
                <Grid ColumnDefinitions="*,*"
                      Grid.Row="1">
                    <TreeView Grid.Column="0"
                              ItemsSource="{Binding Nodes, Mode=OneWay}"
                              BorderThickness="1"
                              SelectedItem="{Binding SelectedNode, Mode=TwoWay}">
                        <TreeView.BorderBrush>
                            <brushes:LineBrush LineStyle="DoubleLine"
                                               Brush="Blue" />
                        </TreeView.BorderBrush>
                        <TreeView.ItemTemplate>
                            <TreeDataTemplate ItemsSource="{Binding SubNodes, Mode=OneWay}">
                                <TextBlock Text="{Binding Title, Mode=OneWay}" />
                            </TreeDataTemplate>
                        </TreeView.ItemTemplate>
                    </TreeView>
                    <Border BorderThickness="1"
                            Grid.Column="1"
                            IsVisible="{Binding IsPartitionInformationVisible, Mode=OneWay}">
                        <Border.BorderBrush>
                            <brushes:LineBrush LineStyle="DoubleLine"
                                               Brush="Blue" />
                        </Border.BorderBrush>
                        <StackPanel HorizontalAlignment="Stretch">
                            <TextBlock Text="{x:Static localization:Resources.PartitionInformation_Text}"
                                       Foreground="SlateBlue"
                                       HorizontalAlignment="Center" />
                            <Grid ColumnDefinitions="Auto,*"
                                  ColumnSpacing="1">
                                <TextBlock Grid.Column="0"
                                           Foreground="SlateBlue"
                                           Text="{x:Static localization:Resources.PartitionSequence_Text}" />
                                <TextBlock Grid.Column="1"
                                           Foreground="LawnGreen"
                                           Text="{Binding PartitionSequence, Mode=OneWay}" />
                            </Grid>
                            <Grid ColumnDefinitions="Auto,*"
                                  ColumnSpacing="1">
                                <TextBlock Grid.Column="0"
                                           Foreground="SlateBlue"
                                           Text="{x:Static localization:Resources.PartitionName_Text}" />
                                <TextBlock Grid.Column="1"
                                           Foreground="DarkGreen"
                                           Text="{Binding PartitionName, Mode=OneWay}" />
                            </Grid>
                            <Grid ColumnDefinitions="Auto,*"
                                  ColumnSpacing="1">
                                <TextBlock Grid.Column="0"
                                           Foreground="SlateBlue"
                                           Text="{x:Static localization:Resources.PartitionType_Text}" />
                                <TextBlock Grid.Column="1"
                                           Foreground="Olive"
                                           Text="{Binding PartitionType, Mode=OneWay}" />
                            </Grid>
                            <Grid ColumnDefinitions="Auto,*"
                                  ColumnSpacing="1">
                                <TextBlock Grid.Column="0"
                                           Foreground="SlateBlue"
                                           Text="{x:Static localization:Resources.PartitionStartingSector_Text}" />
                                <TextBlock Grid.Column="1"
                                           Foreground="Violet"
                                           Text="{Binding PartitionStart, Mode=OneWay}" />
                            </Grid>
                            <Grid ColumnDefinitions="Auto,*"
                                  ColumnSpacing="1">
                                <TextBlock Grid.Column="0"
                                           Foreground="SlateBlue"
                                           Text="{x:Static localization:Resources.PartitionOffset_Text}" />
                                <TextBlock Grid.Column="1"
                                           Foreground="Lime"
                                           Text="{Binding PartitionOffset, Mode=OneWay}" />
                            </Grid>
                            <Grid ColumnDefinitions="Auto,*"
                                  ColumnSpacing="1">
                                <TextBlock Grid.Column="0"
                                           Foreground="SlateBlue"
                                           Text="{x:Static localization:Resources.PartitionLength_Text}" />
                                <TextBlock Grid.Column="1"
                                           Foreground="Violet"
                                           Text="{Binding PartitionLength, Mode=OneWay}" />
                            </Grid>
                            <Grid ColumnDefinitions="Auto,*"
                                  ColumnSpacing="1">
                                <TextBlock Grid.Column="0"
                                           Foreground="SlateBlue"
                                           Text="{x:Static localization:Resources.PartitionSize_Text}" />
                                <TextBlock Grid.Column="1"
                                           Foreground="Lime"
                                           Text="{Binding PartitionSize, Mode=OneWay}" />
                            </Grid>
                            <Grid ColumnDefinitions="Auto,*"
                                  ColumnSpacing="1">
                                <TextBlock Grid.Column="0"
                                           Foreground="SlateBlue"
                                           Text="{x:Static localization:Resources.PartitionScheme_Text}" />
                                <TextBlock Grid.Column="1"
                                           Foreground="Purple"
                                           Text="{Binding PartitionScheme, Mode=OneWay}" />
                            </Grid>
                            <Grid ColumnDefinitions="Auto,*"
                                  ColumnSpacing="1">
                                <TextBlock Grid.Column="0"
                                           Foreground="SlateBlue"
                                           Text="{x:Static localization:Resources.PartitionDescription_Text}" />
                                <TextBlock Grid.Column="1"
                                           Foreground="Fuchsia"
                                           Text="{Binding PartitionDescription, Mode=OneWay}" />
                            </Grid>
                        </StackPanel>
                    </Border>
                    <Border BorderThickness="1"
                            Grid.Column="1"
                            IsVisible="{Binding IsFilesystemInformationVisible, Mode=OneWay}">
                        <Border.BorderBrush>
                            <brushes:LineBrush LineStyle="DoubleLine"
                                               Brush="Blue" />
                        </Border.BorderBrush>
                        <ScrollViewer>
                            <StackPanel>
                                <TextBlock Foreground="SlateBlue"
                                           Text="{x:Static localization:Resources.FilesystemInformation_Text}"
                                           HorizontalAlignment="Center" />
                                <TextBox Background="Transparent"
                                         TextWrapping="Wrap"
                                         Text="{Binding FilesystemInformation, Mode=OneWay}"
                                         IsReadOnly="True" />
                            </StackPanel>
                        </ScrollViewer>
                    </Border>
                </Grid>
                <TextBlock Grid.Row="2"
                           Text="{Binding Status, Mode=OneWay}"
                           IsVisible="{Binding IsStatusVisible, Mode=OneWay}" />
            </Grid>
        </Border>
    </DockPanel>
</windowManager:ManagedWindow>