wp7开发环境搭建

简介

本文通过step by step的模式讲述如何从0开始搭建Window Phone 7开发环境,如果开发简单的Windows Phone 7程序。只是一篇介绍性的文章,但是迈进Windows Phone 7开发之路其实就那么简单,一起来开发Windows Phone 7吧。

Windows 7安装

目前Windows Phone 7开发环境只是支持Windows 7和Vista,我推荐使用Windows 7,下面讲述如何搭建Windows 7的环境。

准备条件

1. Windows Xp的系统。

2. 100 GB 硬盘空间

3. 2GB的内存

4. 如果要开发XNA程序的话, 显示卡支持 DirectX® 10 或者更高版本,同时带WDDM 1.1 驱动。

安装步骤

1. 下载Windows 7 ISO

2. 下载 Windows 7 USB/DVD Download Tool

3. 安装Windows 7 USB/DVD Download Tool。

格式化一个大于4G的USB盘。

  • clip_image002

    运行Windows 7 USB/DVD Download Tool。

    clip_image004

    选择ISO的文件路径。

    clip_image006

    选择USB Device

    clip_image008

    选择USB盘符。

    clip_image010

    clip_image012

    自动把ISO存放到该USB盘上。

    clip_image014

    重启机器自动进入安装程序,点击Next Next完成安装。安装程序比安装Windows XP简单,网络也不需要手工配置。就能正常使用。

    Windows Phone 7开发环境安装

    1.下载 Windows Phone Developer Tools CTP - April Refresh

    下载Windows Phone Developer Tools CTP - April Refresh,这个包含了以下所有组件,一次安装就OK了。

    Visual Studio 2010 Express for Windows Phone CTP 
    Windows Phone Emulator CTP 
    Silverlight for Windows Phone CTP 
    XNA Game Studio 4.0 CTP

    2. 点击安装vm_web.exe

    Windows-Phone-7-Installation-2

    点击Install Now

    Windows-Phone-7-Installation-1

    点击Accept,这是免费软件,enjoy it。

    Windows-Phone-7-Installation-3

    Windows-Phone-7-Installation-5

    Windows-Phone-7-Installation-4

    大概20分钟,安装完成,需要重启机器。

    编写第一个Windows Phone 7程序

    Windows-Phone-7-Installation-6

    启动Visual Studio 2010 Express for Windows Phone

    Windows-Phone-7-Installation-7

    打开欢迎页面,这里有一些链接可以下载Windows Phone 7相关的文档和视频。

    Windows-Phone-7-Installation-8

    新建一个Window Phone Application项目,叫做HelloWorldWindowsPhone。

    image

    修改MainPage.xmal的TextBlock textBlockPageTitle 和 textBlockListTitle

    Code Snippet
    1. <Grid x:Name="TitleGrid" Grid.Row="0">
    2. <TextBlock Text="Hello world application" x:Name="textBlockPageTitle" Style="{StaticResource PhoneTextPageTitle1Style}"/>
    3. <TextBlock Text="Say Hello World" x:Name="textBlockListTitle" Style="{StaticResource PhoneTextPageTitle2Style}"/>
    4. Grid>

    增加一个按钮

    Code Snippet
    1. <Grid x:Name="ContentGrid" Grid.Row="1">
    2. <Button Content="Say Hi" Height="70" HorizontalAlignment="Left" Margin="144,65,0,0" Name="button1" VerticalAlignment="Top" Width="160" Click="button1_Click" />
    3. Grid>

    增加按钮处理事件

    Code Snippet
    1. private void button1_Click(object sender, RoutedEventArgs e)
    2. {
    3. textBlockListTitle.Text = "Say Hi!";
    4. }

    一个demo程序就完成了。


    点击F5启动Emulator进行调试

    Windows-Phone-7-Installation-9

    进入我们编写的程序。

    Windows-Phone-7-Installation-10

    点击按钮

    Windows-Phone-7-Installation-11

    Windows Phone 7的开发环境部署非常的简单,开始Windows Phone 7的旅途吧,还等什么呢? Let's go!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/388309.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

旧金山字体_旧金山建筑业的兴衰。 施工趋势与历史

旧金山字体This series of articles is devoted to the study of the construction activity of the main city of Silicon Valley — San Francisco. Charts and calculations were built with the help of Jupyter Notebook (Kaggle)该系列文章专门研究硅谷主要城市旧金山的建…

gym100825G. Tray Bien(轮廓线DP)

题意:3 * N的格子 有一些点是坏的 用1X1和1X2的砖铺有多少种方法 题解:重新学了下轮廓线 写的很舒服 #include <bits/stdc.h> using namespace std; typedef long long ll;int n, m; int vis[30][5]; ll dp[25][1 << 3];void dfs(int num, int i, int state, int n…

github上打包的样式为什么在预览的时候,出现404

这是资源引用的问题 在这里主要是需要在dist的index.html文件内将"./static/css/style.css"改为"static/css/style.css",就可以加载成功了&#xff0c; 至于js的路径"./static/js/app.js"&#xff0c;就不用改了转载于:https://www.cnblogs.com/…

lambda函数,函数符_为什么您永远不应该在Lambda函数中使用print()

lambda函数&#xff0c;函数符两个Lambda用户的故事 (A Tale of Two Lambda Users) 故事1&#xff1a;业余 (Tale #1: The Amateur) One moment everything is fine, then … Bam! Your Lambda function raises an exception, you get alerted and everything changes instantl…

[ BZOJ 4668 ] 冷战

\(\\\) \(Description\) 有\(N\)个点&#xff0c;开始没有边相连&#xff0c;进行按顺序给出的\(M\)个操作&#xff1a; \(0\ u\ v\) 将\(u,v\)两点连一条边\(1\ u\ v\) 查询\(u,v\)两点最早在第几条边连接的时候被连通每次询问输出一个边的编号&#xff0c;强制在线。 \(N,M\i…

使用容器和数据库克隆进行数据库迁移

SQL Server迁移在DBA的生命周期中是一个常量&#xff0c;SQL Server 2008的支持终结正在推动大量的迁移规划。数据库迁移通常涉及将备份还原到目标环境&#xff0c;为应用程序测试提供开发和QA环境&#xff0c;以及识别已弃用的功能。当处理涉及需要数小时恢复的大量数据库的大…

C++获取PE文件的入口点

2009-10-07 10:17 C获取PE文件的入口点 源码&#xff1a; #include "stdafx.h" #include <iostream> #include <windows.h> using namespace std; int main(int argc, char* argv[]) { char *FileName argv[1]; HANDLE hFile CreateFile(FileName,GENE…

ai 中 统计_AI统计(第2部分)

ai 中 统计Today I plan to cover the following topics: Linear independence, special matrices, and matrix decomposition.今天&#xff0c;我计划涵盖以下主题&#xff1a;线性独立性&#xff0c;特殊矩阵和矩阵分解。 线性独立 (Linear independence) A set of vectors …

如何修改浏览器的默认滚动条样式

如何修改浏览器的默认滚动条样式 /* 浏览器滚动条样式 *//* width */ ::-webkit-scrollbar {width: 4px;height: 4px; }/* Track */ ::-webkit-scrollbar-track {background: rgb(255, 255, 255);border-radius: 8px; }/* Handle */ ::-webkit-scrollbar-thumb {background: rg…

PE

PE文件规定了可执行文件的格式&#xff0c;凡是符合此格式的文件都能在windows系统上运行。PE文件的格式暂且不谈&#xff0c;说一些感染PE文件的几种途径。 导入表感染。这个涉及比较复杂的操作&#xff0c;首先&#xff0c;要自行写一个dll文件&#xff0c;提供程序中对原dl…

python入门系列:对象引用、垃圾回收、可变性

Python中的变量是什么 引言 Python和java中的变量本质不一样&#xff0c;java的变量可以理解为一个盒子&#xff0c;用来容纳我们的对象&#xff0c;使用前要先声明它&#xff0c;好分配给我们合适的内存空间。Python的变量可以理解为一个标签&#xff0c;先构造出对象&#xf…

twitter数据分析_Twitter上最受欢迎的数据科学文章主题

twitter数据分析If you’ve written data science articles or are trying to get started, finding the most popular topics is a big help in getting your articles read. Below are the steps to easily determine what these topics are using R and the results of the …

JAVA遇见HTML——JSP篇(JSP状态管理)

案例&#xff1a;Cookie在登录中的应用 URL编码与解码的工具类解决中文乱码的问题&#xff0c;这个工具类在java.net.*包里 编码&#xff1a;URLEncoder.encode(String s,String enc)//s&#xff1a;对哪个字符串进行编码&#xff0c;enc&#xff1a;用的字符集&#xff08;例&…

PE文件讲解

我们大家都知道&#xff0c;在Windows 9x、NT、2000下&#xff0c;所有的可执行文件都是基于Microsoft设计的一种新的文件格式Portable Executable File Format&#xff08;可移植的执行体&#xff09;&#xff0c;即PE格式。有一些时候&#xff0c;我们需要对这些可执行文件进…

easyui 布局之window和panel一起使用时,拉动window宽高时panel不跟随一起变化

项目开发中布局是每一个组件都由最外层的window和内部的至少一个panel组成&#xff0c;其他的细小组件再依次放到panel中。 问题&#xff1a;当拉动外部的window时我们希望内部的panel的宽高也跟着变化&#xff0c;但是并没有&#xff0c;尤其拉动其高度是更为明显&#xff0c;…

是什么使波西米亚狂想曲成为杰作-数据科学视角

平均“命中率”是什么样的 (What an Average ‘Hit’ looks like) Before we break the song down, let us have a brief analysis of what the greatest hits of all time had in common. I have picked 1500 songs ( charting hits ) right from the ’50s to the’10s, spre…

PE文件感染和内存驻留

这次&#xff0c;作者将和大家一起讨论病毒的感染技术。另外&#xff0c;从本文开始&#xff0c;我们将陆续接触到一些病毒的高级编码技术。例如&#xff0c;内存驻留、EPO&#xff08;入口点模糊&#xff09;技术、加密技术、多态和变形等。通过这些高级技巧&#xff0c;你将进…

Python函数积累

评估函数eval() 去掉参数最外侧引号并执行余下语句的函数 fun:将让任何输入的字符串转换为python语句&#xff08;如"12132" -> 12132&#xff09;转载于:https://www.cnblogs.com/LYluck/p/10376531.html

流行编程语言_编程语言的流行度排名

流行编程语言There has never been a unanimous agreement on what the most popular programming languages are, and probably never will be. Yet we believe that there is merit in trying to come up with ways to rank the popularity of programming languages. It hel…