welcome to Qijie's Blog 薛其杰
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 22 下一页
该文被密码保护。 阅读全文
posted @ 2013-01-18 16:56 零点零一 阅读(0) 评论(0) 推荐(0)
摘要: using Windows.UI.ApplicationSettings; Rect _windowBounds; double _settingsWidth = 364; Popup _settingsPopup; public MainPage() { this.InitializeComponent(); Windows.UI.ApplicationSettings.SettingsPane.GetForCurrentView().CommandsRequ... 阅读全文
posted @ 2013-01-16 17:09 零点零一 阅读(338) 评论(0) 推荐(0)
摘要: 如:1,-1,2,-2,3,-3,4,5,6 - 最大递增子串长度为5.最直观的O(N*N)算法: static int LongestSubString(int[] array) { int[] Lst = new int[array.Length]; for (int i = 0; i < array.Length; i++) { for (int j = 0; j < i; j++) { if (a... 阅读全文
posted @ 2013-01-14 11:05 零点零一 阅读(215) 评论(0) 推荐(0)
摘要: GridView中有两个事件分别是:gvSource_SelectionChanged 和gvSource_ItemClick。1. 若你设置了IsItemClickEnabled="True", 当你单击GridView里边的一个item时, gvSource_ItemClick事件会被触发。此时鼠标左键单击只是单击而不是选择。2. 相反你如此设置IsItemClickEnabled="False", 当你单击GridView里边的一个item时, 此时鼠标左键是选择, 所以gvSource_SelectionChanged会被执行而gvSource_ 阅读全文
posted @ 2013-01-13 20:30 零点零一 阅读(1653) 评论(0) 推荐(1)
摘要: 在Windows 8 App里边的动画和在silverlight里边还有稍微的区别, 如代码:using Windows.UI.Xaml;using Windows.UI.Xaml.Media;using Windows.UI.Xaml.Media.Animation;using Windows.UI.Xaml.Controls; protected void DemoAnimation() { Duration m_Dur = new Duration(TimeSpan.FromSeconds(4)); Storyboa... 阅读全文
posted @ 2013-01-11 15:52 零点零一 阅读(329) 评论(0) 推荐(0)
摘要: To add a language pack in Windows 8, After Installed Windows 8, I have the installation files in my DVD Drive. The language packs are in G:\Deploy\Packages\LanguagePack folder, therefore I can add the language using command tool lpksetup.exe.see what I did:First, run command prompt as Administrator. 阅读全文
posted @ 2012-12-27 14:26 零点零一 阅读(1699) 评论(0) 推荐(0)
摘要: 前言: Gloablization, 全球化,本地化首先要在项目中创建strings 文件夹,然后在strings下边创建每一种语言代码的文件夹, 如en-us代表英语, zh-cn代表中文。其次向每一个文件夹下添加Resources.resw文件。在每一种语言的Resources.resw中添加要本地化的控件的名称和相关语言中的翻译。编写代码, 首先获取想要的语言, 根据语言来决定为PrimaryLanguageOverride赋值。 string language = string.Empty; string region = Windows.S... 阅读全文
posted @ 2012-12-24 17:01 零点零一 阅读(946) 评论(0) 推荐(0)
摘要: 前言: Windows Store App, ApplicationViewState前几天一直纠结的一件事情就是我如何能够自己编程控制控件在不同ViewState中的设置, 搜寻网络发现这个触发器是Window.Current.SizeChanged。ApplicationViewState是一个枚举值, 有如下4个值:Windows.UI.ViewManagement.ApplicationViewState.FullScreenPortraitWindows.UI.ViewManagement.ApplicationViewState.SnappedWindows.UI.ViewMana 阅读全文
posted @ 2012-12-23 18:16 零点零一 阅读(543) 评论(0) 推荐(0)
摘要: 在Windows 8 App中, App Button 的Style都是存储在资源文件中的, 系统自带的资源文件在Common folder下的StandardStyle.Xaml . 里边定义的Style是以健(Key)的形式表示和定义的。当我们在程序中动态改变一个App Button的Style是, 可以这么写: btPicture.Style = (Style)Application.Current.Resources["PicturesAppBarButtonStyle"];还有, 当你自定义一个Style时, 它所BasedOn的Style一定要写在其定义行之前. 阅读全文
posted @ 2012-12-20 17:14 零点零一 阅读(648) 评论(0) 推荐(0)
摘要: Expected BottomeAppBar Style:For a long time, I have problem with the button alignment in bottomAppBar. If we have more than one buttons, I knew we need to add them to a stackpanel, and there only could be one stackpanel be added directly under <AppBar></AppBar>. Therefore if I want to l 阅读全文
posted @ 2012-12-20 17:06 零点零一 阅读(239) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 22 下一页