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 > Windows Store Apps > Windows Store and Page (C#) > การปรับแต่ง Simulator การกำหนด Mode ของ Landscape , Portrait (แนวนอน-ตั้ง)



Clound SSD Virtual Server

การปรับแต่ง Simulator การกำหนด Mode ของ Landscape , Portrait (แนวนอน-ตั้ง)

การปรับแต่ง Simulator การกำหนด Mode ของ Landscape , Portrait (แนวนอน-ตั้ง) ในการเขียน Windows Store Apps บน Visual Studio เราสามารถที่จะเรียกใช้ Simulator ซึ่งเป็นโปรแกรมจำลอง OS ของ Windows 8 ให้อยู่ในสถาวะแวดล้อมที่เหมาะสมสำหรับการ Run หรือ Debug โปรแกรม หน้าตาก็จะเหมือน OS ของ Windows 8 ที่รันบน PC / Notebook ทั่ว ๆ ไป หรือจะเป็น Tablets เช่น Surface ของ Microsoft และเจ้าตัว Simulator นี้เราก็สามารถทำอะไรกับมันได้หลาย ๆ อย่างเพื่อทดสอบโปรแกรมที่เราเขียนขึ้น เช่น กำหนดขนาด Screen Resolution เพื่อทดสอบกับขนาดต่าง ๆ ของ Tablets หรือจะปรับ Rotate หมุ่นในแนว ตั้ง-นอน (Landscape , Portrait) เพื่อทดสอบ การแสดงผลของ Apps ได้ หรือในกรณีที่เขียนร่วมกับ Map ก็สามารถกำหนดค่า Latitude และ Longitude ของเครื่อง Simulator เพื่อทดสอบตำแหน่งของ GPS ได้เช่นเดียวกัน

Simulator  Landscape , Portrait

หน้าจอของโปรแกรม Simulator ซึ่งจะจำลอง OS ของ Windows 8 ที่อยุ่ในเครื่องของเรามาแสดงผล

Simulator  Landscape , Portrait

จะเห็นว่าหน้าจอของ Simulator จะมี Application ต่าง ๆ ที่เหมือนกับ Windows 8 บนเครื่องเราทุกประการ

Simulator  Landscape , Portrait

การเรียกใช้งาน Simulator สามารถเลือกได้จากเมนู

Run -> Simulator


การปรับแต่ง Simulator ต่าง ๆ ในการรัน Application ของ Windows Store

Simulator  Landscape , Portrait

หน้าจอ Simulator แสดงผลในโหมดปกติ








1. การปรับ Change resolution บน Simualtor

Simulator  Landscape , Portrait

เลือก Change resolution

Simulator  Landscape , Portrait

สามารถปรับขนาดของ Resolution ได้ตาม Size และขนาดต่าง ๆ

Simulator  Landscape , Portrait

จะเห็นว่าขนาดของ Font ใน Simulator มีขนาดเล็กลง


2. การ Rotate หมุ่นสลับตำแหน่ง แนวตั้งและแนวนอน Landscape , Portrait

Simulator  Landscape , Portrait

เลือก Rotate สามารถ หมุ่นได้ในแนว Landscape และ Portrait

Simulator  Landscape , Portrait

ตัวอย่างการสลับตำแหน่ง แนวตั้ง และ แนวนอน


3. การ Set Location เป็นการระบุตำแหน่ง ของ GPS ไว้สำหรับทดสอบกับการเขียน Map

Simulator  Landscape , Portrait

กำหนดค่า Latitude และ Longitude ของเครื่อง Simulator


การปรับแต่ง Apps ของเราให้รองรับโหมดต่าง ๆ เช่น Landscape , Portrait

Simulator  Landscape , Portrait

เลือก เลือก Package.appxmanifest ของ Project

Simulator  Landscape , Portrait

จะเห็นว่า สามารถเลือก โหมดต่าง ๆ ของ แนวตั้ง และ แนวนอน ว่าจะให้สามารถแสดงผลโหมดใดได้บ้าง

Simulator  Landscape , Portrait

เลือก Mode แบบ Landscape , Portrait ตามที่ต้องการ

และเมื่อทดสอบรัน Application ของ Windows Store บน Simulator ตัว Apps ของเราก็จะสามารถแสดงผลได้เฉพาะ Mode ที่เรากำหนดไว้







.

   
Share


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


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


   


Bookmark.   
       
  By : ThaiCreate.Com Team (บทความเป็นลิขสิทธิ์ของเว็บไทยครีเอทห้ามนำเผยแพร่ ณ เว็บไซต์อื่น ๆ)
  Score Rating :  
  Create/Update Date : 2014-01-29 20:28:42 / 2017-03-19 14:36:02
  Download : No files
 Sponsored Links / Related

 
Page และ Controls สำหรับการออก Windows Store Apps ด้วย XAML UI (C#)
Rating :

 
Event Handler บน Windows Store Apps กับ Controls ผ่าน XAML (C#)
Rating :

 
MessageBox Dialog / Confirm Dialog บน Windows Store Apps (C#)
Rating :

 
Windows Store Apps and Layout การจัดการ Grid Layout บน XAML (C#)
Rating :

 
สร้าง Pages มากกว่า 1 Page และ Navigation บน Windows Store Apps (C#)
Rating :

 
Windows Store Apps การส่ง ตัวแปร หรือ Parameters ข้าม Page (C#)
Rating :

 
รู้จักกับ Resources และ Styling บน XAML กับ Windows Store Apps (C#)
Rating :

 
การสร้าง Resources และ Custom Style กับ ResourceDictionary (C#)
Rating :

 
การเรียกใช้งาน Image Resource ไฟล์ที่อยู่บน Local file หรือจาก URL เว็บ (C#)
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 04
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 อัตราราคา คลิกที่นี่