摘要: http://encoding4silverlight.codeplex.com/ 阅读全文
posted @ 2013-08-16 11:32 藏这儿 阅读(157) 评论(0) 推荐(0) 编辑
摘要: appbar button无法通过x:name引用(ApplicationBar.Buttons[0] as ApplicationBarIconButton).IsEnabled = false;进行禁用 阅读全文
posted @ 2012-11-29 10:08 藏这儿 阅读(187) 评论(0) 推荐(0) 编辑
摘要: //返回Brush类型AccentColor的值SolidColorBrush strColor = (SolidColorBrush)Application.Current.Resources["PhoneAccentBrush"];//可以字符串的的形式打印出数据System.Diagnostics.Debug.WriteLine(strColor.Color.ToString());//打印出strColor的类型System.Diagnostics.Debug.WriteLine(strColor.GetType());//返回Color类型值Color accen 阅读全文
posted @ 2012-11-22 10:03 藏这儿 阅读(546) 评论(0) 推荐(0) 编辑
摘要: mostQuickGrid.RowDefinitions.Add(new RowDefinition{Height = new GridLength(1, GridUnitType.Star)}); mostQuickGrid.RowDefinitions.Add(new RowDefinition { Height = new GridLength(200, GridUnitType.Pixel)}); Grid.SetRow(QuickSpanel, 0); Grid.Set... 阅读全文
posted @ 2012-11-20 20:44 藏这儿 阅读(572) 评论(0) 推荐(0) 编辑
摘要: 异步调用public async void AsyncSearchDataStart() { int res = await WaitSearchData();//等待调用完成 if (res == 1) { int ret = App.g_NAVI_Interface.NAVI_GetSearchData(); if (ret == 1) { } } ... 阅读全文
posted @ 2012-11-20 17:13 藏这儿 阅读(204) 评论(0) 推荐(0) 编辑
摘要: public partial class a: PhoneApplicationPage { DispatcherTimer timer = new DispatcherTimer(); public a() { timer = new DispatcherTimer(); timer.Interval = TimeSpan.FromSeconds(10); timer.Tick += new EventHandler(timer_Tick); timer.Start(); } protected override void OnManipulationSt... 阅读全文
posted @ 2012-11-09 17:58 藏这儿 阅读(284) 评论(1) 推荐(0) 编辑
摘要: void DelFile(string unZipFilePath)//unZipFilePath第一次传递的是根目录名 { using (var store = IsolatedStorageFile.GetUserStoreForApplication()) { if (store.DirectoryExists(unZipFilePath)) { String[] dirNames = store.GetDirectoryNames(string.Concat(unZipFilePath, "\\*")); String[] file... 阅读全文
posted @ 2012-11-09 17:55 藏这儿 阅读(469) 评论(0) 推荐(0) 编辑
摘要: (1)WMAppManifest.xml默认应用程序启动首页<DefaultTaskName ="_default" NavigationPage="Page.xaml"/>(2)APP构造函数中加入RootFrame.Navigating += new NavigatingCancelEventHandler(RootFrame_Navigating);private void RootFrame_Navigating(object sender, NavigatingCancelEventArgs e) { if (true)//判断的条 阅读全文
posted @ 2012-11-09 17:54 藏这儿 阅读(243) 评论(0) 推荐(0) 编辑
摘要: public static void GoMapNormalPageWithBack(NavigationService NavigationService, string PageUrl) { while (NavigationService.CanGoBack) { IEnumerator<JournalEntry> list = NavigationService.BackStack.GetEnumerator(); list.MoveNext(); ... 阅读全文
posted @ 2012-11-09 17:53 藏这儿 阅读(540) 评论(0) 推荐(0) 编辑
摘要: StorageFolder a = Windows.Storage.ApplicationData.Current.LocalFolder; 阅读全文
posted @ 2012-11-09 16:51 藏这儿 阅读(190) 评论(0) 推荐(0) 编辑