Chapter 4 Notes (start on "Frame and BoxView)

Title: Scrolling the Stack

Summary

All about scrolling a page that doesn't fit on the screen.

Programming Concepts Summary

Concept

Page

New Layouts were introduced: AbsoluteLayout, Grid, RelativeLayout, StackLayout, we'll be focusing on StackLayout

60

Scrolling content - Using LayoutOptions.[Start|Center|End|Fill]AndExpand to allow the element that will scroll to fill the space

70

Reflection and Linq to objects to create a list of Labels that show the results of different options

72

Programs

VerticalOptionsDemo

Page

Concepts:

  1. Linq to objects to create an IEnumerable<Label> set.

  2. Reflection

Classes: No new classes yet.

The image below shows the output. The Blue background text labels fit exactly the text contained in them. The yellow background text labels contain a label that has the "AndExpand" appended. These labels are not a different size (except the last one) but occupy a more spacious spot on the screen. The last one is a FillAndExpand and it actually does change the size of the Label because it fills the available space.

VerticalOptionsForStackLayoutContents.png

BlackCat

Page

Concepts:

  1. ?

Classes:

  1. ?

ColorBlocks

Page

Concepts:

  1. ?

Classes:

  1. ?

ColorList

Page

Concepts:

  1. ?

Classes:

  1. ?

ColorLoop

Page

Concepts:

  1. ?

Classes:

  1. ?

FramedText

Page

Concepts:

  1. ?

Classes:

  1. ?

ReflectedColors

Page

Concepts:

  1. ?

Classes:

  1. ?

SizedBoxView

Page

Concepts:

  1. ?

Classes:

  1. ?