- 一些字符串自动系统转换成对象
- 例
- <Button Background=”#FF000FF” />
- <Button Background=”Blue” />
- 属性元素语法(Property Element Syntax)
- 语法:<ClassName.PropertyName />
- 例
- <Button>
- <Button.Background>
- <SolidColorBrush Color=”Blue” />
- </Button.Background>
- </Button
- 适用于指定事件的语法
- 例
- <Grid Button.Click=”button_Click”>
- <Button Name=”button1”>Button</Button>
- </Grid>
No comments:
Post a Comment