<Window 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:controls="clr-namespace:Aaru.Gui.Controls"
        xmlns:localization="clr-namespace:Aaru.Localization;assembly=Aaru.Localization"
        xmlns:windows="clr-namespace:Aaru.Gui.ViewModels.Windows"
        mc:Ignorable="d"
        d:DesignWidth="800"
        d:DesignHeight="450"
        x:Class="Aaru.Gui.Views.Windows.IbgLogView"
        x:DataType="windows:IbgLogViewModel"
        Title="{x:Static localization:UI.Title_IMGBurn_log_viewer}">
    <Design.DataContext>
        <windows:IbgLogViewModel />
    </Design.DataContext>
    <Grid RowDefinitions="Auto,*"
          RowSpacing="8"
          Margin="12">
        <ScrollViewer Grid.Row="0"
                      HorizontalScrollBarVisibility="Disabled"
                      VerticalScrollBarVisibility="Auto">
            <StackPanel Orientation="Vertical"
                        Spacing="8">
                <Grid ColumnDefinitions="Auto,*"
                      ColumnSpacing="8">
                    <controls:SpectreTextBlock Grid.Column="0"
                                               Text="{x:Static localization:UI.Title_File_path}" />
                    <controls:SpectreTextBlock Grid.Column="1"
                                               Text="{Binding FilePath, Mode=OneWay}"
                                               TextWrapping="Wrap" />
                </Grid>
                <Grid ColumnDefinitions="Auto,*"
                      ColumnSpacing="8"
                      IsVisible="{Binding Firmware, Converter={x:Static StringConverters.IsNotNullOrEmpty}, Mode=OneWay}">
                    <controls:SpectreTextBlock Grid.Column="0"
                                               Text="{x:Static localization:UI.Title_Firmware}" />
                    <controls:SpectreTextBlock Grid.Column="1"
                                               Text="{Binding Firmware, Mode=OneWay}"
                                               TextWrapping="Wrap" />
                </Grid>
                <Grid ColumnDefinitions="Auto,*"
                      ColumnSpacing="8"
                      IsVisible="{Binding Bus, Converter={x:Static StringConverters.IsNotNullOrEmpty}, Mode=OneWay}">
                    <controls:SpectreTextBlock Grid.Column="0"
                                               Text="{x:Static localization:UI.Title_Bus}" />
                    <controls:SpectreTextBlock Grid.Column="1"
                                               Text="{Binding Bus, Mode=OneWay}"
                                               TextWrapping="Wrap" />
                </Grid>
                <Grid ColumnDefinitions="Auto,*"
                      ColumnSpacing="8"
                      IsVisible="{Binding Date, Converter={x:Static StringConverters.IsNotNullOrEmpty}, Mode=OneWay}">
                    <controls:SpectreTextBlock Grid.Column="0"
                                               Text="{x:Static localization:UI.Title_Date}" />
                    <controls:SpectreTextBlock Grid.Column="1"
                                               Text="{Binding Date, Mode=OneWay}"
                                               TextWrapping="Wrap" />
                </Grid>
                <Grid ColumnDefinitions="Auto,*"
                      ColumnSpacing="8"
                      IsVisible="{Binding MediaSpeeds, Converter={x:Static StringConverters.IsNotNullOrEmpty}, Mode=OneWay}">
                    <controls:SpectreTextBlock Grid.Column="0"
                                               Text="{x:Static localization:UI.Title_Media_speeds}" />
                    <controls:SpectreTextBlock Grid.Column="1"
                                               Text="{Binding MediaSpeeds, Mode=OneWay}"
                                               TextWrapping="Wrap" />
                </Grid>
                <Grid ColumnDefinitions="Auto,*"
                      ColumnSpacing="8"
                      IsVisible="{Binding Capacity, Converter={x:Static StringConverters.IsNotNullOrEmpty}, Mode=OneWay}">
                    <controls:SpectreTextBlock Grid.Column="0"
                                               Text="{x:Static localization:UI.Title_Media_capacity}" />
                    <controls:SpectreTextBlock Grid.Column="1"
                                               Text="{Binding Capacity, Mode=OneWay}"
                                               TextWrapping="Wrap" />
                </Grid>
                <Grid ColumnDefinitions="Auto,*"
                      ColumnSpacing="8"
                      IsVisible="{Binding Imagefile, Converter={x:Static StringConverters.IsNotNullOrEmpty}, Mode=OneWay}">
                    <controls:SpectreTextBlock Grid.Column="0"
                                               Text="{x:Static localization:UI.Title_Image_file}" />
                    <controls:SpectreTextBlock Grid.Column="1"
                                               Text="{Binding Imagefile, Mode=OneWay}"
                                               TextWrapping="Wrap" />
                </Grid>
                <Grid ColumnDefinitions="Auto,*"
                      ColumnSpacing="8"
                      IsVisible="{Binding VolumeIdentifier, Converter={x:Static StringConverters.IsNotNullOrEmpty}, Mode=OneWay}">
                    <controls:SpectreTextBlock Grid.Column="0"
                                               Text="{x:Static localization:UI.Title_Volume_identifier}" />
                    <controls:SpectreTextBlock Grid.Column="1"
                                               Text="{Binding VolumeIdentifier, Mode=OneWay}"
                                               TextWrapping="Wrap" />
                </Grid>
                <Grid ColumnDefinitions="Auto,*"
                      ColumnSpacing="8"
                      IsVisible="{Binding MediaType, Converter={x:Static StringConverters.IsNotNullOrEmpty}, Mode=OneWay}">
                    <controls:SpectreTextBlock Grid.Column="0"
                                               Text="{x:Static localization:UI.Title_Media_type}" />
                    <controls:SpectreTextBlock Grid.Column="1"
                                               Text="{Binding MediaType, Mode=OneWay}"
                                               TextWrapping="Wrap" />
                </Grid>
                <Grid ColumnDefinitions="Auto,*"
                      ColumnSpacing="8"
                      IsVisible="{Binding SpeedStart, Converter={x:Static StringConverters.IsNotNullOrEmpty}, Mode=OneWay}">
                    <controls:SpectreTextBlock Grid.Column="0"
                                               Text="{x:Static localization:UI.Title_Speed_start}" />
                    <controls:SpectreTextBlock Grid.Column="1"
                                               Text="{Binding SpeedStart, Mode=OneWay}"
                                               TextWrapping="Wrap" />
                </Grid>
                <Grid ColumnDefinitions="Auto,*"
                      ColumnSpacing="8"
                      IsVisible="{Binding SpeedEnd, Converter={x:Static StringConverters.IsNotNullOrEmpty}, Mode=OneWay}">
                    <controls:SpectreTextBlock Grid.Column="0"
                                               Text="{x:Static localization:UI.Title_Speed_end}" />
                    <controls:SpectreTextBlock Grid.Column="1"
                                               Text="{Binding SpeedEnd, Mode=OneWay}"
                                               TextWrapping="Wrap" />
                </Grid>
                <Grid ColumnDefinitions="Auto,*"
                      ColumnSpacing="8"
                      IsVisible="{Binding SpeedAverage, Converter={x:Static StringConverters.IsNotNullOrEmpty}, Mode=OneWay}">
                    <controls:SpectreTextBlock Grid.Column="0"
                                               Text="{x:Static localization:UI.Title_Speed_average}" />
                    <controls:SpectreTextBlock Grid.Column="1"
                                               Text="{Binding SpeedAverage, Mode=OneWay}"
                                               TextWrapping="Wrap" />
                </Grid>
                <Grid ColumnDefinitions="Auto,*"
                      ColumnSpacing="8"
                      IsVisible="{Binding TimeTaken, Converter={x:Static StringConverters.IsNotNullOrEmpty}, Mode=OneWay}">
                    <controls:SpectreTextBlock Grid.Column="0"
                                               Text="{x:Static localization:UI.Title_Time_taken}" />
                    <controls:SpectreTextBlock Grid.Column="1"
                                               Text="{Binding TimeTaken, Mode=OneWay}"
                                               TextWrapping="Wrap" />
                </Grid>
            </StackPanel>
        </ScrollViewer>
        <controls:DiscSpeedGraph Grid.Row="1"
                                 SpeedData="{Binding SpeedData, Mode=OneWay}"
                                 MaxSector="{Binding MaxSector, Mode=OneWay}"
                                 MaxSpeed="{Binding MaxSpeed, Mode=OneWay}"
                                 Multiplier="{Binding SpeedMultiplier, Mode=OneWay}" />
    </Grid>
</Window>