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

对话框与窗口

开发平台:

Visual C++

  1. <Page xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'>
  2. <Border Padding = "3" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  3. <Grid >
  4. <Grid.ColumnDefinitions>
  5. <ColumnDefinition/>
  6. <ColumnDefinition/>
  7. <ColumnDefinition/>
  8. <ColumnDefinition/>
  9. <ColumnDefinition/>
  10. </Grid.ColumnDefinitions>
  11. <Border Grid.Column="0" Background="Red"><TextBlock MouseEnter="MakeTextBold" MouseLeave="MakeTextNormal" Padding="4" Text="Column 1"/></Border>
  12.     <Border Grid.Column="1" Background="Green"><TextBlock MouseEnter="MakeTextYellow" MouseLeave="MakeTextGreen" Padding="4" Text="Column 2"/></Border>
  13. <Border Grid.Column="2" Background="Blue"><TextBlock MouseEnter="MoveColumn3" Padding="4" Text="Column 3"/></Border>
  14. <Border Grid.Column="3" Background="Gray"><TextBlock Padding="4" Text="Column 4"/></Border>
  15. <Border Grid.Column="4" Background="Magenta"><TextBlock MouseEnter="SetText1" MouseLeave="SetText2" Padding="4" Text="Column 5"/></Border>
  16. </Grid>
  17. </Border>
  18. </Page>