03 2014 档案

摘要:一. 启动手机预装内置程序打开文件file association这里以打开word文档为例子 string fileToLaunch = @"HelloKitty.docx"; // Launch a .docx file that came with the package. private async void LaunchFileButton_Click(object sender, RoutedEventArgs e) { // First, get the word file from the package's do... 阅读全文
posted @ 2014-03-28 15:52 walleyekneel 阅读(338) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;namespace Monster... 阅读全文
posted @ 2014-03-26 01:27 walleyekneel 阅读(284) 评论(0) 推荐(0) 编辑
摘要:Windows Presentation Foundation (WPF) 提供了一组服务,这些服务可用于扩展公共语言运行时 (CLR) 属性的功能,这些服务通常统称为 WPF 属性系统。由 WPF 属性系统支持的属性称为依赖项属性。这段是MSDN上对依赖属性(DependencyProperty)的描述。主要介绍了两个方面,WPF中提供了可用于扩展CLR属性的服务;被这个服务支持的属性称为依赖属性。单看描述,云里雾里的,了解一个知识,首先要知道它产生的背景和为什么要有它,那么WPF引入依赖属性是为了解决什么问题呢?从属性说起属性是我们很熟悉的,封装类的字段,表示类的状态,编译后被转化为get 阅读全文
posted @ 2014-03-26 00:44 walleyekneel 阅读(296) 评论(0) 推荐(0) 编辑
摘要:4)扩展方式总结上面我们发现通过照片查看器启动的URI中都有一个Action参数,还有一个参数要么是FileId,要么是token。下面列表归纳一下:扩展点清单文件中的扩展名称URI启动关联地址支持的平台照片中心Photos_Extra_HubWP7\WP8共享选取器Photos_Extra_Share/MainPage.xaml?Action=ShareContent&FileId=[GUID]WP7\WP8富媒体应用Photos_Rich_Media_Edit/MainPage.xaml... 阅读全文
posted @ 2014-03-11 17:40 walleyekneel 阅读(273) 评论(0) 推荐(0) 编辑
摘要:小弟不才,各位大牛嘴下留情。。。一、对于继承类里头有相同方法时候,用接口方式去调用,会优先查走显式接口方法例如 public interface IA { void Test(); } public class Class1 : IA { public void Test() { Console.WriteLine("Class1"); } void IA.Test() { Console.WriteLine("IA.Test"); ... 阅读全文
posted @ 2014-03-05 00:52 walleyekneel 阅读(2018) 评论(11) 推荐(1) 编辑
摘要:using System;using System.Net;/// /// 客户端通过TCP/IP连接服务端的方法,包含连接,发送数据,接收数据功能/// using System.Net.Sockets;using System.Text;using System.Threading;public class LYL_TCP_Client{// 定义一个空的Socket对象Socket socket = null;// 当一个异步操作完成时, 用于通知的事件对象//创建一个手动线程通知事件,false表示默认是线程阻塞,true表示线程继续,只有线程继续WaitOne()才有意义 stati 阅读全文
posted @ 2014-03-02 23:38 walleyekneel 阅读(349) 评论(0) 推荐(0) 编辑
摘要:下载源码还有一种方式,更新瓷片方式1、 /// /// 定时更新磁贴 /// public class ShellUpdate { ShellTileSchedule schedule; public void CreateShell(string remoteUri, UpdateRecurrence updateOption = UpdateRecurrence.Interval) { schedule = new ShellTileSchedule { ... 阅读全文
posted @ 2014-03-02 01:11 walleyekneel 阅读(191) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示