MainWindow.axaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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="t8_win_app.MainWindow"
  7. xmlns:local="clr-namespace:AvaloniaFirst"
  8. Title="t8_win_app">
  9. <Grid>
  10. <Grid.ColumnDefinitions>
  11. <ColumnDefinition/>
  12. <ColumnDefinition/>
  13. </Grid.ColumnDefinitions>
  14. <WrapPanel
  15. VerticalAlignment="Center"
  16. HorizontalAlignment="Center"
  17. >
  18. <Button
  19. Width="80"
  20. Height="160"
  21. Content="52"
  22. VerticalContentAlignment="Center"
  23. HorizontalContentAlignment="Center"
  24. Background="Green"/>
  25. <Button
  26. Width="80"
  27. Height="160"
  28. Content="52"
  29. VerticalContentAlignment="Center"
  30. HorizontalContentAlignment="Center"
  31. Background="White"/>
  32. <Button
  33. Width="80"
  34. Height="160"
  35. Content="52"
  36. VerticalContentAlignment="Center"
  37. HorizontalContentAlignment="Center"
  38. Background="Red"/>
  39. </WrapPanel>
  40. <Image
  41. Grid.Column="1"
  42. Source="/img/kS9g5Fbi8mU.jpg"/>
  43. </Grid>
  44. </Window>