<a href="http://files.cnblogs.com/webabcd/Windows8.rar">[源码下载]</a>
重新想象 Windows 8 Store Apps (38) - 契约: Search Contract
介绍
重新想象 Windows 8 Store Apps 之 契约
Search Contract - 右侧边栏称之为 Charm, 其中的“搜索”称之为 Search Contract
使用 Search Contract 的搜索建议,数据源在本地,以及从输入法编辑器中获取相关信息
使用 Search Contract 的搜索建议,数据源在服务端,以及为搜索建议增加图标、描述等
使用 Search Contract 的基于本地文件的搜索建议,数据来源于文件的 metadata
示例
1、演示 Search Contract 的基本应用
Contracts/SearchContract/Demo.xaml
Contracts/SearchContract/Demo.xaml.cs
App.xaml.cs
2、本例演示如何使用 Search Contract 的搜索建议,数据源在本地。同时演示如何从输入法编辑器中获取相关信息
Contracts/SearchContract/LocalSuggestion.xaml
Contracts/SearchContract/LocalSuggestion.xaml.cs
3、本例演示如何使用 Search Contract 的搜索建议,数据源在服务端。同时演示如何为搜索建议增加图标、描述等
Contracts/SearchContract/RemoteSuggestion.xaml
Contracts/SearchContract/RemoteSuggestion.xaml.cs
4、本例演示如何使用 Search Contract 的基于本地文件的搜索建议,数据来源于文件的 metadata
Contracts/SearchContract/LocalFileSuggestion.xaml
Contracts/Sear0chContract/LocalFileSuggestion.xaml.cs
OK