Edit

Share via


Element Tree and Serialization

WPF programming elements often exist in some form of tree relationship to each other. For instance, an application UI created in XAML can be conceptualized as an object tree. The element tree can be further divided into two discrete yet sometimes parallel trees: the logical tree and the visual tree. Serialization in WPF involves saving the state of these two trees as well as application state and writing it to a file, potentially as XAML.

In This Section

Trees in WPF Serialization Limitations of XamlWriter.Save Initialization for Object Elements Not in an Object Tree How-to Topics

Reference

System.Windows.Markup

LogicalTreeHelper

VisualTreeHelper

WPF Architecture XAML in WPF Base Elements Properties Events Input Resources Styling and Templating Threading Model