1、XAML语法和XML语法类似。

2、XAML中每个元素即为一个对象。

3、对象中可以包含其他的对象。

4、WPF布局中,XAML顶级元素有3个
Windows元素
Page元素(该元素和Window元素类似,但它用于可导航的应用程序)
Application元素(该元素定义应用程序资源和启动设置)

5、XAML命名空间一般引用两个
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

6、XAML元素关联功能
<Window x:Class="WpfApplication1.MainWindow">

最后修改:2020 年 02 月 11 日 02 : 33 PM
如果觉得我的文章对你有用,请随意赞赏