1.WPF是winform开发web化, xaml及设计器完全类似web开发的设计器.
2.WPF项目里可以创建winform, 反之不行, 应该是向后兼容.
3.Main函数, 应用程序入口点. 新建一个WPF项目,发现里面有一个App.xaml和MainWindow.xaml文件,打开App.xaml.cs也找不到Main()函数,实际上它在App.xaml里的StartupUri="MainWindow.xaml", 在这里指定了.
<Application x:Class="WpfApplication1.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="MainWindow.xaml">
<Application.Resources>
</Application.Resources>
</Application>
注意, 因为应用程序的入口函数是自动生成的,不用也不要再在App.xaml.cs代码里在添加Main函数,否则编译器会报Main方法已经定义。
以后要逐渐补充: Xaml语法, 控件, 布局, Binding, 属性, 事件, 命令, 资源, 模板, 绘图与动画.
推荐资料:
1.<<深入浅出WPF>>.
2.WPF应用程序开发与部署(1)(WPF讲座系列--2)
http://www.cnblogs.com/NineFlowers/archive/2008/09/17/1292886.html