12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <Page x:Class="WpfApp1.Page2"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:WpfApp1"
- mc:Ignorable="d"
- d:DesignHeight="500" d:DesignWidth="800"
- Title="Page2"
- Background="Transparent">
- <Border Background="AntiqueWhite" HorizontalAlignment="Center" >
- <Grid Background="Transparent" Margin="5,5,5,5">
- <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
- <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
- <Border CornerRadius="10" Background="White" Margin="10 50 10 0">
- <StackPanel>
- <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="5 5 5 5">
- <TextBlock Text="Высота:" Width="130" VerticalAlignment="Center" FontSize="14"/>
- <TextBox x:Name="HeightTextBox" Width="330" Height="40" FontSize="22" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="5 5 5 5">
- <TextBlock Text="Время падения:" Width="130" VerticalAlignment="Center" FontSize="14"/>
- <TextBox x:Name="TimeTextBox" Width="330" Height="40" FontSize="22"/>
- </StackPanel>
- </StackPanel>
- </Border>
-
- <Border CornerRadius="10" Background="White" Margin="10 20 10 0">
- <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Center">
- <Button Grid.Row="2" Margin="10" Content="Рассчитать" Click="CalculateButton_Click" Width="330" Background="#32373d" BorderBrush="#32373d"/>
- <Button Grid.Row="2" Margin="10" Content="Стереть" Width="100" Click="Button_Click_1" Style="{StaticResource MaterialDesignFlatButton}" Foreground="Black" BorderBrush="Black"/>
- </StackPanel>
- </Border>
- <Border CornerRadius="10" Background="White" Margin="10 20 10 0">
- <StackPanel HorizontalAlignment="Center" >
- <Label x:Name="ResultLabel" Grid.Row="3" Margin="10" FontSize="25" Height="170" Width="504" HorizontalAlignment="Stretch" Background="Transparent"/>
- </StackPanel>
- </Border>
- </StackPanel>
- </StackPanel>
- </Grid>
- </Border>
- </Page>
|