Topics. Windows Phone

Similar documents
Microsoft Corporation

Programos gyvavimo ciklas

sharpcorner.com/uploadfile/37db1d/4958/default.aspx?articleid=cb0b291c-52ae-4b80-a95c- 438d76fa1145

Visual Studio.NET enables quick, drag-and-drop construction of form-based applications

windows-10-universal #windows- 10-universal

Advance Windows Phone Development. Akber Alwani Window Phone 7 Development EP.NET Professionals User Group

ComponentOne. PdfViewer for WPF and Silverlight

Building Extensible XAML Client Apps

Windows Universal. Devices Architecture Frameworks

Windows 8. Rainer Stropek. System Architecture. System Architecture re of Windows Store Apps. Saves the day. software architects gmbh

Events. Event Handler Arguments 12/12/2017. EEE-425 Programming Languages (2016) 1

Lab 4: Adding a Windows User-Interface

User Filter State. Chapter 11. Overview of User Filter State. The PDSAUserFilterState Class

It is necessary to follow all of the sections below in the presented order. Skipping steps may prevent subsequent sections from working correctly.

KillTest. 半年免费更新服务

Navigating Viewpoint V6 Exploring the Viewpoint Main Menu

RadPDFViewer For Silverlight and WPF

Lecture # 6 Engr. Ali Javed 11th March, 2014

HCA Tech Note 120. Configuring the Control UI Home Page. Option 1: HCA constructs the home page

Yes, this is still a listbox!

COCKPIT Build 24

Getting Started Quick Start Guide

Navigating Viewpoint V6 Function Keys

Inheriting Windows Forms with Visual C#.NET

Revel for Canvas Configuration Guide for System Administrators

Chapter 14. Additional Topics in C# 2010 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

S AMPLE CHAPTER IN ACTION. Timothy Binkley-Jones Massimo Perga Michael Sync MANNING

Workspace Desktop Edition Developer's Guide. Frequently Asked Questions

Launchers and Choosers Hands-on Lab. Hands-On Lab. Launchers and Choosers. Lab version: Last updated: 12/8/2010. Page 1

Configure 802.1x Authentication with PEAP, ISE 2.1 and WLC 8.3

Edulog Parent Portal

How to use character and paragraph styles

User Group Configuration

What s New in Xcode App Signing

Voice Mail User s Guide

Work with the Google Folder App

Chromatic Remote Control Product Guide Executive Way, Suite A Frederick, MD 21704

Intents. 18 December 2018 Lecture Dec 2018 SE 435: Development in the Android Environment 1

Santiago Canyon College Computer Science

Introduction to ArcGIS Online and Story Maps

Course 55197A: Microsoft SharePoint Server 2016 for the Site Owner/Power User

CS3240 Human-Computer Interaction Lab Sheet Lab Session 3 Designer & Developer Collaboration

Writing Object Oriented Software with C#

04 Sharing Code Between Windows 8 and Windows Phone 8 in Visual Studio. Ben Riga

Mastering UIKit on tvos

Updated to reflect current working practices and software application. Version 2.0 January 2016

The C# Programming Language. Overview

NAT Routemaps Outside-to-Inside Support


CS 349 / SE 382 Design Patterns. Professor Michael Terry January 21, 2009

CS3240 Human-Computer Interaction

Fine-Grain NBAR for Selective Applications

How to Use Panopto Video Series Transcript

FOREWORD WHAT WE CAN LEARN TARGET READER

Index. Windows 10 running, 199 suspended state, 199 terminate apps,

Administrative Procedure on Electronic Records

VMware Horizon Client for Windows 10 UWP User Guide. Modified on 21 SEP 2017 VMware Horizon Client for Windows 10 UWP 4.6

Creating a Parent Account and setting up Notification preferences.

Porting Advanced User Interfaces From ios* To Windows 8*

The anatomy of Content Template Catalog v4: how to create custom CTC websites. David Strachan IBM

BraindumpsQA. IT Exam Study materials / Braindumps

Office 365. Exporting and Importing Safe and Blocked Senders List

URI-Based Dialing Enhancements

URI-Based Dialing Enhancements

Configuring an Error Response Code upon an Out-of-Dialog OPTIONS Ping Failure

GRAPHIC WEB DESIGNER PROGRAM

Class Climate Dept Selection

Enabling ALGs and AICs in Zone-Based Policy Firewalls

XAML - BUTTON. The Button class represents the most basic type of button control. The hierarchical inheritance of Button class is as follows

Contextual Configuration Diff Utility

Binghamton University. CS-140 Fall Dynamic Types

Creating a Transacted Resource Using System.Transactions (Lab 2) (Visual C#, Visual Basic)

WebEx New user Orientation. Meeting Organizer Guide

Enabling ALGs and AICs in Zone-Based Policy Firewalls

Chain of Responsibility

IPU Assembly APP USER MANUAL

INTRODUCTION COS MOBILE DEVELOPMENT WHAT IS ANDROID CORE OS. 6-Android Basics.key - February 21, Linux-based.

Agile Implementation The Anaplan Way Dashboard Input Guides

Monetize and Promote Your App with iad

SSH Algorithms for Common Criteria Certification

Participant Guide ANGELS AMONG US 5K RUN & FAMILY FUN WALK

Xamarin.Forms. Pages Building an Interface

Persona and Point of View

Cloud Control Panel (CCP) User Guide

Microsoft CSharp

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

Creating Apps Using ArcGIS Online Templates. Matt Kennedy

MAKE NODEJS APIs GREAT WITH TYPESCRIPT

Blog Pro for Magento 2 User Guide

Developing for Mobile Devices Lab (Part 1 of 2)

This walkthrough assumes you have completed the Getting Started walkthrough and the first lift and shift walkthrough.

EL-USB-RT API Guide V1.0

XNA 4.0 RPG Tutorials. Part 3. Even More Core Game Components

CPSC Tutorial 9 Blend & Animations

Week 7: NavigationView Control Exercise

Guidebook is currently supported as an app on the devices listed in this support article.

Walkthrough Using the New CLR Interop Feature of Microsoft Dynamics AX

JPF Report System and Model Classes EECS /w/4315/

Brianna Nelson Updated 6/30/15 HOW TO: Docs, Sheets, Slides, Calendar, & Drive. English

If you are looking to speak with someone via voice, check out our Member TeamSpeak!

Transcription:

Session 4.5

Topics

The Story So Far 3

Multi-page applications 4

Adding another page 5

Pages and projects 6

Page Navigation private void page2button_click(object sender, RoutedEventArgs e) { NavigationService.Navigate( new Uri("/CustomerDetailPage.xaml", UriKind.RelativeOrAbsolute)); } 7

The UriKind private void page2button_click(object sender, RoutedEventArgs e) { NavigationService.Navigate( new Uri("/CustomerDetailPage.xaml", UriKind.RelativeOrAbsolute)); } 8

Missing page exceptions 9

Using the Back button 10

Overriding the Back button 11

Disabling the Back Button private void PhoneApplicationPage_BackKeyPress( object sender, System.ComponentModel.CancelEventArgs e) { e.cancel = true; } 12

Using a MessageBox private void PhoneApplicationPage_BackKeyPress( object sender, System.ComponentModel.CancelEventArgs e) { if (MessageBox.Show("Do you really want to exit?", "Page Exit", MessageBoxButton.OKCancel)!= MessageBoxResult.OK) { e.cancel = true; } } 13

Passing data between pages 14

Assembling a data uri // Get the selected customer from the list Customer selectedcustomer = customerlist.selecteditem as Customer; // Build a navigation string containing the information NavigationService.Navigate( new Uri("/CustomerDetailPage.xaml?" + "name=" + selectedcustomer.name + "&" + "address=" + selectedcustomer.address, UriKind.Relative)); 15

Page navigated events 16

Loading data from the uri protected override void OnNavigatedTo (System.Windows.Navigation.NavigationEventArgs e) { string name, address; if (NavigationContext.QueryString.TryGetValue("name", out name)) nametextblock.text = name; } 17

Demo 2: Passing Data 18

Sharing objects between pages 19

The App.xaml page 20

The App class public partial class App : Application { // To be used from all pages in the application public Customer ActiveCustomer; } 21

Getting a reference to the App protected override void OnNavigatedTo( System.Windows.Navigation.NavigationEventArgs e) { base.onnavigatedto(e); // Get the parent App containing the active customer App thisapp = Application.Current as App; // Set the data context for the Grid to the selected // customer customerdisplaygrid.datacontext = thisapp.activecustomer; } 22

Getting a reference to the App protected override void OnNavigatedTo( System.Windows.Navigation.NavigationEventArgs e) { base.onnavigatedto(e); // Get the parent App containing the active customer App thisapp = Application.Current as App; // Set the data context for the Grid to the selected // customer customerdisplaygrid.datacontext = thisapp.activecustomer; } 23

Getting a reference to the App protected override void OnNavigatedTo( System.Windows.Navigation.NavigationEventArgs e) { base.onnavigatedto(e); // Get the parent App containing the active customer App thisapp = Application.Current as App; // Set the data context for the Grid to the selected // customer customerdisplaygrid.datacontext = thisapp.activecustomer; } 24

Getting a reference to the App protected override void OnNavigatedTo( System.Windows.Navigation.NavigationEventArgs e) { base.onnavigatedto(e); // Get the parent App containing the active customer App thisapp = Application.Current as App; // Set the data context for the Grid to the selected // customer customerdisplaygrid.datacontext = thisapp.activecustomer; } 25

Setting the Edit Data Context protected override void OnNavigatedTo( System.Windows.Navigation.NavigationEventArgs e) { base.onnavigatedto(e); // Get the parent App containing the active customer App thisapp = Application.Current as App; // Set the data context for the Grid to the selected // customer customerdisplaygrid.datacontext = thisapp.activecustomer; } 26

Demo 3: Shared Data 27

Review 28