Chapter 7 Notes

Title: XAML vs. Code

Summary

Concepts Not in programs

Converter Classes: Below the Color class has a TypeConverter attribute added. Attributes in this context means that the defined attributed class is added to the decorated class. That means that you may have additional properties because of the decoration. You might say that Color now has a TypeConverter object that is instantiated with a Type - in this case the: typeof(ColorTypeConverter)

This, of course, means that Color has additional functionality! We'll learn more about this later!

   1 [TypeConverter (typeof(ColorTypeConverter))]
   2 public struct Color
   3 {
   4 
   5 }

Programs

Program Baskervilles

Page 41.

Concepts:

  1. Shows that text wraps inside a label be default.
  2. Shows the use of Device.OnPlatform for padding.

Classes:

  1. Label is demonstrated.