资源简介
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单片机-温度监控系统
相关资源
- PID_AutoTune_v0.rar
- vspd7.2.308.zip
- 价值2k的H漫画小说系统
- Pythonamp;课堂amp;笔记(高淇amp;400;集第
- ddos压力测试工具99657
- UML建模大全
- 开源1A锂电池充电板TP4056原理图+PCB
- m1卡 ic卡可选择扇区初始化加密软件
- TSCC.exe
- FTP课程设计(服务端+客户端)
- 计算机图形学 边填充算法实现代码
- 电力系统潮流计算程序集合
- oracle数据迁移项目实施方案
- Web Api 通过文件流 文件到本地
- Visio图标-最新最全的网络通信图标库
- Spire API文档
- OpenGL参考手册
- Python中Numpy库最新教程
- SPD博士V5.3.exe
- 直流无刷电机方波驱动 stm32 例程代码
- layui后台管理模板
- 仿知乎界面小程序源代码
- 云平台-阿里云详细介绍
- photoshop经典1000例
- scratch垃圾分类源码(最终版本).sb
- IAR ARM 7.8破解
- TI CCS V5.4 安装步骤及破解文件
- 松下plc FP-XH的驱动
- 局域网硬件信息收集工具
- 加快Windows XP操作系统开机速度
评论
共有 条评论