Lecture 3 Multiple Pages.

Slides:



Advertisements
Similar presentations
Contensis Training Audit Trail – What does it show me?
Advertisements

This form was created as a post-assessment to this session.
ADD Materials into a Folder From FOLDERS tab Select ‘FOLDERS’
$100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300.
Web Service Project (.NET) Dr. Dante Ciolfi (chawl fee)
USER GUIDE TO OPEN OFFICE BY MARTIN ROCHE 11K. CONTENTS.
Cutting-and-Pasting Content Directly Into Blackboard.
Computer Programming and Basic Software Engineering 9 Building Graphical User Interface Working with Unmanaged Code.
Page 1 Simple PowerPoint Menus Section 1 Section 3 Section 2 Tutorial.
Xamarin.Forms Hands On.
WEBiT Adding a new page. 1. View a page like the one you wish to create a. Navigate to a page with a similar layout to the new page you wish to create.
Microsoft UI Stack Ronnie Saurenmann Technical Evangelist, Microsoft Switzerland
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
KEYWORD SEARCH. Click here to begin KEYWORD SEARCH.
1111 Creating ASPX Controls Programatically Objectives You will be able to Dynamically add controls to a page. Dynamically alter properties of controls.
Lecture Set 7 Procedures and Event Handlers Part B - The Structure of an Application Event Handlers.
Click the CCDT link on the EDUCE 104 homepage Accessing the Collaborative Curriculum Design Tool.
CHOOSE 1 OF THESE.
Title of your site Title of your page Text and images arranged on the page in the design of your choice. Page 2 Page 3 Page 4 Page 5 Page 6 Page 7 Page.
Module 3: Creating Windows-based Applications. Overview Creating the Main Menu Creating and Using Common Dialog Boxes Creating and Using Custom Dialog.
Test1 Here some text. Text 2 More text.
State of the Art in Mobile Development - AndRES Käver, 2016
Uvod u Xamarin.Forms Almir Vuk App Impact 4/20/2018 3:04 AM
Chapter 9 Programming Based on Events
INF230 Basics in C# Programming
Computing with C# and the .NET Framework
ANATOMY OF A LINE CHART Line Charts are used to present data trends over time. They may present a single variable or be used to compare multiple variables.
How To Use the Med List Tool (MLT)
Click on the HOME button to return to this page at any time
EPRM Template Guide v
Reviewing PAAs: Amendments
Ohio Child Licensing and Quality System (OCLQS)
Chapter II Creating Your First PowerPoint Presentation
How to add tickets to an event for members of the public
Xamarin Forms Lecture 2 Greetings Demos.
Agenda item number 1 Agenda item number 2 Agenda item number 3 Agenda item number 4 Agenda item number 5.
JC manufacturing, inc West Marine Ordering
[type text here] [type text here] [type text here] [type text here]
Your text here Your text here Your text here Your text here Your text here Pooky.Pandas.
Class name, number Instructor Group member names
How to send messages to students and other SimpleVLE users
Your text here Your text here Your text here Your text here
Click here to add your title
Class name, number Instructor Group member names
Fonts, TabControl, ListBox
JC manufacturing, inc Belk Ordering
Creating and Linking New Pages
Contents Click to add Title Click to add Title Click to add Title
Module 8: Creating Windows-based Applications
Faculty of Humanities Insert title here.
[type text here] [type text here] [type text here] [type text here]
Lecture Topic Subject Code
Word: References & Workflow Participation Project
Add text, change font/size, change color and background, etc.
MACROS MUST BE ENABLED FOR THIS FILE TO WORK
STEP ONE. STEP ONE. STEP ONE. STEP ONE. STEP ONE. 02
Q: How do I send a Message?
회사 소개.
YOUR text YOUR text YOUR text YOUR text
This presentation demonstrates a tool which allows collaborative editing of documents. It is useful when working with others remotely or asynchronously.
Faculty of Humanities Insert title here.
Click to add your text.
A very brief introduction
Making a non-linear slide show
Faculty of Humanities Insert title here.
Go to the members menu and
Displaying Local Images
Faculty of Humanities Insert title here.
Click here to add your title
Presentation transcript:

Lecture 3 Multiple Pages

MainPage = new GreetingsPage(); } In the previous App we set MainPage to a member of the GreetingsPage class. If we wish to display multiple pages in our App we can set public App() { MainPage = new GreetingsPage(); } public App() { // The root page of your application MainPage = new NavigationPage(new ButtonPage()); }

Create two or more content page classes…. e.g. buttonPage and another Page as shown here

1. Right-Click Project 2. Select Add -> New Item…

3. Choose Visual C# -> Cross-Platform 4. Highlight Forms ContentPage 5. Name this content Page class 6. Add to Project

using System; using Xamarin.Forms; namespace NowApp { public class anotherPage : ContentPage Label label1 = new Label Text = "This is Another Page", FontSize = 30, FontAttributes = FontAttributes.Bold, HorizontalOptions = LayoutOptions.Center }; public anotherPage() Content = new StackLayout Children = label1 }

public class ButtonPage : ContentPage public ButtonPage() using System; using Xamarin.Forms; namespace NowApp { public class ButtonPage : ContentPage public ButtonPage() Button button = new Button Text = "Now", BorderWidth = 1, HorizontalOptions = LayoutOptions.Center, VerticalOptions = LayoutOptions.CenterAndExpand }; button.Clicked += OnButtonClicked; this.Padding = new Thickness(10, Device.OnPlatform(20, 0, 0), 10, 5); this.Content = new StackLayout Children = button } void OnButtonClicked(object sender, EventArgs e) Navigation.PushAsync(new anotherPage()); PushAsync permits the use of “back” to return to the Previous page… What are the alternatives to PushAsync?