Chapter 12 Notes

Title: Styles

Summary

Setting styles on your Views.

Programming Concepts Summary

Concept

Page

Style defined in a resource dictionary an element like ContentPage

254

Style inheritance

261

Programs

Program BasicStyle

Page 255.

Concepts:

  1. Shows how to setup a style and used it with a Button

Classes:

No new classes.

Program BasicStyleCode

Page 259.

Concepts:

  1. Shows how to setup a style in a ResourceDictionary and used it with a Button in code.

Classes:

No new classes.

Program Modified BasicStyle

Page 259.

Concepts:

  1. Shows how to setup a style in a ResourceDictionary and used it with multiple view types by setting its TargetType = "View".

Classes:

No new classes.

Program StyleInheritance

Page 263.

Concepts:

  1. Shows how inheritance works with nested containers like StackLayout.

  2. Shows how to inheritance within a group by using the basedon attribute to inherit from another style.

Classes:

No new classes.