diff --git a/README.md b/README.md index 031a627..52b3dfa 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,55 @@ -# Add-wpf-treeviewadv-items-by-databinding-in-XML -This session describes about how to add wpf treeviewadv items by databinding in XML +# Add WPF TreeView Items by Databinding in XML + +This session describes about how to add [WPF TreeView](https://help.syncfusion.com/wpf/classic/treeview/overview) (TreeViewAdv) items by databinding in XML. + +XML file can also be used as ItemsSource for the TreeViewAdv. The following example illustrates this: + +1. Create the XML file with the following details and name it as Data.xml: + +``` xml + + + + + + + + + + + + + + + + + + + + + +``` + +2. Add the XmlDataProvider for the above XML document as follows: + +``` xml + + + +``` + +3. Set the `ItemsSource` property for the `TreeViewAdv` as follows: + +``` xml + + + + + + + +``` + +4. `TreeViewAdv` will be created as follows: + +![Databinding TreeViewAdv using XML](TreeViewAdvBindingWithXML.png) \ No newline at end of file diff --git a/TreeViewAdvBindingWithXML.png b/TreeViewAdvBindingWithXML.png new file mode 100644 index 0000000..25fb2f8 Binary files /dev/null and b/TreeViewAdvBindingWithXML.png differ