WiththereleaseoftheWindowsPhone(WP)developertools,Microsoftbringstheuser-friendly,highproductivityVisualStudioDevelopmentenvironmenttoWP.随着版本的Windows电话(WP)的开发工具,微软将用户友好的,高生产力的VisualStudio开发环境可湿性粉剂。
AsQtdeveloperyouarefamiliarwithQtCreatorandQtSDKsoyoucanquicklymigratetoWPdevelopertoolsandworkwithease.作为Qt开发人员,你熟悉的QtCreator和QtSDK,所以你可以快速迁移到WP的开发工具和工作轻松。
ComparingWindowsPhoneandSymbianQtToolsWindows手机和SymbianQt工具的比较
InSymbianQtapplicationdevelopment,QtCreatorisacross-platformIntegratedDevelopmentEnvironment(IDE)tailoredtotheneedsofQtapplicationdevelopers.在SymbianQt应用程序开发,QtCreator的是一个跨平台集成开发环境(IDE)针对Qt应用程序开发人员的需求。
EquivalentIDEfornativeSymbianC++applicationdevelopmentisCarbidec++integratingdevice&platformspecificSymbianSDKsandemulators.等效IDE的本地SymbianC++应用程序开发是硬质合金C++集成设备与平台特定的SymbianSDK和模拟器。
InWP,VisualStudio2010ExpressforWindowsPhoneprovidesafull-featuredIDEforWPapplicationdevelopment.针对WindowsPhone的VisualStudio2010Express的在WP,WP应用程序开发提供一个全功能的IDE。
VisualStudio2010facilitatesdesigning,developinganddebuggingofWindowsPhoneapplications.VisualStudio2010中有利于WindowsPhone应用程序的设计,开发和调试。
It'sworthnoticingthatVisualStudioandQtVisualStudioAdd-incanalsobeusedforQtapplicationdevelopment.值得注意的是VisualStudio和QtVisualStudio中添加也可以使用Qt应用程序开发。
OtheressentialWPtoolsthathelpyouthroughthedevelopmentcycleoftheWindowsPhoneapplicationare:
通过您的WindowsPhone应用程序的开发周期,帮助其他的必不可少的可湿性粉剂工具是:
∙ExpressionBlendExpressionBlend中
∙XNAGameStudioXNA游戏工作室
∙WindowsPhoneEmulatorWindows手机模拟器的
∙SilverlightforWindowsPhoneToolkitWindows手机工具箱中的Silverlight
VisualStudioandtheotherabove-mentionedWPapplicationdevelopmenttoolsoffersimilarfunctionalitythatisprovidedbyQtCreatorandtheSymbianQtapplicationdevelopmenttools.VisualStudio和其他上述可湿性粉剂的应用开发工具提供的QtCreator和SymbianQt应用程序开发工具提供类似的功能。
ThefollowingtablegivesanoverviewofthefunctionalityofthemostimportantdevelopmenttoolsonbothQtandWPplatforms.下表给出了Qt和WP平台上最重要的开发工具的功能的概述。
Functionality功能
Audience观众
QttoolsQt工具
WindowsPhonetoolsWindows手机工具
PrimaryUIdesign:
Colors,gradientsandanimation主用户界面设计:
颜色,渐变和动画
UIdesignersUI设计师
QtQuickDesigner,QtDesignerQt的快速设计,Qt设计器
ExpressionBlendExpressionBlend中
UIdesignUI设计
UIdesignersandprogrammersUI设计师和程序员
QtQuickDesignerandQtDesignerintegratedtoQtCreatorIDEQt的快速设计和Qt设计器集成到QtCreatorIDE中
VisualStudio2010ExpressandExpressionBlendforWindowsPhoneVisualStudio2010的Express和表达为WindowsPhone混合
Applicationdevelopment(coding)应用程序开发(编码)
Programmers程序员
QtSDKincludingQtCreatorIDEQt的SDK包括QtCreatorIDE中
VisualStudio2010ExpressforWindowsPhone,SilverlightforWindowsPhoneToolkit的VisualStudio2010Express的Windows手机,Windows手机工具箱中的Silverlight
Gamedevelopment(coding)游戏开发(编码)
Programmers程序员
QtSDKincludingQtCreatorIDEQt的SDK包括QtCreatorIDE中
XNAGameStudioXNA游戏工作室
Testing/Emulation测试/仿真
Testers测试仪
QtSimulatorinQtSDK,QMLViewerQt的模拟器在QtSDK,QML的浏览器
WindowsPhoneEmulatorinVisualStudio2010Express在VisualStudio2010速成版的Windows手机模拟器
Documentation文档
Developmentteamandstakeholders开发团队和利益相关者
Doxygen,QtAssistantDoxygen的,Qt助手
NDoc,Sandcastle,Doxygen,MicrosoftHelpSystemNDoc的沙堡,Doxygen的,微软的帮助系统
QtandWindowsPhoneapplicationdevelopmenttoolsQt和Windows手机应用程序开发工具
TheWPtoolsetensuresthattheentireteamofdesigners,developersandtestersfamiliarwithQttoolsetfinditeasytomigratetotheWPdevelopment.WP工具集,确保整个团队的设计者,开发者和测试人员熟悉Qt的工具集,会发现很容易迁移到WP的发展。
DevelopmentLifeCycleandWindowsPhoneTools开发生命周期和Windows手机工具
WPtoolsetisdesignedtoaddresstheco-operationandneedsofdifferentmembersinapplicationdevelopmentteam.WP工具包旨在解决的合作,并在应用程序开发团队不同成员的需要。
InasimilarfashiontoQtQuickDesignerandQtCreatorinSymbianQt,ExpressionBlendandVisualStudiofacilitateaclosecollaborationbetweenWPdesignersanddevelopers.Qt的快速设计和QtCreator的Qt在Symbian,ExpressionBlend和VisualStudio中以类似的方式,促进可湿性粉剂设计师和开发人员之间的密切合作。
Boththesetoolssharethesamefilestructureandsourcefiles.这些工具都共享相同的文件结构和源文件。
ExpressionBlendusesXAMLforUIdesignandtheXAMLisconsumedbyVisualStudio.ExpressionBlend中使用UI设计和XAMLXAML是由VisualStudio消耗。
Thissystemallowsseparationofresponsibilitiesbetweenthedesignerandthedeveloperwhileallowingthemtoworktogetherseamlessly,asillustratedbelow.该系统允许设计师和开发人员之间的职责分离,同时让他们无缝地协同工作,如下所示。
WPtoolsetsupportsdevelopmentteamco-operation可湿性粉剂工具集,支持开发团队合作
ManagingprojectsinVisualStudio2010在VisualStudio2010管理项目
LikeQtCreator,VisualStudio2010ExpressforWPisafully-featuredIDE.的VisualStudio2010Express的可湿性粉剂和QtCreator的一样,是一个全功能的IDE。
VisualStudio2010allowsyouto:
VisualStudio2010中可以让您:
∙Managetheentirestructureofthedevelopmentproject,thesourceandtheresourcefiles管理开发项目的整个结构,源和资源文件
∙Configuretheapplicationcodebase,knownasVisualStudioSolution,asacollectionofprojectsinaseparatefunctionalunit配置项目的集合在一个独立的功能单元的应用程序代码库,被称为VisualStudio解决方案,
WithVisualStudio2010,youcanmanagesourcefiles,sharecodeandmanagetheworkamongteammembers.与VisualStudio2010,您可以管理源文件,代码共享和管理团队成员之间的工作。
VisualStudiointegratesacompilerandadebugger.VisualStudio中集成了编译器和调试器。
YoucanaccessboththecompilerandthedebuggereitherfromtheGUIorfromthecommandline.您可以访问,无论是从GUI或命令行编译器和调试器。
CreatinganewbasicSilverlightapplicationwithVisualStudioisstraightforward.创建一个新的基本的SilverlightVisualStudio应用程序非常简单。
WestartWPdevelopmentbycreatingasimpleShoppingListexampleapplicationstepbystep.首先,我们创建一个简单的ShoppingList例如应用一步一步可湿性粉剂发展。
1.StartVisualStudio2010ExpressforWPfromStartmenu.1,开始从“开始”菜单中的可湿性粉剂的VisualStudio2010速成。
2.InVisualStudio2010,openFilemenuandclickNewProject.2,在VisualStudio2010中,打开文件菜单,单击新建项目。
3.IntheNewProjectdialogbox,chooseVisualC#templatesfromtheInstalledtemplates.3,在新建项目对话框中,选择“从已安装的模板的VisualC#模板。
4.ChooseSilverlightforWindowsPhonetemplatesandselectWindowsPhoneApplication.4,为WindowsPhone模板选择Silverlight和选择WindowsPhone应用程式。
5.IntheNametextbox,enternameShoppingListforproject.5,在“名称”文本框中,输入项目名称ShoppingList。
SelectlocationforShoppingListprojectandclickOK.ShoppingList项目选择的位置,然后单击“确定“。
6.Intheopeningdialog,selectWindowsPhone7.1fromtheTargetWindowsPhoneOSVersiondrop-downlistandclickOK.6,在打开的对话框中,选择目标Windows手机OS版本下拉列表中的WindowsPhone7.1,然后单击确定。
VisualStudio2010createsthenewproject.VisualStudio2010中创建新的项目。
TheSolutionExplorerpanedisplaysthesolutionthatyoucreated.解决方案资源管理器“窗格中显示您创建的解决方案。
Thissolutionhasonlyasingleprojectcontainingthesources,resourcesandproperties.该解决方案只有一个单一的项目,其中包含的来源,资源和属性。
NewWindowsPhoneSilverlightapplicationinVisualStudio新的WindowsPhoneSilverlight应用程序在VisualStudio
Note:
UnlikeQtCreator,VisualStudio2010ExpressforWPdoesnotprovideintegrationwithsourcecontrolsystems.注:
QtCreator的不同的VisualStudio2010Express的可湿性粉剂不提供源代码控制系统集成。
TheVisualStudioProfessionaleditionprovidesfeaturessuchasintegrationwithvarioussourcecontrolsystemslikeSubversion.VisualStudio专业版提供了功能,如各种源集成控制系统,就像Subversion。
YoucanalsouseVisualStudioTeamSystem,whichisdesignedforgreatercommunicationandcollaborationamongthedevelopmentteams.您还可以使用VisualStudio团队系统,这是更大的开发团队之间的沟通和合作而设计的。
WindowsPhoneUIDesignToolsWindows手机的用户界面设计工具
TheWPdevelopertoolsforUIdesigninclude:
UI设计的WP的开发工具包括:
∙VisualStudioUIDesignerVisualStudio的UI设计师
∙ExpressionBlendExpressionBlend中
AsabasistoapplicationUIdesignandUIdesigntools,WPusesaspecificXMLmarkuplanguage,XAML,fortheUIspecification.作为一个应用程序的UI设计和用户界面设计工具的基础上,WP采用了一个特殊的XML标记语言,XAML中,UI规范。
InQtQuick,UIspecificationisconstructedusingJavaScript-basedQMLUIdefinitionlanguage.在Qt快速,UI规范使用基于JavaScript的QML的UI定义语言。
VisualStudioUIDesignerforWindowsPhoneVisualStudio的用户界面设计的WindowsPhone
VisualStudioUIDesignerforWPhasasimilarpurposeandsetoffeaturescomparedtotheQtQuickDesigner&QtDesignerintegratedtoQtCreatorsoQtapplicationdeveloperswillfinditeasytouse.VisualStudio的用户界面设计可湿性粉剂也有类似的目的相比,Qt的快速设计和QtCreator的QtDesigner的集成,使Qt应用程序开发人员会发现很容易使用的功能和设置。
BasicapplicationUIdesignwithVisualStudioUIDesignerissimple.Basic应用程序与VisualStudio的用户界面设计UI设计非常简单。
Inourexampleproject,themainpagefortheShoppingListapplication,MainPage.xaml,isalreadyopenintheVisualStudioUIDesignerforediting.在我们的例子项目中,ShoppingList应用程序,MainPage.xaml中,主网页已经打开在VisualStudio编辑UI设计师。
Tochangethetitlesoftheapplicationandthecurrentpageandtoaddatextblocktoapplication'scontentarea,dothefollowing:
要改变的应用程序和当前页面的标题,并添加一个文本块到应用程序的内容区域,做到以下几点:
1.Right-clicktheapplicationtitleMYAPPLICATIONinVisualStudioUIDesignerandselectProperties.1。
右键单击应用程序的标题我在VisualStudio的UI设计中的应用,并选择“属性“。
2.InthePropertieswindow,selectTextandenterSHOPPINGLIST.2,在属性窗口中,选择“文本”,输入购物清单。
3.Similarly,changethetitleofthepagebyenteringMyListintheTextpropertyofthepagetitle.3,同样,改变页面标题,页面标题的Text属性中输入我的清单。
4.DragaTextBlockfromtheToolbox.Placeitontopofthecontentpanel.4,从工具箱拖动一个TextBlock它放置在内容面板的顶部。
5.Updatethetextblock'sTextpropertytoItem.5。
文本块的更新项的Text属性。
ApplicationandpagetitlechangedinShoppingListapplic