WPF
.xaml 声明性语言
xmlns (xml name space) 引用一系列xml名词空间
//长方形
<Rectangle Width="100" Height="80" Stroke="Black" Fill="Blue" RadiusX="10" RadiusY="10"/>
<Path Data="M 0,0 L 200,100 L 100,200 Z" Stroke="Black" Fill="Red"/>
xml中为对象属性赋值:
1.Attribute = value形式
2.属性标签
<Button Width="120" Height="30">
<!--<Button></Button>之间的内容叫标签的Content-->
<Button.Content>
<Rectangle Width="20" Height="20" Stroke="DarkGreen" Fill="LawnGreen"/>
</Button.Content>
<!--<Button.Content></Button.Content>之间的内容是对象属性的内容-->
</Button>
3.标签扩展