Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > Mobile > Windows Phone Dev - สอนเขียน App บนโปรแกรม Windows Phone 7 , Windows Phone 8 > การสร้าง Project บน Windows Phone 8 และการรันบน Windows Phone 8 Emulator



Clound SSD Virtual Server

การสร้าง Project บน Windows Phone 8 และการรันบน Windows Phone 8 Emulator

การสร้าง Project บน Windows Phone 8 และการรันบน Windows Phone 8 Emulator แม้ว่า Windows Phone 8 SDK จะถูกพัฒนาด้วย Windows 8 และ Visual Studio 2012 แต่รูปแบบการเขียนนั้นจะไม่ต่างอะไรกับ Visual Studio ใน Version อื่น ๆ และเนื่องจากบทความก่อนหน้านี้ผมได้เขียนตั้งแต่ Windows Phone ยังเป็น Version 7.1 อยู่ แต่จากที่ได้ทำการ Create Project บน Windows Phone 8 SDK นั้นพบว่า หลัก ๆ แล้วเครื่องมือ Tools ต่าง ๆ จะเหมือนเดิมมากกว่า 90% แต่จะมีเพียง Control บางตัวที่เกิดขึ้นมาใหม่ ๆ เท่านั้น และรูปแบบการเขียนก็จะยังใช้ .NET Framework ด้วย VB.NET กับ C# เช่นเดิม เพราะฉะนั้นตัวอย่างต่าง ๆ ที่ผมเขียนไว้ใน Version 7.1 จะสามารถใช้ได้กับ Version 8.0 อย่างไม่มีปัญหา

Create Project Windows Phone 8

การสร้าง Project บน Windows Phone 8 และการรันบน Windows Phone 8 Emulator


Install ติดตั้ง Windows Phone 8 SDK สำหรับการพัฒนาโปรแกรมบน Windows Phone 8


ครั้งแรกเราอาจจะงงกับ Interface บน Windows 8 พอสมควร เพราะตอนนี้ปุ่ม Start Menu ไม่มีแล้ว แต่สามารถเรีกยได้จากหน้าหลักของ Windows 8 ซึ่ง Icons ของ App จะอยู่ด้านขวาที่ถูก Pin (ปักหมุด) ไว้

Create Project Windows Phone 8

ขั้นแรกให้เปิด Visual Studio 2012 ซึ่งเราจะพบกับหน้าจอเหมือนในรูป ซึ่งเป็นหน้าหลักของ Visual Studio 2012

Create Project Windows Phone 8

ให้ไปที่เมนู New -> Project

Create Project Windows Phone 8

จะพบกับ Application ของ Windows Phone 8 เช่น

- Windows Phone App
- Windows Phone Databound App
- Windows Phone Class Library
- Windows Phone Panorama App
- Windows Phone Pivot App
- Windows Phone XAML and Direct3D App
- Windows Phone XAML and XNA App
- Windows Phone HTML5 App

ซึ่งหลัก ๆ แล้ว Windows Phone 8 ก็ไม่ต่างอะไรกับ Windows Phone 7 เท่าไหร่นัก อาจจะมี Project บางตัวที่เพิ่มเข้ามา เช่น Windows Phone Databound App








Create Project Windows Phone 8

ในที่นี้ให้เราเลือก Windows Phone App และกำหนด Path ของโปรแกรมดังรูป

Create Project Windows Phone 8

ในขั้นตอนนี้เราจะยังสามารถเลือกได้ว่าจะพัฒนาบน Windows Phone 7.1 หรือ Windows Phone 8.0 ได้เช่นเดียวกัน

Create Project Windows Phone 8

กำลัง Create Project ของ Windows Phone 8

Create Project Windows Phone 8

หลังจากที่ Create เรียบร้อยแล้ว เราจะได้หน้าตาหน้าแรกของบ Visual Studio 2012 กับ Windows Phone 8 (จะบอกว่าผมไม่ชอบหน้าตาของ Visual Studio 2012 อย่างมาก)

Create Project Windows Phone 8

รายการ Tools หรือ Control ต่าง ๆ ก็ไม่ต่างอะไรกับ Windows Phone 7 แต่อาจจะมีเพิ่มเข้ามาบางตัว ให้เราทดสอบสร้าง TextBlock แบบง่าย ๆ บนหน้าจอ Page เหมือนในรูป

รู้จักกับ Controls เครื่องมือ ต่าง ๆ ที่ใช้สำหรับการเขียนโปรแกรมบน Windows Phone


Screenshot ทดสอยการรันโปรแกรม

Create Project Windows Phone 8

ให้คลิกที่ Start เพื่อทำการรันโปรแกรม ซึ่งครั้งแรกอาจจะใช้เวลาประมาณ 1-2 นาทีในการโหลดโปรแกรม

Create Project Windows Phone 8

แสดงผลลัพธ์บน Windows Phone 8 Emulator







.

   
Share


ช่วยกันสนับสนุนรักษาเว็บไซต์ความรู้แห่งนี้ไว้ด้วยการสนับสนุน Source Code 2.0 ของทีมงานไทยครีเอท


ลองใช้ค้นหาข้อมูล


   


Bookmark.   
       
  By : ThaiCreate.Com Team (บทความเป็นลิขสิทธิ์ของเว็บไทยครีเอทห้ามนำเผยแพร่ ณ เว็บไซต์อื่น ๆ)
  Score Rating :  
  Create/Update Date : 2012-12-17 12:12:16 / 2017-03-25 21:18:38
  Download : No files
 Sponsored Links / Related

 
เกี่ยวกับ Windows Phone กับ Silverlight และ .NET Framework ด้วย VB.NET / C#
Rating :

 
รู้จักกับ Microsoft Expression Blend for Windows Phone (Silverlight)
Rating :

 
รู้จักกับ XNA Game Studio Project for Windows Phone
Rating :

 
รู้จักกับ Controls เครื่องมือ ต่าง ๆ ที่ใช้สำหรับการเขียนโปรแกรมบน Windows Phone
Rating :

 
สร้าง Windows Phone ด้วย JavaScript & HTML5 บน WP 8.0 / 8.1
Rating :

 
รู้จักกับ Tools และ Control ใหม่ ๆ ที่อยู่บน Windows Phone 8 SDK และ Visual Studio 2012
Rating :

 
ทำความเข้าโครงสร้าง Model ของ Page ก่อนการเขียน Application บน Windows Phone
Rating :

 
การสร้างกล่อง MessageBox โต้ตอบกับผู้ใช้แบบง่าย ๆ บน Windows Phone
Rating :

 
การใช้งาน Debugging พื้นฐาน ในการเขียน Windows Phone บน Visual Studio
Rating :

 
การสร้าง Event Handler ระหว่าง XAML (Silverlight,WP) กับภาษา VB.NET และ C# (.NET)
Rating :

 
รู้จักกับ Splash Screen กับ SplashScreenImage.jpg , ApplicationIcon.png และ Background.png (WP)
Rating :

 
Windows Phone Free Icons (For Windows Phone 7)
Rating :


ThaiCreate.Com Forum


Comunity Forum Free Web Script
Jobs Freelance Free Uploads
Free Web Hosting Free Tools

สอน PHP ผ่าน Youtube ฟรี
สอน Android การเขียนโปรแกรม Android
สอน Windows Phone การเขียนโปรแกรม Windows Phone 7 และ 8
สอน iOS การเขียนโปรแกรม iPhone, iPad
สอน Java การเขียนโปรแกรม ภาษา Java
สอน Java GUI การเขียนโปรแกรม ภาษา Java GUI
สอน JSP การเขียนโปรแกรม ภาษา Java
สอน jQuery การเขียนโปรแกรม ภาษา jQuery
สอน .Net การเขียนโปรแกรม ภาษา .Net
Free Tutorial
สอน Google Maps Api
สอน Windows Service
สอน Entity Framework
สอน Android
สอน Java เขียน Java
Java GUI Swing
สอน JSP (Web App)
iOS (iPhone,iPad)
Windows Phone
Windows Azure
Windows Store
Laravel Framework
Yii PHP Framework
สอน jQuery
สอน jQuery กับ Ajax
สอน PHP OOP (Vdo)
Ajax Tutorials
SQL Tutorials
สอน SQL (Part 2)
JavaScript Tutorial
Javascript Tips
VBScript Tutorial
VBScript Validation
Microsoft Access
MySQL Tutorials
-- Stored Procedure
MariaDB Database
SQL Server Tutorial
SQL Server 2005
SQL Server 2008
SQL Server 2012
-- Stored Procedure
Oracle Database
-- Stored Procedure
SVN (Subversion)
แนวทางการทำ SEO
ปรับแต่งเว็บให้โหลดเร็ว


Hit Link
   







Load balance : Server 00
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่