Chapter 3 Notes
Deepter into text
Summary
So much ado about Labels and the text in them.
Programming Concepts Summary
Concept |
Page |
Text wraps automatically in labels |
42 |
Text & Background Colors |
44 |
Coloring |
46-47 |
Changing the Application Color Scheme |
50 |
Font sizes and attributes - includes FontFamily, FontSize, FontAttributes |
51 |
Formatting text in a Span is similar to formatting text in html |
53 |
Programs
Program Baskervilles
Page 41.
Concepts:
- Shows that text wraps inside a label be default.
Shows the use of Device.OnPlatform for padding.
Classes:
- Label is demonstrated.
Greetings from the previous Chapter
Pages 44, 45, 52.
Concepts
No new classes.
VariableFormatedText
Pages 53, 54
Concepts:
FontSize (named)
FontAttributes (bold, italic...)
Classes:
NamedSize - is related to the font sizes
Device.GetNamedSize(NamedSize.Large, typeof(Label)) returns an appropriate font size for the platform.
FontAttributes e.g. FontAttributes.Bold
VariableFormatedParagraph
Pages 55, 56
Concepts:
Demonstrates using a "Span" to format text in a "FormattedText" property of a Label.
No New Classes here
NamedFontSizesPage
Pages 57-58
Concepts:
Demonstrates the different sizes on different platforms by looping through them and adding spans for each size in a label that includes:
- Named Size.
- Device dependent actual size in text
A device dependent NewLine character.
Classes:
Environment allows us to get the device dependent NewLine character.