ViewModel模式简化的WPF TreeView

收录时间:2014-03-06
资源分类:C#

这篇文章探讨了如何通过使用ViewModel模式来更容易的使用WPF中的TreeView控件。在此过程中,我们会看到为何人们经常在使用WPF的TreeView时遇到困难,什么是ViewModel,以及两个实例程序,这两个程序展现了如何结合TreeView和ViewModel。其中一个实例展示了如何创建一个具有搜索功能的TreeView,另一个则说明了如何实现延迟加载(lazy-loading)。

 

Simplifying the WPF TreeView by Using the ViewModel Pattern

This article explores how to use the ViewModel pattern to make it easier to work with the TreeView control in WPF. Along the way, we examine why people often have difficulty with the WPF TreeView, what a ViewModel is, and two demo applications that show how to combine a TreeView with a ViewModel. One of the demos shows how to create a searchable TreeView, the other demonstrates how to implement lazy-loading (a.k.a. load-on-demand)

文件下载列表
附件内容(只显示31中的10个)
Database.cs  City.cs  Person.cs  Region.cs  State.cs  AssemblyInfo.cs  App.xaml.cs  DemoWindow.xaml.cs  LoadOnDemandDemoControl.xaml.cs  CityViewModel.cs  
标签: WPF TreeView 
更多

目前尚无评论

用户反馈   关于我们
Copyright (©) ZHIHUISHI.COM 2013 All Rights Reserved.
京ICP备12012558号-7