Grid.xaml
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:2k
源码类别:

对话框与窗口

开发平台:

Visual C++

  1. <Page xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml' >
  2. <Grid VerticalAlignment="Center" HorizontalAlignment="Center">
  3. <Grid.ColumnDefinitions>
  4. <ColumnDefinition MinWidth="50"/>
  5. <ColumnDefinition MinWidth="50"/>
  6. <ColumnDefinition MinWidth="50"/>
  7. </Grid.ColumnDefinitions>
  8. <Grid.RowDefinitions>
  9. <RowDefinition MinHeight="50"/>
  10. <RowDefinition MinHeight="50"/>
  11. <RowDefinition MinHeight="50"/>
  12. </Grid.RowDefinitions>
  13. <Border Background="Red"  Grid.Column = "0">
  14. <TextBlock VerticalAlignment="Top" HorizontalAlignment="Left">1</TextBlock>
  15. </Border>
  16. <Border Background="Blue" Grid.Column = "1">
  17. <TextBlock HorizontalAlignment="Center">2</TextBlock>
  18. </Border>
  19. <Border Background="Green" Grid.Row = "0" Grid.Column = "2">
  20. <TextBlock VerticalAlignment="Top" HorizontalAlignment="Right" >3</TextBlock>
  21. </Border>
  22. <Border Background="Yellow" Grid.Row = "1" Grid.Column = "0">
  23. <TextBlock VerticalAlignment="Center" HorizontalAlignment="Left">4</TextBlock>
  24. </Border>
  25. <Border Background="White" Grid.Row = "1" Grid.Column = "1" Cursor="Hand">
  26. <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center">5</TextBlock>
  27. </Border>
  28. <Border Background="Orange" Grid.Row = "1" Grid.Column = "2">
  29. <TextBlock VerticalAlignment="Center" HorizontalAlignment="Right">6</TextBlock>
  30. </Border>
  31. <Border Background="Cyan" Grid.Row = "2" Grid.Column = "0">
  32. <TextBlock VerticalAlignment="Bottom" HorizontalAlignment="Left">7</TextBlock>
  33. </Border>
  34. <Border Background="Gray" Grid.Row = "2" Grid.Column = "1">
  35. <TextBlock VerticalAlignment="Bottom" HorizontalAlignment="Center">8</TextBlock>
  36. </Border>
  37. <Border Background="LightGreen" Grid.Row = "2" Grid.Column = "2">
  38. <TextBlock VerticalAlignment="Bottom" HorizontalAlignment="Right">9</TextBlock>
  39. </Border>
  40. </Grid>
  41. </Page>