MainWindow.axaml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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="AvaloniaApplication3.MainWindow"
  7. Title="AvaloniaApplication3">
  8. <Grid Background="#2F2FA2">
  9. <Image Source="C:\Users\user\Desktop\AvaloniaApplication3\AvaloniaApplication3\258c0307-f9a8-478e-8bc5-df632c8996ba.png" Stretch="Fill" />
  10. <Border
  11. HorizontalAlignment="Center" VerticalAlignment="Center"
  12. CornerRadius="10"
  13. Background="White"
  14. Opacity="0.8"
  15. Padding="20">
  16. <StackPanel Name="WritePanel">
  17. <StackPanel Margin="10">
  18. <TextBlock>Добро пожаловать! Введите дату рождения </TextBlock>
  19. </StackPanel>
  20. <StackPanel Margin="10" HorizontalAlignment="Center">
  21. <DatePicker x:Name="DatePicker"></DatePicker>
  22. </StackPanel>
  23. <StackPanel Margin="10" HorizontalAlignment="Center">
  24. <Button x:Name="Button" Classes="test" Grid.Column="0" Grid.Row="0" Margin="5" Padding="10" FontSize="16">Узнать</Button>
  25. </StackPanel>
  26. <StackPanel Margin="10" HorizontalAlignment="Center">
  27. <TextBlock Text="Что ты хочешь узнать?" TextAlignment="Center" FontSize="18" />
  28. </StackPanel>
  29. <Grid Margin="10">
  30. <Grid.ColumnDefinitions>
  31. <ColumnDefinition Width="Auto" />
  32. <ColumnDefinition Width="*" />
  33. <ColumnDefinition Width="Auto" />
  34. </Grid.ColumnDefinitions>
  35. <Grid.RowDefinitions>
  36. <RowDefinition Height="Auto" />
  37. </Grid.RowDefinitions>
  38. <Button x:Name="ZodiacButton" Classes="test" Grid.Column="0" Grid.Row="0" Margin="5" Padding="10" FontSize="16">Знак Зодиака</Button>
  39. <Button x:Name="ChineseZodiacButton" Classes="test" Grid.Column="2" Grid.Row="0" Margin="5" Padding="10" FontSize="16">Восточный Гороскоп</Button>
  40. </Grid>
  41. <StackPanel Margin="10">
  42. <TextBlock x:Name="ResultTextBlock" Text="" TextAlignment="Center" FontSize="16" />
  43. <TextBlock x:Name="ZodiacTextBlock" Grid.Column="0" Grid.Row="1" Margin="5" FontSize="16" />
  44. <TextBlock x:Name="ChineseZodiacTextBlock" Grid.Column="2" Grid.Row="1" Margin="5" FontSize="16" />
  45. </StackPanel>
  46. </StackPanel>
  47. </Border>
  48. </Grid>
  49. </Window>