摘要:
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; 阅读全文