Display Different Views (Thumbnail,Details List) in Wpf from ListView in MVVM
I have a DataGrid that is displaying Data. I want to implement view switching functionality in WPF. I have read online and they say it's not possible with Data Grid .
There is also a topic that explains thumbnail view:
WPF: Lis开发者_JAVA百科tView with icons view?
But how to implement the same three view in the same control?
To be exact, I want the functionality like Windows Explorer where we can change the view from a dropdown list.
Some help in this regard would be great.
You are right. This is not something that the DataGrid
supports. You can create your own views for the ListView
, see the following article:
How to: Create a Custom View Mode for a ListView
精彩评论