Chapter 23 Notes

Title: Triggers and behaviors

Summary

Relates to XAML allowing triggers and behaviors.

Programming Concepts Summary

Concept

Page

Programs

Program EntryPop

Page 837.

Concepts:

  1. Shows an Entry changed by a trigger. .

Program EntryPopCode

Page 839.

  1. Shows previous program but set in code. Not interesting really since the whole purpose was to do it in XAML.


However there is no support for animations in XAML, this requires code! See new class: Easing on page 432.


Program EntrySwell

Page 844.

  1. Shows the implementation in XAML of a ScaleAction.

New Classes:

  1. ScaleAction

EnterExitSwell

Page 846.

  1. Demo's both directions...

New Classes:

  1. Trigger.EnterActions

  2. Trigger.ExitActions

Program ButtonGrowth

Page 849

  1. Demo's making buttons grow and shrink.

Program SiverButtonDemo

Page 851.

  1. Like it says make it shiver ... its more about the toolkit!


Don't have a tapped event? Use a behavior p. 851... Later!


Program TriggerEntryValidation

Page 852.


Data Trigers