How to make WPF Listview works same as Photoshop layer
Posted
by Youngjae
on Stack Overflow
See other posts from Stack Overflow
or by Youngjae
Published on 2010-06-08T07:23:33Z
Indexed on
2010/06/08
7:42 UTC
Read the original article
Hit count: 231
As we can see in Photoshop layer window (or other image editting tool also),
it has several features:
- groups with folder-like header (collapse/expandable)
- ungroupped item (no header)
- sort "manually" by dragging.
In case of No 1, I made groupped item with expander control. (ref: http://www.dotnetspark.com/kb/1753-expand-and-collapse-listbox-group-header.aspx)
In case of No 3, Sort manually can be solved with this code. (ref: codeproject.com/kb/WPF/ListViewDragDropManager.aspx)
but I don't know how to list ungroupped items together. Of course, the ungroupped items may not have a header.
I am using ICollectionView and MVVM.
Does ICollectionView can make it?
© Stack Overflow or respective owner