GraphByMatrix.xaml 1.5 KB

12345678910111213141516171819202122232425
  1. <Window x:Class="GraphDrawer.GraphByMatrix"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:GraphDrawer"
  7. mc:Ignorable="d"
  8. Title="Graph Drawer" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" Height="450" Width="500">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition/>
  12. <RowDefinition Height="50"/>
  13. </Grid.RowDefinitions>
  14. <TextBox x:Name="MatrixTextBox" TextWrapping="Wrap" AcceptsReturn="True"/>
  15. <StackPanel Grid.Row="1" Orientation="Horizontal">
  16. <ComboBox Width="150" x:Name="SelectModeComboBox" VerticalAlignment="Center" Margin="10,0,0,0">
  17. <ComboBoxItem Content="Матрица смежности"/>
  18. <ComboBoxItem Content="Матрица инцидентности"/>
  19. </ComboBox>
  20. <TextBlock Text="Разделитель: запятая (,)" VerticalAlignment="Center" Margin="10,0,0,0"/>
  21. <Button x:Name="submitBtn" Content="Сохранить" Height="30" Margin="20,0" Width="80" Background="LightBlue" VerticalAlignment="Center" Click="submitBtn_Click"/>
  22. <Button x:Name="backBtn" Content="Назад" Height="30" Width="60" Margin="5,0" Background="IndianRed" Click="backBtn_Click"/>
  23. </StackPanel>
  24. </Grid>
  25. </Window>