随笔分类 - wp7(实例)
摘要:appbar button无法通过x:name引用(ApplicationBar.Buttons[0] as ApplicationBarIconButton).IsEnabled = false;进行禁用
阅读全文
摘要://返回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
阅读全文
摘要: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...
阅读全文
摘要:异步调用public async void AsyncSearchDataStart() { int res = await WaitSearchData();//等待调用完成 if (res == 1) { int ret = App.g_NAVI_Interface.NAVI_GetSearchData(); if (ret == 1) { } } ...
阅读全文
摘要: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...
阅读全文
摘要:void DelFile(string unZipFilePath)//unZipFilePath第一次传递的是根目录名 { using (var store = IsolatedStorageFile.GetUserStoreForApplication()) { if (store.DirectoryExists(unZipFilePath)) { String[] dirNames = store.GetDirectoryNames(string.Concat(unZipFilePath, "\\*")); String[] file...
阅读全文
摘要:(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)//判断的条
阅读全文
摘要:public static void GoMapNormalPageWithBack(NavigationService NavigationService, string PageUrl) { while (NavigationService.CanGoBack) { IEnumerator<JournalEntry> list = NavigationService.BackStack.GetEnumerator(); list.MoveNext(); ...
阅读全文
摘要:StorageFolder a = Windows.Storage.ApplicationData.Current.LocalFolder;
阅读全文
浙公网安备 33010602011771号