MainWindow.axaml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <Window xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  6. x:Class="_01_02_MDK.MainWindow"
  7. Title="Определитель типа треугольника">
  8. <Grid VerticalAlignment="Center">
  9. <Grid.ColumnDefinitions>
  10. <ColumnDefinition/>
  11. </Grid.ColumnDefinitions>
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="Auto"/>
  14. <RowDefinition Height="Auto"/>
  15. <RowDefinition Height="Auto"/>
  16. <RowDefinition Height="Auto"/>
  17. <RowDefinition Height="Auto"/>
  18. <RowDefinition Height="Auto"/>
  19. </Grid.RowDefinitions>
  20. <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10,0,10" Text="Введите длины сторон треугольников и узнайте его тип прямо сейчас!"/>
  21. <TextBlock Grid.Row="1" HorizontalAlignment="Left" Margin="50,10,0,0" Text="Первая сторона: " Height="20"/>
  22. <TextBox x:Name="firstSide" Grid.Row="1" HorizontalAlignment="Left" Margin="200,10,0,0" Height="20"/>
  23. <TextBlock Grid.Row="2" HorizontalAlignment="Left" Margin="50,10,0,0" Text="Вторая сторона: " Height="20"/>
  24. <TextBox x:Name="secondSide" Grid.Row="2" HorizontalAlignment="Left" Margin="200,10,0,0" Height="20"/>
  25. <TextBlock Grid.Row="3" HorizontalAlignment="Left" Margin="50,10,0,0" Text="Третья сторона: " Height="20"/>
  26. <TextBox x:Name="thirdSide" Grid.Row="3" HorizontalAlignment="Left" Margin="200,10,0,0" Height="20"/>
  27. <Button Grid.Row="4" x:Name="pressedButton" HorizontalAlignment="Center" Click="pressedButton_Click">Определить</Button>
  28. <TextBlock Grid.Row="5" x:Name="typeOfTriangle" HorizontalAlignment="Center" Height="20" Margin="10"></TextBlock>
  29. </Grid>
  30. </Window>