Page2.xaml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <Page x:Class="WpfApp1.Page2"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:WpfApp1"
  7. mc:Ignorable="d"
  8. d:DesignHeight="500" d:DesignWidth="800"
  9. Title="Page2"
  10. Background="Transparent">
  11. <Border Background="AntiqueWhite" HorizontalAlignment="Center" >
  12. <Grid Background="Transparent" Margin="5,5,5,5">
  13. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  14. <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
  15. <Border CornerRadius="10" Background="White" Margin="10 50 10 0">
  16. <StackPanel>
  17. <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="5 5 5 5">
  18. <TextBlock Text="Высота:" Width="130" VerticalAlignment="Center" FontSize="14"/>
  19. <TextBox x:Name="HeightTextBox" Width="330" Height="40" FontSize="22" />
  20. </StackPanel>
  21. <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="5 5 5 5">
  22. <TextBlock Text="Время падения:" Width="130" VerticalAlignment="Center" FontSize="14"/>
  23. <TextBox x:Name="TimeTextBox" Width="330" Height="40" FontSize="22"/>
  24. </StackPanel>
  25. </StackPanel>
  26. </Border>
  27. <Border CornerRadius="10" Background="White" Margin="10 20 10 0">
  28. <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Center">
  29. <Button Grid.Row="2" Margin="10" Content="Рассчитать" Click="CalculateButton_Click" Width="330" Background="#32373d" BorderBrush="#32373d"/>
  30. <Button Grid.Row="2" Margin="10" Content="Стереть" Width="100" Click="Button_Click_1" Style="{StaticResource MaterialDesignFlatButton}" Foreground="Black" BorderBrush="Black"/>
  31. </StackPanel>
  32. </Border>
  33. <Border CornerRadius="10" Background="White" Margin="10 20 10 0">
  34. <StackPanel HorizontalAlignment="Center" >
  35. <Label x:Name="ResultLabel" Grid.Row="3" Margin="10" FontSize="25" Height="170" Width="504" HorizontalAlignment="Stretch" Background="Transparent"/>
  36. </StackPanel>
  37. </Border>
  38. </StackPanel>
  39. </StackPanel>
  40. </Grid>
  41. </Border>
  42. </Page>