<!--
// /***************************************************************************
// Aaru Data Preservation Suite
// ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
//
// Filename       : ImageInfo.xaml
// Author(s)      : Natalia Portillo <claunia@claunia.com>
//
// Component      : GUI panel.
//
// ‐‐[ Description ] ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
//
//     Image information panel.
//
// ‐‐[ License ] ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
//
//     This program is free software: you can redistribute it and/or modify
//     it under the terms of the GNU General public License as
//     published by the Free Software Foundation, either version 3 of the
//     License, or (at your option) any later version.
//
//     This program is distributed in the hope that it will be useful,
//     but WITHOUT ANY WARRANTY; without even the implied warranty of
//     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//     GNU General public License for more details.
//
//     You should have received a copy of the GNU General public License
//     along with this program.  If not, see <http://www.gnu.org/licenses/>.
//
// ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
// Copyright © 2011-2025 Natalia Portillo
// ****************************************************************************/
-->
<UserControl 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:panels="clr-namespace:Aaru.Gui.ViewModels.Panels"
             xmlns:localization="clr-namespace:Aaru.Localization;assembly=Aaru.Localization"
             xmlns:controls="clr-namespace:Aaru.Gui.Controls"
             mc:Ignorable="d"
             d:DesignWidth="800"
             d:DesignHeight="450"
             x:Class="Aaru.Gui.Views.Panels.ImageInfo">
    <Design.DataContext>
        <panels:ImageInfoViewModel />
    </Design.DataContext>
    <Grid RowDefinitions="Auto,Auto,Auto,Auto,Auto,*,Auto" Margin="12"
                RowSpacing="8">
        <Border Grid.Row="0" Width="160" Height="160"
                HorizontalAlignment="Center"
                VerticalAlignment="Center"
                Background="LightGray"
                CornerRadius="80"
                Padding="16">
            <Image Width="128"
                   Height="128"
                   Source="{Binding MediaLogo, Mode=OneWay}" />
        </Border>
        <controls:SpectreTextBlock Grid.Row="1" Text="{x:Static localization:UI.Title_Image_information}"
                                   FontWeight="Bold" />
        <controls:SpectreTextBlock Grid.Row="2" Text="{Binding ImagePathText, Mode=OneWay}" />
        <controls:SpectreTextBlock Grid.Row="3" Text="{Binding FilterText, Mode=OneWay}" />
        <controls:SpectreTextBlock Grid.Row="4" Text="{Binding ImageIdentifiedText, Mode=OneWay}" />
        <TabControl Grid.Row="5">
            <TabItem Margin="8">
                <TabItem.Header>
                    <TextBlock Text="{x:Static localization:UI.Title_General}" />
                </TabItem.Header>
                <StackPanel Spacing="8" Margin="8">
                    <controls:SpectreTextBlock Text="{Binding ImageFormatText, Mode=OneWay}"
                                               IsVisible="{Binding !!ImageFormatText, Mode=OneWay}" />
                    <controls:SpectreTextBlock Text="{Binding ApplicationText, Mode=OneWay}"
                                               IsVisible="{Binding !!ApplicationText, Mode=OneWay}" />
                    <controls:SpectreTextBlock Text="{Binding ImageSizeText, Mode=OneWay}"
                                               IsVisible="{Binding !!ImageSizeText, Mode=OneWay}" />
                    <controls:SpectreTextBlock Text="{Binding SectorsText, Mode=OneWay}"
                                               IsVisible="{Binding !!SectorsText, Mode=OneWay}" />
                    <controls:SpectreTextBlock Text="{Binding CreatorText, Mode=OneWay}"
                                               IsVisible="{Binding !!CreatorText, Mode=OneWay}" />
                    <controls:SpectreTextBlock Text="{Binding CreationTimeText, Mode=OneWay}"
                                               IsVisible="{Binding !!CreationTimeText, Mode=OneWay}" />
                    <controls:SpectreTextBlock Text="{Binding LastModificationTimeText, Mode=OneWay}"
                                               IsVisible="{Binding !!LastModificationTimeText, Mode=OneWay}" />
                    <controls:SpectreTextBlock Text="{Binding MediaTypeText, Mode=OneWay}"
                                               IsVisible="{Binding !!MediaTypeText, Mode=OneWay}" />
                    <controls:SpectreTextBlock Text="{Binding HasPartitionsText, Mode=OneWay}"
                                               IsVisible="{Binding !!HasPartitionsText, Mode=OneWay}" />
                    <controls:SpectreTextBlock Text="{Binding HasSessionsText, Mode=OneWay}"
                                               IsVisible="{Binding !!HasSessionsText, Mode=OneWay}" />
                    <controls:SpectreTextBlock Text="{x:Static localization:UI.Title_Comments}"
                                               IsVisible="{Binding !!CommentsText, Mode=OneWay}"
                                               FontWeight="Bold" />
                    <TextBox IsReadOnly="True"
                             TextWrapping="Wrap"
                             Text="{Binding CommentsText, Mode=OneWay}"
                             IsVisible="{Binding !!CommentsText, Mode=OneWay}" />
                    <controls:SpectreTextBlock Text="{x:Static localization:UI.Title_Media_information}"
                                               FontWeight="Bold"
                                               IsVisible="{Binding MediaInformationVisible, Mode=OneWay}" />
                    <controls:SpectreTextBlock Text="{Binding MediaSequenceText, Mode=OneWay}"
                                               IsVisible="{Binding !!MediaSequenceText, Mode=OneWay}" />
                    <controls:SpectreTextBlock Text="{Binding MediaTitleText, Mode=OneWay}"
                                               IsVisible="{Binding !!MediaTitleText, Mode=OneWay}" />
                    <controls:SpectreTextBlock Text="{Binding MediaManufacturerText, Mode=OneWay}"
                                               IsVisible="{Binding !!MediaManufacturerText, Mode=OneWay}" />
                    <controls:SpectreTextBlock Text="{Binding MediaModelText, Mode=OneWay}"
                                               IsVisible="{Binding !!MediaModelText, Mode=OneWay}" />
                    <controls:SpectreTextBlock Text="{Binding MediaSerialNumberText, Mode=OneWay}"
                                               IsVisible="{Binding !!MediaSerialNumberText, Mode=OneWay}" />
                    <controls:SpectreTextBlock Text="{Binding MediaBarcodeText, Mode=OneWay}"
                                               IsVisible="{Binding !!MediaBarcodeText, Mode=OneWay}" />
                    <controls:SpectreTextBlock Text="{Binding MediaPartNumberText, Mode=OneWay}"
                                               IsVisible="{Binding !!MediaPartNumberText, Mode=OneWay}" />
                    <controls:SpectreTextBlock Text="{x:Static localization:UI.Title_Drive_information}"
                                               FontWeight="Bold"
                                               IsVisible="{Binding DriveInformationVisible, Mode=OneWay}" />
                    <controls:SpectreTextBlock Text="{Binding DriveManufacturerText, Mode=OneWay}"
                                               IsVisible="{Binding !!DriveManufacturerText, Mode=OneWay}" />
                    <controls:SpectreTextBlock Text="{Binding DriveModelText, Mode=OneWay}"
                                               IsVisible="{Binding !!DriveModelText, Mode=OneWay}" />
                    <controls:SpectreTextBlock Text="{Binding DriveSerialNumberText, Mode=OneWay}"
                                               IsVisible="{Binding !!DriveSerialNumberText, Mode=OneWay}" />
                    <controls:SpectreTextBlock Text="{Binding DriveFirmwareRevisionText, Mode=OneWay}"
                                               IsVisible="{Binding !!DriveFirmwareRevisionText, Mode=OneWay}" />
                    <controls:SpectreTextBlock Text="{Binding MediaGeometryText, Mode=OneWay}"
                                               IsVisible="{Binding !!MediaGeometryText, Mode=OneWay}" />
                    <controls:SpectreTextBlock Text="{x:Static localization:UI.Title_Readable_media_tags}"
                                               FontWeight="Bold"
                                               IsVisible="{Binding !!MediaTagsList.Count, Mode=OneWay}" />
                    <ListBox ItemsSource="{Binding MediaTagsList, Mode=OneWay}"
                             IsVisible="{Binding !!MediaTagsList.Count, Mode=OneWay}"
                             MaxHeight="300"
                             BorderThickness="1"
                             BorderBrush="Gray">
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <TextBlock Text="{Binding ., Mode=OneWay}"
                                           Padding="5" />
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>
                    <controls:SpectreTextBlock Text="{x:Static localization:UI.Title_Readable_sector_tags}"
                                               FontWeight="Bold"
                                               IsVisible="{Binding !!SectorTagsList.Count, Mode=OneWay}" />
                    <ListBox ItemsSource="{Binding SectorTagsList, Mode=OneWay}"
                             IsVisible="{Binding !!SectorTagsList.Count, Mode=OneWay}"
                             MaxHeight="300"
                             BorderThickness="1"
                             BorderBrush="Gray">
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <TextBlock Text="{Binding ., Mode=OneWay}"
                                           Padding="5" />
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>
                </StackPanel>
            </TabItem>
            <TabItem IsVisible="{Binding !!Sessions.Count, Mode=OneWay}">
                <TabItem.Header>
                    <TextBlock Text="{x:Static localization:UI.Title_Sessions}" />
                </TabItem.Header>
                <DataGrid ItemsSource="{Binding Sessions, Mode=OneWay}"
                          IsVisible="{Binding !!Sessions.Count, Mode=OneWay}"
                          IsReadOnly="True"
                          VerticalAlignment="Stretch"
                          HorizontalAlignment="Stretch" Margin="8">
                    <DataGrid.Columns>
                        <DataGridTemplateColumn Width="*">
                            <DataGridTemplateColumn.HeaderTemplate>
                                <DataTemplate>
                                    <controls:SpectreTextBlock Text="{x:Static localization:Core.Title_Session}"
                                                               Padding="5"
                                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.HeaderTemplate>
                            <DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding Sequence, Mode=OneWay}"
                                               Padding="5"
                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.CellTemplate>
                        </DataGridTemplateColumn>
                        <DataGridTemplateColumn Width="*">
                            <DataGridTemplateColumn.HeaderTemplate>
                                <DataTemplate>
                                    <controls:SpectreTextBlock Text="{x:Static localization:Core.Title_First_track}"
                                                               Padding="5"
                                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.HeaderTemplate>
                            <DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding StartTrack, Mode=OneWay}"
                                               Padding="5"
                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.CellTemplate>
                        </DataGridTemplateColumn>
                        <DataGridTemplateColumn Width="*">
                            <DataGridTemplateColumn.HeaderTemplate>
                                <DataTemplate>
                                    <controls:SpectreTextBlock Text="{x:Static localization:Core.Title_Last_track}"
                                                               Padding="5"
                                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.HeaderTemplate>
                            <DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding EndTrack, Mode=OneWay}"
                                               Padding="5"
                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.CellTemplate>
                        </DataGridTemplateColumn>
                        <DataGridTemplateColumn Width="*">
                            <DataGridTemplateColumn.HeaderTemplate>
                                <DataTemplate>
                                    <controls:SpectreTextBlock Text="{x:Static localization:Core.Title_Start}"
                                                               Padding="5"
                                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.HeaderTemplate>
                            <DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding StartSector, Mode=OneWay}"
                                               Padding="5"
                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.CellTemplate>
                        </DataGridTemplateColumn>
                        <DataGridTemplateColumn Width="*">
                            <DataGridTemplateColumn.HeaderTemplate>
                                <DataTemplate>
                                    <controls:SpectreTextBlock Text="{x:Static localization:Core.Title_End}"
                                                               Padding="5"
                                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.HeaderTemplate>
                            <DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding EndSector, Mode=OneWay}"
                                               Padding="5"
                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.CellTemplate>
                        </DataGridTemplateColumn>
                    </DataGrid.Columns>
                </DataGrid>
            </TabItem>
            <TabItem IsVisible="{Binding !!Tracks.Count, Mode=OneWay}">
                <TabItem.Header>
                    <TextBlock Text="{x:Static localization:UI.Title_Tracks}" />
                </TabItem.Header>
                <DataGrid ItemsSource="{Binding Tracks, Mode=OneWay}"
                          IsVisible="{Binding !!Tracks.Count, Mode=OneWay}"
                          IsReadOnly="True"
                          VerticalAlignment="Stretch"
                          HorizontalAlignment="Stretch" Margin="8">
                    <DataGrid.Columns>
                        <DataGridTemplateColumn Width="*">
                            <DataGridTemplateColumn.HeaderTemplate>
                                <DataTemplate>
                                    <controls:SpectreTextBlock Text="{x:Static localization:Core.Title_Track}"
                                                               Padding="5"
                                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.HeaderTemplate>
                            <DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding Sequence, Mode=OneWay}"
                                               Padding="5"
                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.CellTemplate>
                        </DataGridTemplateColumn>
                        <DataGridTemplateColumn Width="*">
                            <DataGridTemplateColumn.HeaderTemplate>
                                <DataTemplate>
                                    <controls:SpectreTextBlock Text="{x:Static localization:UI.Title_Type}"
                                                               Padding="5"
                                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.HeaderTemplate>
                            <DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding Type, Mode=OneWay}"
                                               Padding="5"
                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.CellTemplate>
                        </DataGridTemplateColumn>
                        <DataGridTemplateColumn Width="*">
                            <DataGridTemplateColumn.HeaderTemplate>
                                <DataTemplate>
                                    <controls:SpectreTextBlock Text="{x:Static localization:Core.Title_Bps}"
                                                               Padding="5"
                                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.HeaderTemplate>
                            <DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding BytesPerSector, Mode=OneWay}"
                                               Padding="5"
                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.CellTemplate>
                        </DataGridTemplateColumn>
                        <DataGridTemplateColumn Width="*">
                            <DataGridTemplateColumn.HeaderTemplate>
                                <DataTemplate>
                                    <controls:SpectreTextBlock Text="{x:Static localization:Core.Title_Raw_bps}"
                                                               Padding="5"
                                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.HeaderTemplate>
                            <DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding RawBytesPerSector, Mode=OneWay}"
                                               Padding="5"
                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.CellTemplate>
                        </DataGridTemplateColumn>
                        <DataGridTemplateColumn Width="*">
                            <DataGridTemplateColumn.HeaderTemplate>
                                <DataTemplate>
                                    <controls:SpectreTextBlock Text="{x:Static localization:Core.Title_Subchannel}"
                                                               Padding="5"
                                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.HeaderTemplate>
                            <DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding SubchannelType, Mode=OneWay}"
                                               Padding="5"
                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.CellTemplate>
                        </DataGridTemplateColumn>
                        <DataGridTemplateColumn Width="*">
                            <DataGridTemplateColumn.HeaderTemplate>
                                <DataTemplate>
                                    <controls:SpectreTextBlock Text="{x:Static localization:Core.Title_Pregap}"
                                                               Padding="5"
                                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.HeaderTemplate>
                            <DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding Pregap, Mode=OneWay}"
                                               Padding="5"
                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.CellTemplate>
                        </DataGridTemplateColumn>
                        <DataGridTemplateColumn Width="*">
                            <DataGridTemplateColumn.HeaderTemplate>
                                <DataTemplate>
                                    <controls:SpectreTextBlock Text="{x:Static localization:Core.Title_Start}"
                                                               Padding="5"
                                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.HeaderTemplate>
                            <DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding StartSector, Mode=OneWay}"
                                               Padding="5"
                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.CellTemplate>
                        </DataGridTemplateColumn>
                        <DataGridTemplateColumn Width="*">
                            <DataGridTemplateColumn.HeaderTemplate>
                                <DataTemplate>
                                    <controls:SpectreTextBlock Text="{x:Static localization:Core.Title_End}"
                                                               Padding="5"
                                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.HeaderTemplate>
                            <DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding EndSector, Mode=OneWay}"
                                               Padding="5"
                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.CellTemplate>
                        </DataGridTemplateColumn>
                    </DataGrid.Columns>
                </DataGrid>
            </TabItem>
            <TabItem IsVisible="{Binding !!DumpHardwareList.Count, Mode=OneWay}">
                <TabItem.Header>
                    <TextBlock Text="{x:Static localization:UI.Title_Dump_hardware}" />
                </TabItem.Header>
                <DataGrid ItemsSource="{Binding DumpHardwareList, Mode=OneWay}"
                          IsVisible="{Binding !!DumpHardwareList.Count, Mode=OneWay}"
                          IsReadOnly="True" Margin="8">
                    <DataGrid.Columns>
                        <DataGridTemplateColumn Width="*">
                            <DataGridTemplateColumn.HeaderTemplate>
                                <DataTemplate>
                                    <controls:SpectreTextBlock Text="{x:Static localization:UI.Title_Manufacturer}"
                                                               Padding="5"
                                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.HeaderTemplate>
                            <DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding Manufacturer, Mode=OneWay}"
                                               Padding="5"
                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.CellTemplate>
                        </DataGridTemplateColumn>
                        <DataGridTemplateColumn Width="*">
                            <DataGridTemplateColumn.HeaderTemplate>
                                <DataTemplate>
                                    <controls:SpectreTextBlock Text="{x:Static localization:UI.Title_Model}"
                                                               Padding="5"
                                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.HeaderTemplate>
                            <DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding Model, Mode=OneWay}"
                                               Padding="5"
                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.CellTemplate>
                        </DataGridTemplateColumn>
                        <DataGridTemplateColumn Width="*">
                            <DataGridTemplateColumn.HeaderTemplate>
                                <DataTemplate>
                                    <controls:SpectreTextBlock Text="{x:Static localization:UI.Title_Revision}"
                                                               Padding="5"
                                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.HeaderTemplate>
                            <DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding Revision, Mode=OneWay}"
                                               Padding="5"
                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.CellTemplate>
                        </DataGridTemplateColumn>
                        <DataGridTemplateColumn Width="*">
                            <DataGridTemplateColumn.HeaderTemplate>
                                <DataTemplate>
                                    <controls:SpectreTextBlock Text="{x:Static localization:UI.Serial}"
                                                               Padding="5"
                                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.HeaderTemplate>
                            <DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding Serial, Mode=OneWay}"
                                               Padding="5"
                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.CellTemplate>
                        </DataGridTemplateColumn>
                        <DataGridTemplateColumn Width="*">
                            <DataGridTemplateColumn.HeaderTemplate>
                                <DataTemplate>
                                    <controls:SpectreTextBlock Text="{x:Static localization:UI.Title_Software}"
                                                               Padding="5"
                                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.HeaderTemplate>
                            <DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding SoftwareName, Mode=OneWay}"
                                               Padding="5"
                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.CellTemplate>
                        </DataGridTemplateColumn>
                        <DataGridTemplateColumn Width="*">
                            <DataGridTemplateColumn.HeaderTemplate>
                                <DataTemplate>
                                    <controls:SpectreTextBlock Text="{x:Static localization:UI.Title_Version}"
                                                               Padding="5"
                                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.HeaderTemplate>
                            <DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding SoftwareVersion, Mode=OneWay}"
                                               Padding="5"
                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.CellTemplate>
                        </DataGridTemplateColumn>
                        <DataGridTemplateColumn Width="*">
                            <DataGridTemplateColumn.HeaderTemplate>
                                <DataTemplate>
                                    <controls:SpectreTextBlock Text="{x:Static localization:UI.Title_Operating_system}"
                                                               Padding="5"
                                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.HeaderTemplate>
                            <DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding OperatingSystem, Mode=OneWay}"
                                               Padding="5"
                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.CellTemplate>
                        </DataGridTemplateColumn>
                        <DataGridTemplateColumn Width="*">
                            <DataGridTemplateColumn.HeaderTemplate>
                                <DataTemplate>
                                    <controls:SpectreTextBlock Text="{x:Static localization:Core.Title_Start}"
                                                               Padding="5"
                                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.HeaderTemplate>
                            <DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding Start, Mode=OneWay}"
                                               Padding="5"
                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.CellTemplate>
                        </DataGridTemplateColumn>
                        <DataGridTemplateColumn Width="*">
                            <DataGridTemplateColumn.HeaderTemplate>
                                <DataTemplate>
                                    <controls:SpectreTextBlock Text="{x:Static localization:Core.Title_End}"
                                                               Padding="5"
                                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.HeaderTemplate>
                            <DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding End, Mode=OneWay}"
                                               Padding="5"
                                               VerticalAlignment="Center" />
                                </DataTemplate>
                            </DataGridTemplateColumn.CellTemplate>
                        </DataGridTemplateColumn>
                    </DataGrid.Columns>
                </DataGrid>
            </TabItem>
            <TabItem IsVisible="{Binding !!ScsiInfo, Mode=OneWay}">
                <TabItem.Header>
                    <TextBlock Text="{x:Static localization:UI.Title_SCSI}" />
                </TabItem.Header>
                <ContentControl Content="{Binding ScsiInfo, Mode=OneWay}" Margin="8" />
            </TabItem>
            <TabItem IsVisible="{Binding !!AtaInfo, Mode=OneWay}">
                <TabItem.Header>
                    <TextBlock Text="{x:Static localization:UI.Title_ATA_ATAPI}" />
                </TabItem.Header>
                <ContentControl Content="{Binding AtaInfo, Mode=OneWay}" Margin="8" />
            </TabItem>
            <TabItem IsVisible="{Binding !!CompactDiscInfo, Mode=OneWay}">
                <TabItem.Header>
                    <TextBlock Text="{x:Static localization:Core.Title_CompactDisc}" />
                </TabItem.Header>
                <ContentControl Content="{Binding CompactDiscInfo, Mode=OneWay}" Margin="8" />
            </TabItem>
            <TabItem IsVisible="{Binding !!DvdInfo, Mode=OneWay}">
                <TabItem.Header>
                    <TextBlock Text="{x:Static localization:Core.Title_DVD_HD_DVD}" />
                </TabItem.Header>
                <ContentControl Content="{Binding DvdInfo, Mode=OneWay}" Margin="8" />
            </TabItem>
            <TabItem IsVisible="{Binding !!DvdWritableInfo, Mode=OneWay}">
                <TabItem.Header>
                    <TextBlock Text="{x:Static localization:Core.Title_DVD_Plus_Dash_R_W}" />
                </TabItem.Header>
                <ContentControl Content="{Binding DvdWritableInfo, Mode=OneWay}" Margin="8" />
            </TabItem>
            <TabItem IsVisible="{Binding !!BlurayInfo, Mode=OneWay}">
                <TabItem.Header>
                    <TextBlock Text="{x:Static localization:Core.Title_Blu_ray}" />
                </TabItem.Header>
                <ContentControl Content="{Binding BlurayInfo, Mode=OneWay}" Margin="8" />
            </TabItem>
            <TabItem IsVisible="{Binding !!PcmciaInfo, Mode=OneWay}">
                <TabItem.Header>
                    <TextBlock Text="{x:Static localization:UI.Title_PCMCIA}" />
                </TabItem.Header>
                <ContentControl Content="{Binding PcmciaInfo, Mode=OneWay}" Margin="8" />
            </TabItem>
            <TabItem IsVisible="{Binding !!SdMmcInfo, Mode=OneWay}">
                <TabItem.Header>
                    <TextBlock Text="{x:Static localization:UI.Title_SD_MMC}" />
                </TabItem.Header>
                <ContentControl Content="{Binding SdMmcInfo, Mode=OneWay}" Margin="8" />
            </TabItem>
            <TabItem IsVisible="{Binding !!XboxInfo, Mode=OneWay}">
                <TabItem.Header>
                    <TextBlock Text="{x:Static localization:Core.Title_Xbox}" />
                </TabItem.Header>
                <ContentControl Content="{Binding XboxInfo, Mode=OneWay}" Margin="8" />
            </TabItem>
        </TabControl>
        <StackPanel Grid.Row="6" Orientation="Horizontal"
                    Spacing="8" VerticalAlignment="Bottom" HorizontalAlignment="Right">
            <Button Command="{Binding EntropyCommand, Mode=OneWay}">
                <TextBlock Text="{x:Static localization:UI.ButtonLabel_Calculate_entropy}" />
            </Button>
            <Button Command="{Binding VerifyCommand, Mode=OneWay}">
                <TextBlock Text="{x:Static localization:UI.ButtonLabel_Verify}" />
            </Button>
            <Button Command="{Binding ChecksumCommand, Mode=OneWay}">
                <TextBlock Text="{x:Static localization:UI.ButtonLabel_Checksum}" />
            </Button>
            <Button Command="{Binding ConvertCommand, Mode=OneWay}">
                <TextBlock Text="{x:Static localization:UI.ButtonLabel_Convert_to}" />
            </Button>
            <Button Command="{Binding CreateSidecarCommand, Mode=OneWay}">
                <TextBlock Text="{x:Static localization:UI.ButtonLabel_Create_Aaru_Metadata_sidecar}" />
            </Button>
            <Button Command="{Binding ViewSectorsCommand, Mode=OneWay}">
                <TextBlock Text="{x:Static localization:UI.ButtonLabel_View_sectors}" />
            </Button>
            <Button Command="{Binding DecodeMediaTagCommand, Mode=OneWay}">
                <TextBlock Text="{x:Static localization:UI.ButtonLabel_Decode_media_tags}" />
            </Button>
        </StackPanel>
    </Grid>
</UserControl>