[源码下载] 背水一战 Windows 10 (97) - 选取器: CachedFileUpdater 作者:webabcd 介绍背水一战 Windows 10 之 选取器 CachedFileUpdater(缓存文件更新程序) 示例1.演示如何开发自定义缓存文件更新程序CachedFileUpdaterProvider/App.xaml.cs // 通过缓存文件更新程序(CachedFileUpdater)激活应用程序时所调用的方法 protected override void OnCac…
[源码下载] 背水一战 Windows 10 (96) - 选取器: ContactPicker 作者:webabcd 介绍背水一战 Windows 10 之 选取器 ContactPicker(联系人选取窗口) 通过 ContactPicker 选取联系人,并获取其完整信息 示例1.演示如何通过 ContactPicker 选择一个或多个联系人Picker/ContactPickerDemo.xaml <Page x:Class="Windows10.Picker.ContactPick…
[源码下载] 背水一战 Windows 10 (95) - 选取器: 自定义文件保存选取器 作者:webabcd 介绍背水一战 Windows 10 之 选取器 自定义文件保存选取器 示例1.演示如何开发自定义文件保存选取器App.xaml.cs // 通过文件保存选取器激活应用程序时所调用的方法 protected override void OnFileSavePickerActivated(FileSavePickerActivatedEventArgs args) { var rootF…
[源码下载] 背水一战 Windows 10 (94) - 选取器: 自定义文件打开选取器 作者:webabcd 介绍背水一战 Windows 10 之 选取器 自定义文件打开选取器 示例1.演示如何开发自定义文件打开选取器App.xaml.cs // 通过文件打开选取器激活应用程序时所调用的方法 protected override void OnFileOpenPickerActivated(FileOpenPickerActivatedEventArgs args) { var rootF…
[源码下载] 背水一战 Windows 10 (93) - 选取器: FileOpenPicker, FolderPicker, FileSavePicker 作者:webabcd 介绍背水一战 Windows 10 之 选取器 FileOpenPicker(文件选取窗口) FolderPicker(文件夹选取窗口) FileSavePicker(文件保存窗口) 示例1.演示如何通过 FileOpenPicker 选择一个文件或多个文件Picker/FileOpenPickerDemo.xaml…
原文:重新想象 Windows 8 Store Apps (28) - 选取器: CachedFileUpdater(缓存文件更新程序) [源码下载] 重新想象 Windows 8 Store Apps (28) - 选取器: CachedFileUpdater(缓存文件更新程序) 作者:webabcd介绍重新想象 Windows 8 Store Apps 之 选取器 CachedFileUpdater - 缓存文件更新程序 示例一.首先新建一个 Windows 应用商店项目,使其作为缓存文件更…
[源码下载] 背水一战 Windows 10 (27) - 控件(文本类): TextBlock 作者:webabcd 介绍背水一战 Windows 10 之 控件(文本类) TextBlock 示例1.TextBlock 的示例 1Controls/TextControl/TextBlockDemo1.xaml <Page x:Class="Windows10.Controls.TextControl.TextBlockDemo1" xmlns="http://sch…
[源码下载] 背水一战 Windows 10 (21) - 绑定: x:Bind 绑定, x:Bind 绑定之 x:Phase, 使用绑定过程中的一些技巧 作者:webabcd 介绍背水一战 Windows 10 之 绑定 x:Bind 绑定 x:Bind 绑定之 x:Phase 使用绑定过程中的一些技巧 示例1.演示 x:Bind 绑定的相关知识点Bind/BindDemo.xaml <Page x:Class="Windows10.Bind.BindDemo" xmlns=&…
[源码下载] 背水一战 Windows 10 (20) - 绑定: DataContextChanged, UpdateSourceTrigger, 对绑定的数据做自定义转换 作者:webabcd 介绍背水一战 Windows 10 之 绑定 DataContextChanged - FrameworkElement 的 DataContext 发生变化时触发的事件 UpdateSourceTrigger - 数据更新的触发方式 对绑定的数据做自定义转换 示例1.演示 DataContextCh…
[源码下载] 背水一战 Windows 10 (18) - 绑定: 与 Element 绑定, 与 Indexer 绑定, TargetNullValue, FallbackValue 作者:webabcd 介绍背水一战 Windows 10 之 绑定 与 Element 绑定 与 Indexer 绑定 TargetNullValue - 当绑定数据为 null 时显示的值 FallbackValue - 当绑定失败时显示的值 示例1.演示如何与 Element 绑定Bind/BindingEl…