{"id":312,"date":"2010-04-05T10:34:01","date_gmt":"2010-04-05T05:04:01","guid":{"rendered":"http:\/\/live-42gears-site.pantheonsite.io\/blog\/?p=312"},"modified":"2024-12-26T10:25:38","modified_gmt":"2024-12-26T10:25:38","slug":"write-hello-world-program-for-windows-phone-7","status":"publish","type":"post","link":"https:\/\/www.42gears.com\/de\/blog\/write-hello-world-program-for-windows-phone-7\/","title":{"rendered":"Writing &#8222;Hello World&#8220; program for Windows Phone 7"},"content":{"rendered":"<p>Windows Phone 7 (WP7) is a cool new mobile platform from Microsoft. Developers can use Silverlight, XNA Framework and of course .NET compact framework for developing applications for WP7.<\/p>\n<p><strong>What do you need<\/strong><\/p>\n<p>To get started, download and install the following tools on your Windows 7 or Vista PC.<\/p>\n<p>http:\/\/www.microsoft.com\/downloads\/details.aspx?FamilyId=2338b5d1-79d8-46af-b828-380b0f854203&#038;displaylang=en<\/p>\n<p>Installation includes Visual Studio 2010, Expression Blend, Windows Phone Emulator,  XNA Game studio along with all the documentation required for writing your next great app.<\/p>\n<p>Note that if Visual Studio 2010 Professional or above is already installed on the PC then only an Add-in for Windows Phone development is installed rather than complete installation of Visual Studio 2010 Express Edition.<\/p>\n<p>To familiarize with the development environment its better to first develop a simple Silverlight application.<\/p>\n<p><strong>Create Hello World Project in SilverLight<\/strong><\/p>\n<p>1. Launch Visual Studio and Select <strong>File -&gt; New Project<\/strong> command.<br \/>\n2. Select <strong>SilverLight for Windows Phone<\/strong> as template and <strong>Windows Phone Application<\/strong> as project type.<br \/>\n3. Specify <strong>HelloWorld<\/strong> as project name and Click OK button.<br \/>\n4. Wizard will create all the necessary files as the foundation for our HelloWorld application.<\/p>\n<p><strong>What Wizard generates<\/strong><\/p>\n<p>Most important files are generated by the wizard are:<br \/>\n1. MainPage.xaml : Default page with some UI element.<br \/>\n2. App.xaml : This file is used to declare shared application resources like colors, brushes, fonts and various style objects. The code-behind file app.xaml.cs is used to handle global application level events like Application_Startup, Application_Exit and Application_UnhandledException.<\/p>\n<p><strong>Building the Project<\/strong><br \/>\nSince this is the first application built with the newly installed dev environment, its good to build the default project to rule out any installation problems. <strong>Right-click<\/strong> on the Solution in the Solution Explorer and Select <strong>Build<\/strong> command.<\/p>\n<p>The build is successful if you will see the following message in the output window.<\/p>\n<p>&#8222;========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========&#8220;<\/p>\n<p>All is good at this stage. Go to Windows Explorer and browse to <strong>.HelloWorldHelloWorldBinDebug<\/strong> folder and you will find HelloWorld.xap which is your actual compiled and compressed Silverlight application.<\/p>\n<p>Lets enhance the program by adding &#8222;Hello World&#8220; functionality :).<\/p>\n<p><strong>Adding Hello World Stuff<\/strong><\/p>\n<p>1. Select &#8222;My Application&#8220; text block in the design view or in XAML view and change it to say, &#8222;42Gears&#8220;.<br \/>\n2. Select &#8222;page title&#8220; text block and change it to &#8222;Hello World&#8220;.<\/p>\n<p>Build the project and a new HelloWorld.xap file will be generated.<\/p>\n<p><strong>Running Hello World Program<\/strong><\/p>\n<p>Now you are ready to launch the application. Press F5 to start debugging or Ctrl-F5 to Start without debugging. Windows Phone 7 emulator will be launched and HelloWorld.xap will be deployed and your first application will start running on the emulator.<\/p>\n<p>For the first time it will take sometime for the emulator to start. Once its running, you can hit F5 or Ctrl-F5 to quickly deploy and run your application.<\/p>\n<p>Well.. thats all for the HelloWorld application for Windows Phone 7. Future posts will involve more advanced topics. Stay tuned!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows Phone 7 (WP7) is a cool new mobile platform from Microsoft. Developers can use Silverlight, XNA Framework and of course .NET compact framework for developing applications for WP7. What do you need To get started, download and install the following tools on your Windows 7 or Vista PC. http:\/\/www.microsoft.com\/downloads\/details.aspx?FamilyId=2338b5d1-79d8-46af-b828-380b0f854203&#038;displaylang=en Installation includes Visual Studio 2010,&hellip;<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[39,8,31,60],"tags":[61],"class_list":["post-312","post","type-post","status-publish","format-standard","hentry","category-development","category-general","category-windows-mobile","category-windows-phone-7","tag-windows-phone-7"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.6 (Yoast SEO v24.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Writing &quot;Hello World&quot; program for Windows Phone 7 - 42Gears Mobility Systems<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.42gears.com\/blog\/write-hello-world-program-for-windows-phone-7\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Writing &quot;Hello World&quot; program for Windows Phone 7\" \/>\n<meta property=\"og:description\" content=\"Windows Phone 7 (WP7) is a cool new mobile platform from Microsoft. Developers can use Silverlight, XNA Framework and of course .NET compact framework for developing applications for WP7. What do you need To get started, download and install the following tools on your Windows 7 or Vista PC. http:\/\/www.microsoft.com\/downloads\/details.aspx?FamilyId=2338b5d1-79d8-46af-b828-380b0f854203&#038;displaylang=en Installation includes Visual Studio 2010,&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.42gears.com\/blog\/write-hello-world-program-for-windows-phone-7\/\" \/>\n<meta property=\"og:site_name\" content=\"42Gears Mobility Systems\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/42gears\" \/>\n<meta property=\"article:published_time\" content=\"2010-04-05T05:04:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-26T10:25:38+00:00\" \/>\n<meta name=\"author\" content=\"42Gears Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@42Gears\" \/>\n<meta name=\"twitter:site\" content=\"@42Gears\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"42Gears Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.42gears.com\/blog\/write-hello-world-program-for-windows-phone-7\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.42gears.com\/blog\/write-hello-world-program-for-windows-phone-7\/\"},\"author\":{\"name\":\"42Gears Team\",\"@id\":\"https:\/\/www.42gears.com\/#\/schema\/person\/28a14f2c32de4a7903ac672579a88a2d\"},\"headline\":\"Writing &#8222;Hello World&#8220; program for Windows Phone 7\",\"datePublished\":\"2010-04-05T05:04:01+00:00\",\"dateModified\":\"2024-12-26T10:25:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.42gears.com\/blog\/write-hello-world-program-for-windows-phone-7\/\"},\"wordCount\":501,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/www.42gears.com\/#organization\"},\"keywords\":[\"Windows Phone 7\"],\"articleSection\":[\"Development\",\"General\",\"Windows Mobile\",\"Windows Phone 7\"],\"inLanguage\":\"de-DE\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.42gears.com\/blog\/write-hello-world-program-for-windows-phone-7\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.42gears.com\/blog\/write-hello-world-program-for-windows-phone-7\/\",\"url\":\"https:\/\/www.42gears.com\/blog\/write-hello-world-program-for-windows-phone-7\/\",\"name\":\"Writing \\\"Hello World\\\" program for Windows Phone 7 - 42Gears Mobility Systems\",\"isPartOf\":{\"@id\":\"https:\/\/www.42gears.com\/#website\"},\"datePublished\":\"2010-04-05T05:04:01+00:00\",\"dateModified\":\"2024-12-26T10:25:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.42gears.com\/blog\/write-hello-world-program-for-windows-phone-7\/#breadcrumb\"},\"inLanguage\":\"de-DE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.42gears.com\/blog\/write-hello-world-program-for-windows-phone-7\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.42gears.com\/blog\/write-hello-world-program-for-windows-phone-7\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.42gears.com\/de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Writing &#8220;Hello World&#8221; program for Windows Phone 7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.42gears.com\/#website\",\"url\":\"https:\/\/www.42gears.com\/\",\"name\":\"42Gears Mobility Systems\",\"description\":\"Mobile Device Management (MDM), Mobile Security &amp; Mobile Device Lockdown\",\"publisher\":{\"@id\":\"https:\/\/www.42gears.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.42gears.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de-DE\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.42gears.com\/#organization\",\"name\":\"MDM - 42Gears\",\"url\":\"https:\/\/www.42gears.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de-DE\",\"@id\":\"https:\/\/www.42gears.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.42gears.com\/wp-content\/uploads\/2018\/12\/Featured-Image-42Gears-logo.png\",\"contentUrl\":\"https:\/\/www.42gears.com\/wp-content\/uploads\/2018\/12\/Featured-Image-42Gears-logo.png\",\"width\":499,\"height\":330,\"caption\":\"MDM - 42Gears\"},\"image\":{\"@id\":\"https:\/\/www.42gears.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/42gears\",\"https:\/\/x.com\/42Gears\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.42gears.com\/#\/schema\/person\/28a14f2c32de4a7903ac672579a88a2d\",\"name\":\"42Gears Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de-DE\",\"@id\":\"https:\/\/www.42gears.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7d257fb658a429b8607872336eac3833a8314ca3ca67d72c90ceeddc7700c42e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7d257fb658a429b8607872336eac3833a8314ca3ca67d72c90ceeddc7700c42e?s=96&d=mm&r=g\",\"caption\":\"42Gears Team\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Writing \"Hello World\" program for Windows Phone 7 - 42Gears Mobility Systems","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.42gears.com\/blog\/write-hello-world-program-for-windows-phone-7\/","og_locale":"de_DE","og_type":"article","og_title":"Writing \"Hello World\" program for Windows Phone 7","og_description":"Windows Phone 7 (WP7) is a cool new mobile platform from Microsoft. Developers can use Silverlight, XNA Framework and of course .NET compact framework for developing applications for WP7. What do you need To get started, download and install the following tools on your Windows 7 or Vista PC. http:\/\/www.microsoft.com\/downloads\/details.aspx?FamilyId=2338b5d1-79d8-46af-b828-380b0f854203&#038;displaylang=en Installation includes Visual Studio 2010,&hellip;","og_url":"https:\/\/www.42gears.com\/blog\/write-hello-world-program-for-windows-phone-7\/","og_site_name":"42Gears Mobility Systems","article_publisher":"https:\/\/www.facebook.com\/42gears","article_published_time":"2010-04-05T05:04:01+00:00","article_modified_time":"2024-12-26T10:25:38+00:00","author":"42Gears Team","twitter_card":"summary_large_image","twitter_creator":"@42Gears","twitter_site":"@42Gears","twitter_misc":{"Written by":"42Gears Team","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.42gears.com\/blog\/write-hello-world-program-for-windows-phone-7\/#article","isPartOf":{"@id":"https:\/\/www.42gears.com\/blog\/write-hello-world-program-for-windows-phone-7\/"},"author":{"name":"42Gears Team","@id":"https:\/\/www.42gears.com\/#\/schema\/person\/28a14f2c32de4a7903ac672579a88a2d"},"headline":"Writing &#8222;Hello World&#8220; program for Windows Phone 7","datePublished":"2010-04-05T05:04:01+00:00","dateModified":"2024-12-26T10:25:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.42gears.com\/blog\/write-hello-world-program-for-windows-phone-7\/"},"wordCount":501,"commentCount":2,"publisher":{"@id":"https:\/\/www.42gears.com\/#organization"},"keywords":["Windows Phone 7"],"articleSection":["Development","General","Windows Mobile","Windows Phone 7"],"inLanguage":"de-DE","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.42gears.com\/blog\/write-hello-world-program-for-windows-phone-7\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.42gears.com\/blog\/write-hello-world-program-for-windows-phone-7\/","url":"https:\/\/www.42gears.com\/blog\/write-hello-world-program-for-windows-phone-7\/","name":"Writing \"Hello World\" program for Windows Phone 7 - 42Gears Mobility Systems","isPartOf":{"@id":"https:\/\/www.42gears.com\/#website"},"datePublished":"2010-04-05T05:04:01+00:00","dateModified":"2024-12-26T10:25:38+00:00","breadcrumb":{"@id":"https:\/\/www.42gears.com\/blog\/write-hello-world-program-for-windows-phone-7\/#breadcrumb"},"inLanguage":"de-DE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.42gears.com\/blog\/write-hello-world-program-for-windows-phone-7\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.42gears.com\/blog\/write-hello-world-program-for-windows-phone-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.42gears.com\/de\/"},{"@type":"ListItem","position":2,"name":"Writing &#8220;Hello World&#8221; program for Windows Phone 7"}]},{"@type":"WebSite","@id":"https:\/\/www.42gears.com\/#website","url":"https:\/\/www.42gears.com\/","name":"42Gears Mobility Systems","description":"Mobile Device Management (MDM), Mobile Security &amp; Mobile Device Lockdown","publisher":{"@id":"https:\/\/www.42gears.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.42gears.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de-DE"},{"@type":"Organization","@id":"https:\/\/www.42gears.com\/#organization","name":"MDM - 42Gears","url":"https:\/\/www.42gears.com\/","logo":{"@type":"ImageObject","inLanguage":"de-DE","@id":"https:\/\/www.42gears.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.42gears.com\/wp-content\/uploads\/2018\/12\/Featured-Image-42Gears-logo.png","contentUrl":"https:\/\/www.42gears.com\/wp-content\/uploads\/2018\/12\/Featured-Image-42Gears-logo.png","width":499,"height":330,"caption":"MDM - 42Gears"},"image":{"@id":"https:\/\/www.42gears.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/42gears","https:\/\/x.com\/42Gears"]},{"@type":"Person","@id":"https:\/\/www.42gears.com\/#\/schema\/person\/28a14f2c32de4a7903ac672579a88a2d","name":"42Gears Team","image":{"@type":"ImageObject","inLanguage":"de-DE","@id":"https:\/\/www.42gears.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7d257fb658a429b8607872336eac3833a8314ca3ca67d72c90ceeddc7700c42e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7d257fb658a429b8607872336eac3833a8314ca3ca67d72c90ceeddc7700c42e?s=96&d=mm&r=g","caption":"42Gears Team"}}]}},"author_meta":{"ID":"7","user_nicename":"42gears","user_email":"42gears@gmail.com","user_registered":"2015-07-15 04:55:37","display_name":"42Gears Team","first_name":"42Gears","last_name":"Team"},"_links":{"self":[{"href":"https:\/\/www.42gears.com\/de\/wp-json\/wp\/v2\/posts\/312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.42gears.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.42gears.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.42gears.com\/de\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.42gears.com\/de\/wp-json\/wp\/v2\/comments?post=312"}],"version-history":[{"count":3,"href":"https:\/\/www.42gears.com\/de\/wp-json\/wp\/v2\/posts\/312\/revisions"}],"predecessor-version":[{"id":109949,"href":"https:\/\/www.42gears.com\/de\/wp-json\/wp\/v2\/posts\/312\/revisions\/109949"}],"wp:attachment":[{"href":"https:\/\/www.42gears.com\/de\/wp-json\/wp\/v2\/media?parent=312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.42gears.com\/de\/wp-json\/wp\/v2\/categories?post=312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.42gears.com\/de\/wp-json\/wp\/v2\/tags?post=312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}