Chapter 10 Notes

Title: XAML Markup Extensions

Summary

<All about="{x:Static Markup.Extensions}" />

Programming Concepts Summary

In general a markup extension is a class that can produce a value that can be directly assigned to a attribute/property of an element/object. It is represented in XAML and parsed appropriately as a Markup Extension. Although you can write your own, you shouldn't need to right now.

See Page 199 for a list of included markup extensions.

Programs

Program SharedStatics

Page 202.

Concepts:

  1. Shows the use of user defined static variables in markup extensions.

Classes:

No significant new classes shown - but markup extensions are used.

Program SystemStatics

Page 202.

Concepts:

  1. Shows the use of externally defined static variables in markup extensions.

Classes:

No significant new classes shown - but markup extensions are used.

Program ResourceSharing

Page 211.

Concepts:

  1. Shows the use of ResourceDictionary with markup extensions.

  2. page 213 shows the simplified markup usage and when to use x:key (when you are defining it) and when not to use the x: (as in when you are in the actually markup extension curly brackets).

Classes:

  1. No significant new classes shown besides ResourceDictionary which markup extensions then use.