<Window x:Class="GraphDrawer.GraphByMatrix"
        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:GraphDrawer"
        mc:Ignorable="d"
        Title="Graph Drawer" Height="500" Width="400">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="100"/>
        </Grid.RowDefinitions>
        <TextBox x:Name="MatrixTextBox" TextWrapping="Wrap" AcceptsReturn="True" FontSize="18"/>
        <Grid x:Name="controlGrid" Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <StackPanel>
                <TextBlock Text="Выберите матрицу:" FontSize="18" Margin="5"/>
                <ComboBox Name="ModeSelection" Height="30" Width="150">
                    <ComboBoxItem Content="Матрица смежности"/>
                    <ComboBoxItem Content="Матрица инцидентности"/>
                </ComboBox>
            </StackPanel>
            <StackPanel Grid.Column="1" VerticalAlignment="Center">
                <Button x:Name="submitBtn" Content="Сохранить" Width="100" Height="30" Margin="5" VerticalAlignment="Center" Background="LightBlue" Click="SubmitBtn_Click"/>
                <Button x:Name="backBtn" Content="Назад" Width="100" Height="30" Margin="5" VerticalAlignment="Center" Background="IndianRed"/>
            </StackPanel>
            
        </Grid>
    </Grid>
</Window>
