DCSIMG
WPF,Design Patterns - David Sackstein's Blog

Browse by Tags

All Tags » WPF » Design Patterns (RSS)

TreeView DataBinding and The Composite Pattern by David Sackstein

In the previous post I demonstrated use of the HierarchicalDataTemplate to style nodes based on the type of the object that they are bound to. That declarative recursion gets you true separation between data and presentation. In this post, I will show how I made use of the Composite Pattern , INotifyPropertyChanged and BindingSource<T> to implement objects for DataBinding with the TreeView. In the next post I will show how I used LINQ to XML to read the data from an XML file. The Composite...
Powered by Community Server (Commercial Edition), by Telligent Systems