пример создания таблиц.txt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <Grid Background="#09102A">
  2. <!-- Темно-синий цвет фона -->
  3. <Border BorderBrush="#4158AE" BorderThickness="2" CornerRadius="3" Margin="0,45,0,0" Width="630" Height="355" HorizontalAlignment="Center" VerticalAlignment="Center">
  4. <Grid>
  5. <Grid.RowDefinitions>
  6. <RowDefinition/>
  7. <RowDefinition/>
  8. </Grid.RowDefinitions>
  9. <Grid.ColumnDefinitions>
  10. <ColumnDefinition/>
  11. <ColumnDefinition/>
  12. </Grid.ColumnDefinitions>
  13. <!-- Ячейка 1 -->
  14. <Border Grid.Row="0" Grid.Column="0" BorderBrush="Red" BorderThickness="1">
  15. <TextBlock Text="1" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  16. </Border>
  17. <!-- Ячейка 2 -->
  18. <Border Grid.Row="0" Grid.Column="1" BorderBrush="Red" BorderThickness="1">
  19. <TextBlock Text="2" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  20. </Border>
  21. <!-- Ячейка 3 -->
  22. <Border Grid.Row="1" Grid.Column="0" BorderBrush="Red" BorderThickness="1">
  23. <TextBlock Text="3" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  24. </Border>
  25. <!-- Ячейка 4 -->
  26. <Border Grid.Row="1" Grid.Column="1" BorderBrush="Red" BorderThickness="1">
  27. <TextBlock Text="4" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  28. </Border>
  29. </Grid>
  30. </Border>
  31. </Grid>