Creating Windows Store Apps. 1. Overview of Windows Store applications 2. Worked example 3. Adding controls and event handlers Contents 2.

Slides:



Advertisements
Similar presentations
Chapter 16 Graphical User Interfaces
Advertisements

1 All Powder Board and Ski Microsoft Access Workbook Chapter 8: Applications Jerry Post Copyright © 2007.
Module 1: Creating an Application by Using Windows Presentation Foundation Overview of WPF Creating a Simple WPF Application Handling Events and Commands.
17 Copyright © 2005, Oracle. All rights reserved. Deploying Applications by Using Java Web Start.
List and Search Grants Chapter 2. List and Search Grants 2-2 Objectives Understand the option My Grants List Grant Screen Viewing a Grant Understand the.
0 - 0.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
ADDING INTEGERS 1. POS. + POS. = POS. 2. NEG. + NEG. = NEG. 3. POS. + NEG. OR NEG. + POS. SUBTRACT TAKE SIGN OF BIGGER ABSOLUTE VALUE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Addition Facts
Creating Data Entry Screens in Epi Info
6. WinForms: GUI Programming in.NET. 2 Microsoft Objectives.NET supports two types of form-based apps, WinForms and WebForms. WinForms are the traditional,
The Advantage Series © 2004 The McGraw-Hill Companies, Inc. All rights reserved Working with Access Microsoft Office Access 2003 Chapter 1.
View-Based Application Development Lecture 1 1. Flows of Lecture 1 Before Lab Introduction to the Game to be developed in this workshop Comparison between.
Creating an online advent calendar Nairn Computing Science Department Happy Holidays.
1 A Test Automation Tool For Java Applets Testing of Web Applications TATJA Program Demonstration Conclusions By Matthew Xuereb.
ABC Technology Project
Microsoft Access.
Well-Being Icon Refer to Slide 2 for instructions on how to view the full-screen slideshow.Slide 2.
1111 Creating ASPX Controls Programatically Objectives You will be able to Dynamically add controls to a page. Dynamically alter properties of controls.
Win8 on Intel Programming Course Desktop : WPF Cédric Andreolli Intel Software
XP New Perspectives on Introducing Microsoft Office 2003 Tutorial 1 1 Using Common Features of Microsoft Office 2003 Tutorial 1.
Microsoft Office Illustrated Fundamentals Unit C: Getting Started with Unit C: Getting Started with Microsoft Office 2010 Microsoft Office 2010.
Microsoft Office Word is an example of ____ software. a. Database b
Microsoft Expression Web-Illustrated Unit J: Creating Forms.
Spotlight on Presentations
Chapter 5 Microsoft Excel 2007 Window
User Query Control An Enhancement For AS/400 Query On The IBM iSeries from  Copyright I/O International, 2005 Skip Intro.
Essentials for Design JavaScript Level One Michael Brooks
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Working with Tables for Page Design – Lesson 41 Working with Tables for Page Design Lesson 4.
Macromedia Dreamweaver MX 2004 – Design Professional Dreamweaver GETTING STARTED WITH.
Addition 1’s to 20.
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT ACCESS Lesson 3 – Creating and Modifying Forms.
Week 1.
Review – Presentations with Graphics & Multimedia © 2010, 2006 South-Western, Cengage Learning.
We will resume in: 25 Minutes.
Lesson 11 Presentation Graphics
Lecture 12: Web Services MicrosoftIntroducing CS using.NETJ# in Visual Studio.NET Objectives “Web Services are objects callable across a network.
Using the Import Accounting Line Feature You may enter accounting lines one by one in KFS or may enter multiple accounts at once using the Import Accounting.
Copyright © 2009 by SDL Tridion. SDL Tridion®, SDL Tridion R5™, BluePrinting™, SiteEdit™ and WebForms™ are trademarks of SDL Tridion Holding B.V. or its.
Computer Programming and Basic Software Engineering 9 Building Graphical User Interface Developing a Simple Graphical User Interface (GUI)
Chapter 16 Graphical User Interfaces John Keyser’s Modifications of Slides by Bjarne Stroustrup
HTML Concepts and Techniques Fourth Edition Project 2 Creating and Editing a Web Page.
© by Pearson Education, Inc. All Rights Reserved.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Lecture 1: IDE + Application Structure + GUI Elements CSS290: APPS ON MOBILE DEVICES.
Microsoft Visual Basic 2012 CHAPTER TWELVE (ENRICHMENT CHAPTER) Windows Store Apps.
Introduction to Mobile Programming. Slide 2 Overview Fundamentally, it all works the same way You get the SDK for the device (Droid, Windows, Apple) You.
An Introduction to Silverlight Matt Harrington Developer Evangelist, Microsoft October 20, 2011.
IE 411/511: Visual Programming for Industrial Applications
Win8 on Intel Programming Course Modern UI HelloWorld in HTML5/JS Cédric Andreolli Intel.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
Integrated Development Environment (IDE)
Tutorial 11 Five windows included in the Visual Basic Startup Screen Main Form Toolbox Project Explorer (Project) Properties.
Object Oriented Software Development 9. Creating Graphical User Interfaces.
Introduction to Windows Programming
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
Module 4 Taking Control of the User Interface. Module Overview Sharing Logical Resources in an Application Creating Consistent User Interfaces by Using.
PYP002 Intro.to Computer Science Microsoft Word1 Lab 04 - a Microsoft Windows Applications Common Features.
Simple Clicker App WPF App using C#. App Requirement Need a ‘counter’ display, which starts at 0 Need a ‘clicker’ button ! Pressing the clicker every.
Debug in Visual Studio Windows Development Fundamentals LESSON 2.5A.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Dive Into® Visual Basic 2010 Express
Chapter 2 – Introduction to the Visual Studio .NET IDE
Visual programming Chapter 1: Introduction
Introduction to Silverlight
Presentation transcript:

Creating Windows Store Apps

1. Overview of Windows Store applications 2. Worked example 3. Adding controls and event handlers Contents 2

What is Windows Store? Options for developing Windows Store apps Roadmap for this chapter 1. Overview of Windows Store Applications 3

Windows 8 introduces a new type of application: the Windows Store app Windows Store apps have a completely new look and feel They run on a variety of devices You can sell them on the Windows Store What is Windows Store? 4

For Web developers: Create Windows Store apps using HTML5, CSS3, and JavaScript For.NET, WPF, and Silverlight developers: Create Windows Store apps using XAML and C#/VB/C++ For DirectX developers: Create DirectX Windows Store apps using native C++ and HLSL, to take full advantage of graphics hardware Options for Developing Windows Store Apps 5

We'll go through the process of creating a simple Windows Store app using XAML and C# We'll create a simple Windows Store app We'll take a look at the generated project artefacts We'll run the application and describe how to interact with it Then we'll add some GUI controls and event-handler code Roadmap for this Chapter 6

Creating a Windows Store app Getting a developer license Understanding the project contents Limitations of the generated main page Replacing the main page Building and running the application Managing the application life cycle 2. Worked Example 7

In Visual Studio, create a new Windows Store App as follows: Creating a New Windows Store App 8

Visual Studio informs you that you need a developer license for Windows 8 (!!!) Just agree! Note: You have to sign-in with a Microsoft account You can sign-up for free within VS Getting a Developer License 9

The project contains the following files: A manifest file (package.appxmanifest) that describes your app and lists the files that your app contains A set of large and small logo images (logo.png and smalllogo.png) to display in the start screen An image (storelogo.png) to represent your app in the Windows Store A splash screen (splashscreen.png) to show when your app starts XAML and code files for the app (App.xaml and App.xaml.cs) A start page (MainPage.xaml) and an accompanying code file (MainPage.xaml.cs) that run when your app starts Understanding the Project Contents 10

The main page in the Blank App project template is based on the Blank Page template Contains the minimum XAML/code to instantiate a Page object However, even the simplest Windows Store app must be more sophisticated: Adapt to different layouts and views Save its state when suspended Restore its state when resumed The other project/page templates in VS include additional code to help you with view and state management When you use the Blank App project template, you typically replace the blank main page with one of the other page templates Limitations of the Generated Main Page 11

Delete the main page and replace it with a Basic Page: VS asks if you want to add various files to the project Click Yes Replacing the Main Page 12

Ctrl-F5 as usual Congratulation – your first Windows Store app! Building and Running the Application 13

Notice there's no button or command to close the app! You can use the close gesture or Alt+F4 to close it… But you typically don't close Windows Store apps! Press the Windows key to go to the Start screen Notice that deploying the app adds its tile to the last group on the Start screen To run the app again, tap or click its tile on the start screen, or press F5 in VS to run it in debugging mode Managing the Application Life Cycle 14

Understanding Windows Store GUIs Adding controls to the main page Handling events Running the application 3. Adding Controls and Event Handlers 15

You will typically create Windows Store GUIs using XAML Hooray! You can also create Windows Store GUIs programmatically Using C# or Visual Basic code Understanding Windows Store GUIs 16 … Label TextBox RadioButton CheckBox Button … Label TextBox RadioButton CheckBox Button

Add the following markup to the main page Just before tag Adding Controls to the Main Page 17

Implement the Click event on the button as follows: Handling Events 18 namespace HelloWindowsStore { public sealed partial class MainPage : HelloWindowsStore.Common.LayoutAwarePage { … private void Button_Click_1(object sender, RoutedEventArgs e) { this.messageBlock.Text = "Your fav swan is " + this.playerInput.Text; } namespace HelloWindowsStore { public sealed partial class MainPage : HelloWindowsStore.Common.LayoutAwarePage { … private void Button_Click_1(object sender, RoutedEventArgs e) { this.messageBlock.Text = "Your fav swan is " + this.playerInput.Text; }

Here's how it looks when I run the app Running the Application 19

Any Questions? 20 Lab ideas Investigate GUI controls Investigate loading and restoring state