博客园 - my favoriteuuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=1758462013-08-20T01:50:31Zmy favoritehttps://www.cnblogs.com/hdjjun/feed.cnblogs.comhttps://www.cnblogs.com/hdjjun/p/3269519.html【转】QT样式表 (QStyleSheet) - my favorite作者:刘旭晖 Raymond 转载请注明出处Email:colorant@163.comBLOG:http://blog.csdn.net/colorant/除了子类化Style类,使用QT样式表(QStyleSheet)是另一种快速改变QT程序UI风格的方法,它很大程度上借鉴和参考了HTML层叠样式表的语法和思想。其效果叠加在Style的基础上按官方文档的说法,QT样式表目前只能和内置Style配合工作,和子类化的Style的配合正在开发中StyleSheet的使用StyleSheet文件的默认后缀名为qss,可以通过命令行参数 -stylesheet filename.qss 来设置样式表2013-08-20T01:51:00Z2013-08-20T01:51:00Zmy favoritehttps://www.cnblogs.com/hdjjun/【摘要】作者:刘旭晖 Raymond 转载请注明出处Email:colorant@163.comBLOG:http://blog.csdn.net/colorant/除了子类化Style类,使用QT样式表(QStyleSheet)是另一种快速改变QT程序UI风格的方法,它很大程度上借鉴和参考了HTML层叠样式表的语法和思想。其效果叠加在Style的基础上按官方文档的说法,QT样式表目前只能和内置Style配合工作,和子类化的Style的配合正在开发中StyleSheet的使用StyleSheet文件的默认后缀名为qss,可以通过命令行参数 -stylesheet filename.qss 来设置样式表 <a href="https://www.cnblogs.com/hdjjun/p/3269519.html" target="_blank">阅读全文</a>https://www.cnblogs.com/hdjjun/p/3261984.html【转】Qt事件循环与线程 二 - my favorite转自:http://blog.csdn.net/changsheng230/article/details/6153449续上文:http://blog.csdn.net/changsheng230/archive/2010/12/27/6101232.aspx由于最近工作比较忙,出了趟差,还是把这篇长文、好文翻译出来了,以飨读者。同时也是自己很好的消化、学习过程Qt 线程类Qt对线程的支持已经有很多年了(发布于2000年九月22日的Qt2.2引入了QThread类),Qt 4.0版本的release则对其所有所支持平台默认地是对多线程支持的。(当然你也可以关掉对线程的支持,参见这里)。现在Q2013-08-16T05:55:00Z2013-08-16T05:55:00Zmy favoritehttps://www.cnblogs.com/hdjjun/【摘要】转自:http://blog.csdn.net/changsheng230/article/details/6153449续上文:http://blog.csdn.net/changsheng230/archive/2010/12/27/6101232.aspx由于最近工作比较忙,出了趟差,还是把这篇长文、好文翻译出来了,以飨读者。同时也是自己很好的消化、学习过程Qt 线程类Qt对线程的支持已经有很多年了(发布于2000年九月22日的Qt2.2引入了QThread类),Qt 4.0版本的release则对其所有所支持平台默认地是对多线程支持的。(当然你也可以关掉对线程的支持,参见这里)。现在Q <a href="https://www.cnblogs.com/hdjjun/p/3261984.html" target="_blank">阅读全文</a>https://www.cnblogs.com/hdjjun/p/3248900.html[转]Qt 智能指针学习 - my favorite从内存泄露开始?很简单的入门程序,应该比较熟悉吧 ^_^#include #include int main(int argc, char *argv[]){ QApplication app(argc, argv); QLabel *label = new QLabel("Hello Dbzhang800!"); label->show(); return app.exec();}在从 Qt 的 delete 说开来一文中,我们提到这个程序存在内存泄露(表现就是析构函数不被调用),而且当时给出了三种解决方法:将label对象分配到stack而不是heap中给labe2013-08-09T10:44:00Z2013-08-09T10:44:00Zmy favoritehttps://www.cnblogs.com/hdjjun/【摘要】从内存泄露开始?很简单的入门程序,应该比较熟悉吧 ^_^#include #include int main(int argc, char *argv[]){ QApplication app(argc, argv); QLabel *label = new QLabel("Hello Dbzhang800!"); label->show(); return app.exec();}在从 Qt 的 delete 说开来一文中,我们提到这个程序存在内存泄露(表现就是析构函数不被调用),而且当时给出了三种解决方法:将label对象分配到stack而不是heap中给labe <a href="https://www.cnblogs.com/hdjjun/p/3248900.html" target="_blank">阅读全文</a>https://www.cnblogs.com/hdjjun/p/3144573.html【转】Android Web Server - my favorite原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://vaero.blog.51cto.com/4350852/1188602Android上文件管理的Http服务。以SDK原生的httpCore API实现的。旧版在这里:Android Http Server先看一眼应用界面:Chrome浏览:一些说明jangod: jangod-core.jar & src/temp用以渲染html模板,类似django的模板引擎。另外自定义了一些获得android资源的tag。Commons FileUpload: commons-2013-06-19T09:15:00Z2013-06-19T09:15:00Zmy favoritehttps://www.cnblogs.com/hdjjun/【摘要】原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://vaero.blog.51cto.com/4350852/1188602Android上文件管理的Http服务。以SDK原生的httpCore API实现的。旧版在这里:Android Http Server先看一眼应用界面:Chrome浏览:一些说明jangod: jangod-core.jar & src/temp用以渲染html模板,类似django的模板引擎。另外自定义了一些获得android资源的tag。Commons FileUpload: commons- <a href="https://www.cnblogs.com/hdjjun/p/3144573.html" target="_blank">阅读全文</a>https://www.cnblogs.com/hdjjun/p/3144561.html【转】Android Http Server - my favorite原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://vaero.blog.51cto.com/4350852/939413Android Http Server1 引言 Android如何构建Http服务器呢?本文的小例子,约莫着,还是能做个参考的^^。恩,例子实现的是PC浏览手机文件,支持了下载和删除。2 准备 Http协议现今还是RFC2616吧,其基础的知识还是有必要了解的。弄份协议规范书参考,是个不错的选择。之后呢,就可以开始了^^。 起初,想自己写个Http服务器学习来着,后来懒了==。有兴趣的,推荐NanoHTTPD2013-06-19T09:14:00Z2013-06-19T09:14:00Zmy favoritehttps://www.cnblogs.com/hdjjun/【摘要】原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://vaero.blog.51cto.com/4350852/939413Android Http Server1 引言 Android如何构建Http服务器呢?本文的小例子,约莫着,还是能做个参考的^^。恩,例子实现的是PC浏览手机文件,支持了下载和删除。2 准备 Http协议现今还是RFC2616吧,其基础的知识还是有必要了解的。弄份协议规范书参考,是个不错的选择。之后呢,就可以开始了^^。 起初,想自己写个Http服务器学习来着,后来懒了==。有兴趣的,推荐NanoHTTPD <a href="https://www.cnblogs.com/hdjjun/p/3144561.html" target="_blank">阅读全文</a>https://www.cnblogs.com/hdjjun/archive/2012/12/12/2815266.htmlJava Annotation 注释语法 - my favoriteJAVA从J2SE5开始提供名为annotation(注释,标注)的功能。Java的annotation,可以附加在package, class, method, field等上面,相当于给它们添加了额外的辅助信息。附加在package, class, method, field等上的Annotation,如果没有外部解析工具等对其加以解析和处理的情况,本身不会对Java的源代码或class等产生任何影响,也不 会对它们的执行产生任何影响。 但借助外部工具,比如javac,EJB容器等,可以对附加在package, class, method, field的annotation进行解析,可以根2012-12-12T12:06:00Z2012-12-12T12:06:00Zmy favoritehttps://www.cnblogs.com/hdjjun/【摘要】JAVA从J2SE5开始提供名为annotation(注释,标注)的功能。Java的annotation,可以附加在package, class, method, field等上面,相当于给它们添加了额外的辅助信息。附加在package, class, method, field等上的Annotation,如果没有外部解析工具等对其加以解析和处理的情况,本身不会对Java的源代码或class等产生任何影响,也不 会对它们的执行产生任何影响。 但借助外部工具,比如javac,EJB容器等,可以对附加在package, class, method, field的annotation进行解析,可以根 <a href="https://www.cnblogs.com/hdjjun/archive/2012/12/12/2815266.html" target="_blank">阅读全文</a>https://www.cnblogs.com/hdjjun/archive/2012/08/30/2663981.htmlandroid中json的序列化与反序列化 - my favorite最近项目中需要在android中将对象转为json字串以及反序列化为对象,查阅了android sdk文档后,发现android中没有类似C#里DataContractJsonSerializer的类,想想需求也不算复杂,就自己写了两个方法解决,代码如下:publicstaticStringgetJson(ObjectobjSource){try{Objectobject=getJsonObject(objSource);if(object==null)return"";return((JSONObject)object).toString();}catch(Excepti2012-08-30T08:10:00Z2012-08-30T08:10:00Zmy favoritehttps://www.cnblogs.com/hdjjun/【摘要】最近项目中需要在android中将对象转为json字串以及反序列化为对象,查阅了android sdk文档后,发现android中没有类似C#里DataContractJsonSerializer的类,想想需求也不算复杂,就自己写了两个方法解决,代码如下:publicstaticStringgetJson(ObjectobjSource){try{Objectobject=getJsonObject(objSource);if(object==null)return"";return((JSONObject)object).toString();}catch(Excepti <a href="https://www.cnblogs.com/hdjjun/archive/2012/08/30/2663981.html" target="_blank">阅读全文</a>https://www.cnblogs.com/hdjjun/archive/2012/07/24/2606077.htmlJavaScript定义类的几种方式 - my favorite提起面向对象我们就能想到类,对象,封装,继承,多态。在《javaScript高级程序设计》(人民邮电出版社,曹力、张欣译。英文名字 是:Professional JavaScript for Web Developers)这本书中描述的还算比较详细。我们看看JavaScript中定义类的各种方法。 1.工厂方式 javaScript中创建自己的类和对象,我们应该是必须掌握的,我们都知道javaScript中对象的属性可以在对象创建后动态定义,比如下面的代码: <script type="text/javascript"> //定义 var oCar = new 2012-07-24T02:32:00Z2012-07-24T02:32:00Zmy favoritehttps://www.cnblogs.com/hdjjun/【摘要】提起面向对象我们就能想到类,对象,封装,继承,多态。在《javaScript高级程序设计》(人民邮电出版社,曹力、张欣译。英文名字 是:Professional JavaScript for Web Developers)这本书中描述的还算比较详细。我们看看JavaScript中定义类的各种方法。 1.工厂方式 javaScript中创建自己的类和对象,我们应该是必须掌握的,我们都知道javaScript中对象的属性可以在对象创建后动态定义,比如下面的代码: <script type="text/javascript"> //定义 var oCar = new <a href="https://www.cnblogs.com/hdjjun/archive/2012/07/24/2606077.html" target="_blank">阅读全文</a>https://www.cnblogs.com/hdjjun/archive/2012/07/13/2590354.htmljs获取浏览器高度和宽度值(多浏览器) - my favoriteIE中:document.body.clientWidth ==> BODY对象宽度document.body.clientHeight ==> BODY对象高度document.documentElement.clientWidth ==> 可见区域宽度document.documentElement.clientHeight ==> 可见区域高度FireFox中:document.body.clientWidth ==> BODY对象宽度document.body.clientHeight ==> BODY对象高度document.documentEle2012-07-13T07:47:00Z2012-07-13T07:47:00Zmy favoritehttps://www.cnblogs.com/hdjjun/【摘要】IE中:document.body.clientWidth ==> BODY对象宽度document.body.clientHeight ==> BODY对象高度document.documentElement.clientWidth ==> 可见区域宽度document.documentElement.clientHeight ==> 可见区域高度FireFox中:document.body.clientWidth ==> BODY对象宽度document.body.clientHeight ==> BODY对象高度document.documentEle <a href="https://www.cnblogs.com/hdjjun/archive/2012/07/13/2590354.html" target="_blank">阅读全文</a>https://www.cnblogs.com/hdjjun/archive/2012/07/05/2578174.htmlSetting up SSL made easy… - my favoriteThis blog post is about a small tool I just finished. It makes configuring and using SSL much easier. In the first part of the blog post I quickly review the problems and difficulties you run into when setting up SSL. Then I introduce SELFSSL7 and finally walk through several usage scenarios. S...2012-07-05T09:15:00Z2012-07-05T09:15:00Zmy favoritehttps://www.cnblogs.com/hdjjun/【摘要】This blog post is about a small tool I just finished. It makes configuring and using SSL much easier. In the first part of the blog post I quickly review the problems and difficulties you run into when setting up SSL. Then I introduce SELFSSL7 and finally walk through several usage scenarios. S... <a href="https://www.cnblogs.com/hdjjun/archive/2012/07/05/2578174.html" target="_blank">阅读全文</a>https://www.cnblogs.com/hdjjun/archive/2012/07/05/2578145.htmlBetter, Faster, Easier SSL testing for ASP.NET MVC & WebForms - my favoriteScottHa has a great blog Working with SSL at Development Time is easier with IISExpress, but I’ve got what I think is a better approach. Please weigh in. In this blog entry I’ll show you how to test SSL on your ASP.NET MVC & WebForms applications using IIS 7. You should make sure you have IIS 7 2012-07-05T09:05:00Z2012-07-05T09:05:00Zmy favoritehttps://www.cnblogs.com/hdjjun/【摘要】ScottHa has a great blog Working with SSL at Development Time is easier with IISExpress, but I’ve got what I think is a better approach. Please weigh in. In this blog entry I’ll show you how to test SSL on your ASP.NET MVC & WebForms applications using IIS 7. You should make sure you have IIS 7 <a href="https://www.cnblogs.com/hdjjun/archive/2012/07/05/2578145.html" target="_blank">阅读全文</a>https://www.cnblogs.com/hdjjun/archive/2012/07/04/2575774.htmlASP.NET MVC 3 Internationalization - my favoriteIntroduction If your website targets users from different parts of the world, these users might like to see your website content in their own language. Creating a multilingual website is not an easy task, but it will certainly allow your site to reach more audience. Fortunately, the .NET Framew...2012-07-04T02:18:00Z2012-07-04T02:18:00Zmy favoritehttps://www.cnblogs.com/hdjjun/【摘要】Introduction If your website targets users from different parts of the world, these users might like to see your website content in their own language. Creating a multilingual website is not an easy task, but it will certainly allow your site to reach more audience. Fortunately, the .NET Framew... <a href="https://www.cnblogs.com/hdjjun/archive/2012/07/04/2575774.html" target="_blank">阅读全文</a>https://www.cnblogs.com/hdjjun/archive/2012/07/03/2574969.htmlWindows 8 学习笔记(十四)--.map文件与.kml文件的解析 - my favorite这段时间在做一个通过从网络上抓取的.map文件及区域图片,进行相应的加载定位,并将导航路径输出为.KML格式,以便下次加载显示上次路径。用过Google Earth的应该知道这两种文件格式。.map文件解析该文件不是XML文件格式,但却有固有的输出顺序,我只需按固定的顺序截取我要的信息即可,当然我这里有的最笨的方法,字符行的形式进行截取的,这个方法通用性太低,但我实在不知用哪种方式,若有知晓的,还忘告知~FileOpenPickerfilepicker=newFileOpenPicker();filepicker.FileTypeFilter.Add(".map");fil2012-07-03T08:32:00Z2012-07-03T08:32:00Zmy favoritehttps://www.cnblogs.com/hdjjun/【摘要】这段时间在做一个通过从网络上抓取的.map文件及区域图片,进行相应的加载定位,并将导航路径输出为.KML格式,以便下次加载显示上次路径。用过Google Earth的应该知道这两种文件格式。.map文件解析该文件不是XML文件格式,但却有固有的输出顺序,我只需按固定的顺序截取我要的信息即可,当然我这里有的最笨的方法,字符行的形式进行截取的,这个方法通用性太低,但我实在不知用哪种方式,若有知晓的,还忘告知~FileOpenPickerfilepicker=newFileOpenPicker();filepicker.FileTypeFilter.Add(".map");fil <a href="https://www.cnblogs.com/hdjjun/archive/2012/07/03/2574969.html" target="_blank">阅读全文</a>https://www.cnblogs.com/hdjjun/archive/2012/07/03/2574962.htmlWindows 8学习笔记(十二)--集合控件 - my favorite在Win8 Metro App中,集合项的显示大多基于ListView\ListBox\GridView三个控件实现。 今天就用分别试用一下哈~ 首先看一下,官方对这三个控件的定义 ListBox: Contains a list of selectable items.(包含可选项目的列表) ListView: Represents a control that displays a list of data items.(展现数据项列表显示的控件) GridView: Represents a specialized ordered list view.(展现特殊排序的列表视图)...2012-07-03T08:31:00Z2012-07-03T08:31:00Zmy favoritehttps://www.cnblogs.com/hdjjun/【摘要】在Win8 Metro App中,集合项的显示大多基于ListView\ListBox\GridView三个控件实现。 今天就用分别试用一下哈~ 首先看一下,官方对这三个控件的定义 ListBox: Contains a list of selectable items.(包含可选项目的列表) ListView: Represents a control that displays a list of data items.(展现数据项列表显示的控件) GridView: Represents a specialized ordered list view.(展现特殊排序的列表视图)... <a href="https://www.cnblogs.com/hdjjun/archive/2012/07/03/2574962.html" target="_blank">阅读全文</a>https://www.cnblogs.com/hdjjun/archive/2012/07/03/2574965.htmlWindows 8 学习笔记(十三)--生命周期 - my favorite今天在做项目时,意识到Win8 Meto App也有“墓碑”这个概念。从以下场景可以看出:从首页登录页面登录,进行列表页面,此时按Win键返加桌面开启另外一个应用程序,当我再次返回我第一 个页面时,却显示的是登录页面,这与想象的场景是不相符合的,做过Windows Phonen7的同胞应该都知道,在wp7 7.0的时是有“墓碑”的机制的,与以上场景完全类似。 不得不先学习一下Windows 8应用程序的生命周期啦,参照http://blogs.msdn.com/b/windowsappdev_cn/archive/2012/04/16/managing-app-lifecycle.asp...2012-07-03T08:31:00Z2012-07-03T08:31:00Zmy favoritehttps://www.cnblogs.com/hdjjun/【摘要】今天在做项目时,意识到Win8 Meto App也有“墓碑”这个概念。从以下场景可以看出:从首页登录页面登录,进行列表页面,此时按Win键返加桌面开启另外一个应用程序,当我再次返回我第一 个页面时,却显示的是登录页面,这与想象的场景是不相符合的,做过Windows Phonen7的同胞应该都知道,在wp7 7.0的时是有“墓碑”的机制的,与以上场景完全类似。 不得不先学习一下Windows 8应用程序的生命周期啦,参照http://blogs.msdn.com/b/windowsappdev_cn/archive/2012/04/16/managing-app-lifecycle.asp... <a href="https://www.cnblogs.com/hdjjun/archive/2012/07/03/2574965.html" target="_blank">阅读全文</a>https://www.cnblogs.com/hdjjun/archive/2012/07/03/2574960.htmlWindows 8学习笔记(十一)---图片的显示与保存 - my favorite图片显示 图片的显示应该都非常熟悉,场景很多,我先把我想的三个列举一下: 场景一: 从本地图片库选择图片进行显示: ?async private void LoadPictureByPicker(){FileOpenPicker fileOpen = new FileOpenPicker(){FileTypeFilter={ ".jpg", ".jpeg", ".png", ".bmp" },ViewMode=PickerViewMode.Thumbnail,SuggestedStartLocation=Picke2012-07-03T08:30:00Z2012-07-03T08:30:00Zmy favoritehttps://www.cnblogs.com/hdjjun/【摘要】图片显示 图片的显示应该都非常熟悉,场景很多,我先把我想的三个列举一下: 场景一: 从本地图片库选择图片进行显示: ?async private void LoadPictureByPicker(){FileOpenPicker fileOpen = new FileOpenPicker(){FileTypeFilter={ ".jpg", ".jpeg", ".png", ".bmp" },ViewMode=PickerViewMode.Thumbnail,SuggestedStartLocation=Picke <a href="https://www.cnblogs.com/hdjjun/archive/2012/07/03/2574960.html" target="_blank">阅读全文</a>https://www.cnblogs.com/hdjjun/archive/2012/07/03/2574956.htmlWindows 8 Metro App学习笔记(九)—磁砖 - my favorite瓷砖,即桌面显示的Tile,它的创建和生命周期都可以由用户自由创建并可以直接访问一个应用程序,还可以为信息的及时推送带来很多的方便。在Windows 8中,由SecondaryTile对象负责。 首先了解一下它的属性: Arguments:它是显示在桌面Tile上程序定制的一些信息,当通过Tile激活一个APP时,可以用该值作一些处理 BackgroundColor:Tile的背景颜色 DisplayName:类似提示信息,当用户移到该Tile时,这个信息会显示 ForegroundText:字体颜色,只有Dark和Light两种 Logo:Logo图标,当创建一个方形的瓷砖中...2012-07-03T08:29:00Z2012-07-03T08:29:00Zmy favoritehttps://www.cnblogs.com/hdjjun/【摘要】瓷砖,即桌面显示的Tile,它的创建和生命周期都可以由用户自由创建并可以直接访问一个应用程序,还可以为信息的及时推送带来很多的方便。在Windows 8中,由SecondaryTile对象负责。 首先了解一下它的属性: Arguments:它是显示在桌面Tile上程序定制的一些信息,当通过Tile激活一个APP时,可以用该值作一些处理 BackgroundColor:Tile的背景颜色 DisplayName:类似提示信息,当用户移到该Tile时,这个信息会显示 ForegroundText:字体颜色,只有Dark和Light两种 Logo:Logo图标,当创建一个方形的瓷砖中... <a href="https://www.cnblogs.com/hdjjun/archive/2012/07/03/2574956.html" target="_blank">阅读全文</a>https://www.cnblogs.com/hdjjun/archive/2012/07/03/2574957.htmlWindows 8学习笔记(十)----Notification - my favoriteWinRT中Notification有三种类型: Badge:徽章、标记的推送更新,主要对于磁砖进行通知 Toast:土司推送,一般是程序运行时通知 Tile:磁砖推送,自然就是程序处理休眠状态时的通知 注意:这里有消息内容都是以XML内容模板发送的 先研究下磁砖的推送Badge和Tile Badge 了解一下有哪些方法 BadgeNotification(XmlDocument content) BadgeUpdateManager CreateBadgeUpdaterForApplication()---为当前应用更新磁砖 CreateBadgeUpdaterForApplication.2012-07-03T08:29:00Z2012-07-03T08:29:00Zmy favoritehttps://www.cnblogs.com/hdjjun/【摘要】WinRT中Notification有三种类型: Badge:徽章、标记的推送更新,主要对于磁砖进行通知 Toast:土司推送,一般是程序运行时通知 Tile:磁砖推送,自然就是程序处理休眠状态时的通知 注意:这里有消息内容都是以XML内容模板发送的 先研究下磁砖的推送Badge和Tile Badge 了解一下有哪些方法 BadgeNotification(XmlDocument content) BadgeUpdateManager CreateBadgeUpdaterForApplication()---为当前应用更新磁砖 CreateBadgeUpdaterForApplication. <a href="https://www.cnblogs.com/hdjjun/archive/2012/07/03/2574957.html" target="_blank">阅读全文</a>https://www.cnblogs.com/hdjjun/archive/2012/07/03/2574954.htmlWindows 8 学习笔记(八)--各种流之间的转换 - my favorite今天在Stream与IrandomAccessStream之间转换时,感觉很纠结,所以干脆先把想到的一些场景都罗列了一下,希望下次再用的时候就不用这么毛手毛脚的了。。。 Stream 转IRandomAccessStream ?方法一:byte[] bytes = StreamToBytes(stream);InMemoryRandomAccessStream memoryStream = new InMemoryRandomAccessStream();DataWriter datawriter = new DataWriter(memoryStream.GetOutputStreamA..2012-07-03T08:28:00Z2012-07-03T08:28:00Zmy favoritehttps://www.cnblogs.com/hdjjun/【摘要】今天在Stream与IrandomAccessStream之间转换时,感觉很纠结,所以干脆先把想到的一些场景都罗列了一下,希望下次再用的时候就不用这么毛手毛脚的了。。。 Stream 转IRandomAccessStream ?方法一:byte[] bytes = StreamToBytes(stream);InMemoryRandomAccessStream memoryStream = new InMemoryRandomAccessStream();DataWriter datawriter = new DataWriter(memoryStream.GetOutputStreamA.. <a href="https://www.cnblogs.com/hdjjun/archive/2012/07/03/2574954.html" target="_blank">阅读全文</a>https://www.cnblogs.com/hdjjun/archive/2012/07/03/2574953.htmlWindows 8学习笔记(七)--Input输入设备 - my favoriteWindows.Device.Input接口提供了识别可用的输入设备并获得这些设备的信息 KeyboardCapabilities 用于判断当前是否连接了键盘设备 其属性KeyboardPresent进行判断,当为0时表示未连接,不为0时表示已连接 ?Windows.Devices.Input.KeyboardCapabilities KeyboardCapabilities = new Windows.Devices.Input.KeyboardCapabilities();string status = string.Format("There is {0} keyboard p2012-07-03T08:27:00Z2012-07-03T08:27:00Zmy favoritehttps://www.cnblogs.com/hdjjun/【摘要】Windows.Device.Input接口提供了识别可用的输入设备并获得这些设备的信息 KeyboardCapabilities 用于判断当前是否连接了键盘设备 其属性KeyboardPresent进行判断,当为0时表示未连接,不为0时表示已连接 ?Windows.Devices.Input.KeyboardCapabilities KeyboardCapabilities = new Windows.Devices.Input.KeyboardCapabilities();string status = string.Format("There is {0} keyboard p <a href="https://www.cnblogs.com/hdjjun/archive/2012/07/03/2574953.html" target="_blank">阅读全文</a>