开发者

Display Different Views (Thumbnail,Details List) in Wpf from ListView in MVVM

开发者 https://www.devze.com 2023-03-15 18:37 出处:网络
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 .

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

0

精彩评论

暂无评论...
验证码 换一张
取 消