wpf 研习1-24小时自学wpf7

Application

 

deployable file formats:

(1)Standard Executable;

(2)XAML Browser Application(xbap,not sl-related,simple deployment approach);

xbap程序相较于wpf应用程序,window1.xaml替换为page1.xaml,另外,扩展名为.pfx的文件用于clickonce部署;

(3)pure XAML file;

(纯粹的xaml无代码文件的功能已经很强,可在kaxaml中运行见效果 附件1;xbap运行 附件2)

 

wpf built-in application model:

window-based model(conventional);

navigation application(page approach,'very good!',见 附件3/4);

<Hyperlink NavigateUri=”Page2.xaml”>Click Me</Hyperlink>

 

<Frame Source=”Page1.xaml” />


wpf 研习1-24小时自学wpf7

 

User Controls:

using scenario 1,have a portion of the interface that is being used in more than one location;

using secnario 2,when the intention of the interface is obscured by supporting elements,so make portions of the interfaces;

 

小结:

很明显,xaml是一种特征式AS编程.