Click here to Skip to main content
15,892,697 members
Articles / Web Development / HTML

WPF x FileExplorer x MVVM

Rate me:
Please Sign up or sign in to vote.
4.99/5 (52 votes)
24 Nov 2012LGPL323 min read 290.4K   9.4K   228  
This article describe how to construct FileExplorer controls included DirectoryTree and FileList, using Model-View-ViewModel (MVVM) pattern.
     * 11-03-10 - version 0.1
          o Initial version. 
     * 12-03-10 - version 0.2
          o Handles shift / control button properly
          o Handle drag outside the scroll control properly 
          o (most events attached to the listview now.) 
     * 17-03-10 - version 0.3
          o SelectedItems is now only changed when drag is completed.
            SelectionHelper.GetIsDragging(aListViewItem) is true when the ListViewItem is inside the user-selected region (therefore u can theme the selection)
          o SelectedItems is now changed by adding / removing items, instead of clearing it and re-poll the list.     
     * 18-07-10 - version 0.4
          o Fixed click on GridView Header recognize as drag start.
          o For GridView, only support selection if drag occur inside the first column
          o Fixed VirtualListView selection problem by adding IVirtualListView interface.
                           

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)


Written By
Founder
Hong Kong Hong Kong

Comments and Discussions