MainWindow.axaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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="task4_styles_second.MainWindow"
  7. Title="task4_styles_second">
  8. <ScrollViewer>
  9. <StackPanel Classes="main">
  10. <TextBlock Classes="text1">Введите дату рождения:</TextBlock>
  11. <StackPanel Classes="birthday">
  12. <DatePicker Name="dpBirthday"></DatePicker>
  13. <Button Classes="bCount" Click="TimeCount">Рассчитать</Button>
  14. </StackPanel>
  15. <StackPanel Classes="timeFromBirthday">
  16. <TextBlock Classes="text1">С вашего дня рождения прошло:</TextBlock>
  17. <Border Classes="tbRamochka">
  18. <TextBlock Classes="text2" Name="tbCount"></TextBlock>
  19. </Border>
  20. <TextBlock Classes="text1">Вы родились в:</TextBlock>
  21. <Border Classes="tbRamochka">
  22. <TextBlock Classes="text2" Name="tbDayWeek"></TextBlock>
  23. </Border>
  24. <TextBlock Classes="text1">Количество високосных лет с тех пор:</TextBlock>
  25. <Border Classes="tbRamochka">
  26. <TextBlock Classes="text2" Name="tbLeapYearsCount"></TextBlock>
  27. </Border>
  28. <TextBlock Classes="text1">Их список:</TextBlock>
  29. <Border Classes="tbRamochka">
  30. <TextBlock Classes="text2" Name="tbLeapYears"></TextBlock>
  31. </Border>
  32. </StackPanel>
  33. <StackPanel Classes="horoskope">
  34. <TextBlock Classes="text1">Выберите гороскоп:</TextBlock>
  35. <RadioButton Name="rb1" Click="DoHoroskope">Знак зодиака</RadioButton>
  36. <RadioButton Name="rb2" Click="DoHoroskope">Восточный гороскоп</RadioButton>
  37. <TextBlock Classes="text1" Name="sign"></TextBlock>
  38. <TextBlock Classes="text1" Name="checkBD">Сначала нужно ввести дату рождения!</TextBlock>
  39. </StackPanel>
  40. </StackPanel>
  41. </ScrollViewer>
  42. </Window>