Chapter 2 Notes
Programming Concepts
Concept |
Page |
Main concepts of: Page, Layout, View --> Pages contains Layout and Layouts contain Views. |
20 |
Build > Configuration Manager - You will need to edit this every time you create a new program so that you can build and deploy to windows. |
22 |
Portable Class Library (PCL) vs. Shared Asset Project (SAP) |
29 |
Doing something different depending on the platform |
35 - 38 |
Layout Options for views |
37 |
Text Alignment options |
41 |
Programs
Say Hello p. 20
Class |
Notes |
Page |
VisualElement, Page, Layout, View |
The basis for visual elements in Xamarin |
20 |
App |
Inherits from Application - This is where it all starts, but you rarely need to edit it. |
24 |
Label |
Typical text label |
32 |
This is the "page" that you see that holds Views |
34 |
|
Device.OnPlatform |
The way to do different things for e3ach platform |
38 |
Greetings p. 34
Class |
Notes |
Page |
Padding = new Thickness(0, Device.OnPlatform(20, 0, 0), 0, 0) |
Used to assign different values for different platforms |
37 |
A structure that enumerates the different layout options |
39 |
|
An enum of text alignment options. |
41 |