随笔分类 -  Windows 8 Develop

Windows 8 开发系列- 系统样式资源文件
摘要:这些资源实际是保存在 C:\Program Files (x86)\Windows Kits\8.0\Include\WinRT\Xaml\Design 下的。你可以找到相关资源和控件默认样式定义。然后如何重写,举个例子:<ResourceDictionary.ThemeDictionaries><ResourceDictionaryx:Key="Default"><SolidColorBrushx:Key="ProgressBarIndeterminateForegroundThemeBrush"Color="# 阅读全文

posted @ 2012-12-17 10:24 SUNJUNLIN 阅读(201) 评论(0) 推荐(0)

Windows 8 开发系列- 拆分页关键问题分析
摘要:近日,在处理拆分页面时,snap_detail始终无法正常返回snap,经过一番摸索,总结如下:页面状态管理主要有四种页面状态,全屏横向,竖屏,缩屏,满屏。然后拆分页面只是为了设计给缩屏和竖屏视图,让他们可以展示下一级页面状态,当点击列表时,会展示详细页面。其实就是一个物理页面,在里面展示两个逻辑页面:一个列表,一个详细信息。比如:1.拉到缩屏时,进入 protected override string DetermineVisualState(ApplicationViewState viewState) { // Update the back butt... 阅读全文

posted @ 2012-12-06 11:22 SUNJUNLIN 阅读(388) 评论(0) 推荐(0)

Windows 8 开发系列- 自定义Gridview 绑定列表数据时出错
摘要:错误提示:这是绑定后通过按钮事件查看itemsource时发现的(这是一个好方法,可以对obser collection检查)程序集“mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”中的泛型类型“System.Collections.Generic.ICollection`1”所用的泛型参数数目不正确。 <local:VariableGridView.ItemsPanel> <ItemsPanelTemplate> ... 阅读全文

posted @ 2012-11-21 11:13 SUNJUNLIN 阅读(380) 评论(0) 推荐(0)

Windows 8 开发系列- metro 程序里面没有提供关闭App的事件
摘要:App closeGenerally, users don't need to close apps, they can let Windows manage them. However, users can choose to close an app using the close gesture or by pressing Alt+F4. You can't include any UI in your app to enable the user to close your app, or it won't pass the Store certificati 阅读全文

posted @ 2012-11-20 14:40 SUNJUNLIN 阅读(457) 评论(0) 推荐(0)

Windows 8 开发系列- App Resume的静态突然清空问题
摘要:NavigateMode与App Resume的冲突Loadstate是启动页面加载的;SaveState是离开页面是加载的;Suspending是挂起应用;Resuming是恢复应用;当设置-NavigateMode时,恢复应用时,很无语的发现静态变量在进行循环会变0;for (int i = 0; i < LocalStorage.Data.Count; i++){Attention at = LocalStorage.Data[i] as Attention;await LocalStorage.RestoreAttentionImageAsync(at);}后来只能再转换成局部变 阅读全文

posted @ 2012-11-20 13:56 SUNJUNLIN 阅读(214) 评论(0) 推荐(0)

导航