Size: 1792
Comment:
|
Size: 1804
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 10: | Line 10: |
|| Scrolling content - Using LayoutOptions.[Start|Center|End|Fill]AndExpand to allow the element that will scroll to fill the space || 70 || | || Scrolling content - Using {{{LayoutOptions}}}.{{{[Start|Center|End|Fill]AndExpand}}} to allow the element that will scroll to fill the space || 70 || |
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:
Linq to objects to create an IEnumerable<Label> set.
- 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.
BlackCat
Page
Concepts:
- ?
Classes:
- ?
ColorBlocks
Page
Concepts:
- ?
Classes:
- ?
ColorList
Page
Concepts:
- ?
Classes:
- ?
ColorLoop
Page
Concepts:
- ?
Classes:
- ?
FramedText
Page
Concepts:
- ?
Classes:
- ?
ReflectedColors
Page
Concepts:
- ?
Classes:
- ?
SizedBoxView
Page
Concepts:
- ?
Classes:
- ?