資源簡介
WeatherForecast.zip

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.IO;
using?System.Linq;
using?Windows.ApplicationModel;
using?Windows.ApplicationModel.Activation;
using?Windows.Foundation;
using?Windows.Foundation.Collections;
using?Windows.UI.Xaml;
using?Windows.UI.Xaml.Controls;
using?Windows.UI.Xaml.Controls.Primitives;
using?Windows.UI.Xaml.Data;
using?Windows.UI.Xaml.Input;
using?Windows.UI.Xaml.Media;
using?Windows.UI.Xaml.Navigation;
//?“空白應用程序”模板在?http://go.microsoft.com/fwlink/?linkId=234227?上有介紹
namespace?WeatherForecast
{
????///?
????///?提供特定于應用程序的行為,以補充默認的應用程序類。
????///?
????sealed?partial?class?App?:?Application
????{
????????///?
????????///?初始化單一實例應用程序對象。這是執行的創作代碼的第一行,
????????///?邏輯上等同于?main()?或?WinMain()。
????????///?
????????public?App()
????????{
????????????this.InitializeComponent();
????????????this.Suspending?+=?OnSuspending;
????????}
????????///?
????????///?在應用程序由最終用戶正常啟動時進行調用。
????????///?當啟動應用程序以執行打開特定的文件或顯示搜索結果等操作時
????????///?將使用其他入口點。
????????///?
????????///?有關啟動請求和過程的詳細信息。
????????protected?override?void?OnLaunched(LaunchActivatedEventArgs?args)
????????{
????????????frame?rootframe?=?Window.Current.Content?as?frame;
????????????//?不要在窗口已包含內容時重復應用程序初始化,
????????????//?只需確保窗口處于活動狀態
????????????if?(rootframe?==?null)
????????????{
????????????????//?創建要充當導航上下文的框架,并導航到第一頁
????????????????rootframe?=?new?frame();
????????????????if?(args.PreviousExecutionState?==?ApplicationExecutionState.Terminated)
????????????????{
????????????????????//TODO:?從之前掛起的應用程序加載狀態
????????????????}
????????????????//?將框架放在當前窗口中
????????????????Window.Current.Content?=?rootframe;
????????????}
????????????if?(rootframe.Content?==?null)
????????????{
????????????????//?當未還原導航堆棧時,導航到第一頁,
????????????????//?并通過將所需信息作為導航參數傳入來配置
????????????????//?參數
????????????????if?(!rootframe.Navigate(typeof(MainPage)?args.Arguments))
????????????????{
????????????????????throw?new?Exception(“Failed?to?create?initial?page“);
????????????????}
????????????}
????????????//?確保當前窗口處于活動狀態
????????????Window.Current.Activate();
????????}
????????///?
????????///?在將要掛起應用程序執行時調用。在不知道應用程序
????????///?將被終止還是恢復的情況下保存應用程序狀態,
????????///?并讓內存內容保持不變。
????????///?
????????///?掛起的請求的源。
????????///?有關掛起的請求的詳細信息。
????????private?void?OnSuspending(object?sender?SuspendingEventArgs?e)
????????{
????????????var?deferral?=?e.SuspendingOperation.GetDeferral();
????????????//TODO:?保存應用程序狀態并停止任何后臺活動
????????????deferral.Complete();
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2012-11-11?18:32??WeatherForecast\
?????目錄???????????0??2012-11-11?19:45??WeatherForecast\WeatherForecast\
?????文件????????2635??2012-11-11?18:32??WeatherForecast\WeatherForecast.sln
?????文件???????16896??2012-11-11?20:26??WeatherForecast\WeatherForecast.v11.suo
?????文件?????????730??2012-11-11?18:32??WeatherForecast\WeatherForecast\App.xaml
?????文件????????3453??2012-11-11?18:32??WeatherForecast\WeatherForecast\App.xaml.cs
?????目錄???????????0??2012-11-11?18:32??WeatherForecast\WeatherForecast\Assets\
?????文件?????????801??2012-04-02?23:39??WeatherForecast\WeatherForecast\Assets\Logo.png
?????文件?????????329??2012-04-02?23:39??WeatherForecast\WeatherForecast\Assets\SmallLogo.png
?????文件????????2146??2012-04-02?23:39??WeatherForecast\WeatherForecast\Assets\SplashScreen.png
?????文件?????????429??2012-04-02?23:39??WeatherForecast\WeatherForecast\Assets\StoreLogo.png
?????目錄???????????0??2012-11-11?18:34??WeatherForecast\WeatherForecast\bin\
?????目錄???????????0??2012-11-11?18:34??WeatherForecast\WeatherForecast\bin\ARM\
?????目錄???????????0??2012-11-11?18:34??WeatherForecast\WeatherForecast\bin\ARM\Debug\
?????目錄???????????0??2012-11-11?18:34??WeatherForecast\WeatherForecast\bin\ARM\Release\
?????目錄???????????0??2012-11-11?19:07??WeatherForecast\WeatherForecast\bin\Debug\
?????文件?????????732??2012-11-11?18:32??WeatherForecast\WeatherForecast\bin\Debug\App.xaml
?????目錄???????????0??2012-11-11?21:34??WeatherForecast\WeatherForecast\bin\Debug\AppX\
?????文件????????2106??2012-11-11?20:25??WeatherForecast\WeatherForecast\bin\Debug\AppxManifest.xm
?????文件?????????732??2012-11-11?18:32??WeatherForecast\WeatherForecast\bin\Debug\AppX\App.xaml
?????文件????????2106??2012-11-11?20:25??WeatherForecast\WeatherForecast\bin\Debug\AppX\AppxManifest.xm
?????目錄???????????0??2012-11-11?19:07??WeatherForecast\WeatherForecast\bin\Debug\AppX\Assets\
?????文件?????????801??2012-04-02?23:39??WeatherForecast\WeatherForecast\bin\Debug\AppX\Assets\Logo.png
?????文件?????????329??2012-04-02?23:39??WeatherForecast\WeatherForecast\bin\Debug\AppX\Assets\SmallLogo.png
?????文件????????2146??2012-04-02?23:39??WeatherForecast\WeatherForecast\bin\Debug\AppX\Assets\SplashScreen.png
?????文件?????????429??2012-04-02?23:39??WeatherForecast\WeatherForecast\bin\Debug\AppX\Assets\StoreLogo.png
?????目錄???????????0??2012-11-11?19:07??WeatherForecast\WeatherForecast\bin\Debug\AppX\Common\
?????文件??????118789??2012-07-26?20:23??WeatherForecast\WeatherForecast\bin\Debug\AppX\Common\Standardst
?????目錄???????????0??2012-11-11?19:07??WeatherForecast\WeatherForecast\bin\Debug\AppX\document\
?????文件??????????91??2012-11-11?18:36??WeatherForecast\WeatherForecast\bin\Debug\AppX\document\readme.txt
?????文件????????2014??2012-11-11?21:31??WeatherForecast\WeatherForecast\bin\Debug\AppX\MainPage.xaml
............此處省略85個文件信息
- 上一篇:生成含計算機編號的桌面背景
- 下一篇:基于51單片機-溫度監控系統
評論
共有 條評論