15.02.2015 Views

C# 4 and .NET 4

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

s u m m a r y ❘ 745<br />

Dynamic activities <strong>and</strong> Windows Workfl ow Foundation 4 are explained in Chapter 44,<br />

“W i n d o w s Wo rk fl o w F o u n d a t i o n 4 .”<br />

A simple example to load XAML dynamically from a fi le to create an object tree <strong>and</strong> to attach the object<br />

tree to a container element, such as a StackPanel , is shown here.<br />

FileStream stream = File.OpenRead("Demo1.xaml");<br />

object tree = System.Windows.Markup.XamlReader.Load(stream);<br />

container1.Children.Add(tree as UIElement);<br />

summary<br />

In this chapter, you ’ ve seen the core functionality of XAML <strong>and</strong> some specifi c characteristics such as<br />

dependency properties, attached properties, <strong>and</strong> markup extensions. You have seen the extensibility of<br />

XAML, which serves as the base for other technologies such as WPF <strong>and</strong> WF. In other chapters that make<br />

use of XAML, you can see a lot of different uses for these XAML characteristics.<br />

You can read more about XAML <strong>and</strong> see XAML in action in a lot of chapters in this book. In particular,<br />

you should read Chapters 35 <strong>and</strong> 36 for WPF, Chapter 37 for XPS, Chapter 38 for Silverlight, <strong>and</strong><br />

Chapter 44 for Windows Workfl ow Foundation.<br />

The next chapter is about MEF, the Managed Extensibility Framework.<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!