<Window x:Class="GetHrzWPF.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="GetHrzWPF"
        Width="600"
        SizeToContent="Height"
        WindowStartupLocation="CenterScreen">
    <Grid Margin="10">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="200"/>
            <ColumnDefinition Width="20"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <!-- Left panel -->
        <StackPanel Grid.Column="0">
            <Button Content="Открыть образ"
                    Margin="10"
                    Padding="12"
                    FontWeight="Bold"
                    Click="OnOpenClickimg"/>
            <Button Content="Открыть USB-flash"
                    Margin="10"
                    Padding="12"
                    FontWeight="Bold"
                    Click="OnOpenClickdisk"/>
            <Rectangle Height="60" Fill="Transparent"/>
            <Button Content="Считать"
                    Margin="10"
                    Padding="12"
                    FontWeight="Bold"
                    Click="GetHrzButton_Click"/>
        </StackPanel>

        <!-- Right panel -->
        <StackPanel Grid.Column="2" VerticalAlignment="Top">
            <Label x:Name="InfoLabel" Content="Здесь будет информация"/>

            <ScrollViewer Height="500" VerticalScrollBarVisibility="Auto">
                <TextBox x:Name="LogBox"
                         AcceptsReturn="True"
                         IsReadOnly="True"
                         FontFamily="Consolas"
                         FontSize="13"
                         TextWrapping="Wrap"
                         VerticalScrollBarVisibility="Auto"/>
            </ScrollViewer>

            <ProgressBar x:Name="ProgressBar"
                         IsIndeterminate="True"
                         Visibility="Collapsed"
                         Height="20"
                         Margin="0,10,0,0"/>
        </StackPanel>
    </Grid>
</Window>
