771
Comment:
|
1354
|
Deletions are marked like this. | Additions are marked like this. |
Line 5: | Line 5: |
|| Concept || Page || | || '''Concept''' || '''Page''' || || Main concepts of: Page, Layout, View --> Pages contains Layout and Layouts contain Views. || 20 || |
Line 9: | Line 10: |
|| | |
Line 15: | Line 17: |
|| App || Inherits from Application - This is where it all starts, but you rarely need to edit it. || || Label || Typical text label p. 32|| || ContentPage || This is the "page" that you see that holds Views p. 34|| || Device.OnPlatform || The way to do different things for e3ach platform p. 38 || |
|| 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|| || ContentPage || 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 || || LayoutOptions || A structure that enumerates the different layout options || 39 || || TextAlignment || An enum of text alignment options. || 41 || |
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 |
||
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 |