Hello Metro:Windows 8下首个App

简介: Windows 8 CP发布了,网络一片沸腾。我也来凑个热闹,做了个小应用,供大家分享。 首先Show一下Windows 8、IE10还有Visual Studio 11的安装界面: Visual Studio 11 Beta安装完毕,进入Splash界面:     好吧,现在就开始创建首个Metro应用吧。

Windows 8 CP发布了,网络一片沸腾。我也来凑个热闹,做了个小应用,供大家分享。

首先Show一下Windows 8、IE10还有Visual Studio 11的安装界面:

1.Setup

Visual Studio 11 Beta安装完毕,进入Splash界面:

2.Splash 

 

好吧,现在就开始创建首个Metro应用吧。先要选择Metro Template:

3.Metro Template

哇噢,跳出一个License框!Agree,必须的!

4.Developer License

 

好吧,进入最熟悉的编码界面。上硬菜了~

5.First C# Metro App

 

先睹为快,看看效果吧:

6.Xaml design (no license) .

又是这该死的license~ 搞定之后,预览效果如下:

7.Design UI

 

运行之前,要配置app manifest,详见下图:

8.app manifest (UI)

9.app manifest (capabilities)

 

 

 

 

 

最终的运行效果如下:

10.Final screen snapshot

 

最后附上源码,不用说了,这是大家最最喜欢的了~

附件: 332953612419.zip

 

另注:关于申请Licnese

如果电脑直接联网,不使用代理,可以直接点击弹出的对话框,在线获得Develper License。

如果电脑是通过代理联网,必须使用PowerShell脚本进行Developer Licnese 的申请,脚本代码如下:

Add-Type @"
namespace AcquireDeveloper
{
using System;
using System.Runtime.InteropServices;


internal static class NativeMethods
{
[DllImport(
"WSClient.dll", EntryPoint = "CheckDeveloperLicense", SetLastError = true)]
public static extern int CheckDeveloperLicense(out System.Runtime.InteropServices.ComTypes.FILETIME filetime);

[DllImport(
"WSClient.dll", EntryPoint = "AcquireDeveloperLicense", SetLastError = true)]
public static extern DateTime AcquireDeveloperLicense(ref string machine);
}


public class Program
{
public static void Main(string[] args)
{
string machine =
".";
DateTime dt = NativeMethods.AcquireDeveloperLicense(ref machine);

Console.WriteLine(
"AcquireDeveloperLicense machine {0}, filetime is {1}", machine, dt.ToString());


System.Runtime.InteropServices.ComTypes.FILETIME ft;
int iRet = NativeMethods.CheckDeveloperLicense(out ft);
long hFT2 = (((long)ft.dwHighDateTime) << 32) + ft.dwLowDateTime;
DateTime dtExpiry = DateTime.FromFileTime(hFT2);
Console.WriteLine(
"CheckDeveloperLicense returned {0}, filetime is {1}", iRet, dtExpiry.ToString());
}
}

}

"@

[AcquireDeveloper.Program]::Main($null)



相关文章
|
Linux C++ Windows
【Azure 应用服务】Azure App Service(Windows)环境中如何让.NET应用调用SAP NetWeaver RFC函数
【Azure 应用服务】Azure App Service(Windows)环境中如何让.NET应用调用SAP NetWeaver RFC函数
152 0
【Azure 应用服务】Azure App Service(Windows)环境中如何让.NET应用调用SAP NetWeaver RFC函数
|
11月前
|
C# Windows
【Azure App Service】在App Service for Windows上验证能占用的内存最大值
根据以上测验,当使用App Service内存没有达到预期的值,且应用异常日志出现OutOfMemory时,就需要检查Platform的设置是否位64bit。
167 11
|
Java 应用服务中间件 开发工具
[App Service for Windows]通过 KUDU 查看 Tomcat 配置信息
[App Service for Windows]通过 KUDU 查看 Tomcat 配置信息
137 2
|
Java 应用服务中间件 Windows
【App Service for Windows】为 App Service 配置自定义 Tomcat 环境
【App Service for Windows】为 App Service 配置自定义 Tomcat 环境
122 2
|
PHP Windows
【Azure App Service for Windows】 PHP应用出现500 : The page cannot be displayed because an internal server error has occurred. 错误
【Azure App Service for Windows】 PHP应用出现500 : The page cannot be displayed because an internal server error has occurred. 错误
219 1
|
PHP 开发工具 git
【Azure 应用服务】在 App Service for Windows 中自定义 PHP 版本的方法
【Azure 应用服务】在 App Service for Windows 中自定义 PHP 版本的方法
125 1
|
网络安全 API 数据安全/隐私保护
【Azure App Service】.NET代码实验App Service应用中获取TLS/SSL 证书 (App Service Windows)
【Azure App Service】.NET代码实验App Service应用中获取TLS/SSL 证书 (App Service Windows)
123 0
|
Shell PHP Windows
【Azure App Service】Web Job 报错 UNC paths are not supported. Defaulting to Windows directory.
【Azure App Service】Web Job 报错 UNC paths are not supported. Defaulting to Windows directory.
114 0
|
存储 Linux Windows
【应用服务 App Service】App Service For Windows 如何挂载Storage Account File Share 示例
【应用服务 App Service】App Service For Windows 如何挂载Storage Account File Share 示例
116 0
|
应用服务中间件 nginx Windows
【Azure 应用服务】在App Service for Windows中实现反向代理
【Azure 应用服务】在App Service for Windows中实现反向代理
136 0

热门文章

最新文章

  • 1
    iOS|记一名 iOS 开发新手的前两次 App 审核经历
    159
  • 2
    flutter3-wetrip跨平台自研仿携程app预约酒店系统模板
    225
  • 3
    通过外部链接启动 Flutter App(详细介绍及示例)
    295
  • 4
    【03】仿站技术之python技术,看完学会再也不用去购买收费工具了-修改整体页面做好安卓下载发给客户-并且开始提交网站公安备案-作为APP下载落地页文娱产品一定要备案-包括安卓android下载(简单)-ios苹果plist下载(稍微麻烦一丢丢)-优雅草卓伊凡
    230
  • 5
    【02】仿站技术之python技术,看完学会再也不用去购买收费工具了-本次找了小影-感觉页面很好看-本次是爬取vue需要用到Puppeteer库用node.js扒一个app下载落地页-包括安卓android下载(简单)-ios苹果plist下载(稍微麻烦一丢丢)-优雅草卓伊凡
    246
  • 6
    【01】仿站技术之python技术,看完学会再也不用去购买收费工具了-用python扒一个app下载落地页-包括安卓android下载(简单)-ios苹果plist下载(稍微麻烦一丢丢)-客户的麻将软件需要下载落地页并且要做搜索引擎推广-本文用python语言快速开发爬取落地页下载-优雅草卓伊凡
    262
  • 7
    【Azure Function】Function App门户上的Test/Run返回错误:Failed to fetch
    164
  • 8
    小游戏源码开发之可跨app软件对接是如何设计和开发的
    186
  • 9
    原生鸿蒙版小艺APP接入DeepSeek-R1,为HarmonyOS应用开发注入新活力
    648
  • 10
    PiliPala:开源项目真香,B站用户狂喜!这个开源APP竟能自定义主题+去广告?PiliPala隐藏功能大揭秘
    343