2015年12月10日

Windows10 UWP 隐藏手机状态栏

摘要: if (Windows.Foundation.Metadata.ApiInformation.IsTypePresent(typeof(StatusBar).ToString())) { StatusBar statusBar = Windows.... 阅读全文

posted @ 2015-12-10 14:57 wlqsmiling 阅读(923) 评论(0) 推荐(0) 编辑

Windows10 UWP 设置窗口最小值

摘要: ApplicationView.GetForCurrentView().SetPreferredMinSize(new Windows.Foundation.Size(wid, hei)); 阅读全文

posted @ 2015-12-10 14:55 wlqsmiling 阅读(606) 评论(0) 推荐(0) 编辑

Windows10 UWP Back Button的处理

摘要: 1,Making the Back button appear requires just one line of code:SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackBu... 阅读全文

posted @ 2015-12-10 14:34 wlqsmiling 阅读(295) 评论(0) 推荐(0) 编辑

2015年5月27日

线程同步方法

摘要: 1,临界区2,互斥量3,信号量4,事件 阅读全文

posted @ 2015-05-27 10:31 wlqsmiling 阅读(98) 评论(0) 推荐(0) 编辑

2015年3月26日

POST a string and an image in one request using HttpClient

摘要: using Windows.Web.Http;using Windows.Web.Http.Headers;private async void Foo(){ // the image var fileStream = await file.OpenReadAsync(); var... 阅读全文

posted @ 2015-03-26 15:02 wlqsmiling 阅读(178) 评论(0) 推荐(0) 编辑

2014年12月6日

TransformToVisual 方法

摘要: TransformToVisual方法返回一个GeneralTransform对象。该对象没有位置和形状信息,相当于一个位移向量,可以将一个点和一个矩形移到一个相对的位置。 阅读全文

posted @ 2014-12-06 14:06 wlqsmiling 阅读(166) 评论(0) 推荐(0) 编辑

2013年11月7日

Xaml控件默认样式查看

摘要: xaml中控件的默认样式可通过Blend查看。步骤为:打开Blend,新建一个工程,并在里面新建一个控件。鼠标放在控件上,右键-编辑模板-编辑副本,查看代码。其中ContentControl存放ControlTemplate的内容。 阅读全文

posted @ 2013-11-07 18:27 wlqsmiling 阅读(184) 评论(0) 推荐(0) 编辑

2013年10月24日

迭代器关键字foreach和yield

摘要: 原文:http://www.blogbus.com/jangmon-logs/36380490.html总结:能使用foreach的集合类都要继承自IEnumerable,实现GetEnumerator方法,返回一个枚举器。枚举器Enumerator类包含集合类对象,通常有属性Current表示当前元素,MoveNext()移动到下一个元素。编译器看到foreach之后,根据关键字重新生成代码。修改为while(enumerator.MoveNext()){obj = enumerator.Current;}编译器看到yield之后,生产一个Enumerator类,MoveNext()方法里面 阅读全文

posted @ 2013-10-24 22:55 wlqsmiling 阅读(145) 评论(0) 推荐(0) 编辑

2013年9月10日

Launching Windows Store from your Metro style app

摘要: http://devblog.ailon.org/devblog/post/2012/07/13/Launching-Windows-Store-from-your-Metro-style-app.aspx 阅读全文

posted @ 2013-09-10 12:49 wlqsmiling 阅读(101) 评论(0) 推荐(0) 编辑

A better Slider for Windows Phone 7

摘要: http://blogs.msdn.com/b/devdave/archive/2010/10/04/a-better-slider-for-windows-phone-7.aspx 阅读全文

posted @ 2013-09-10 12:48 wlqsmiling 阅读(151) 评论(0) 推荐(0) 编辑

导航