DataGrid在WPF中是必需的吗? [英] Is DataGrid a necessity in WPF?

查看:110
本文介绍了DataGrid在WPF中是必需的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到很多讨论,人们询问DataGrid for WPF,并抱怨微软截止至今没有一个WPF框架。我们知道,WPF是一个伟大的UI技术,并具有ItemsControl,DataTemplate等的概念,以使伟大的UX。甚至WPF也有一个更为紧密匹配的控件 - ListView,它可以很容易地被模板化,以提供比传统的Datagrid(像显示器)更好的UX。我会说一个现成的DataGrid控件会杀死或隐藏大量的创造力,这肯定会减少用户体验领域的创新。



那么你对需要在WPF中的DataGrid作为框架组件?如果你觉得这是必要的,那就是因为世界如此习惯了DatGrid数据显示方式多年?



其他一些有关DatGrid的讨论此处这里



链接到 WPF工具包 - 最新的WPF DatGrid

解决方案

DataGrids非常适合显示绑定到后备存储的大量表格数据。



但是,WinForms世界发生了什么,人们经常将它们用于需要多元素滚动列表的所有内容。即将推出的第三方DataGrids可用,允许列和字段包含按钮和组合框和图标等。



DataGrid成为一个主力,因为有需要对于某些东西,它可以被哄骗成行为。类似的情况就是DataTables之前的通用集合来了 - 当你使用大量的DataTables,在UI中呈现DataGrid是最小阻力的路径。



我认为当WPF出来时,像我这样的很多程序员仍然以这种方式思考,并且寻找了DataGrid概念的WPF端口。


I have seen a lot of discussions going on and people asking about DataGrid for WPF and complaining about Microsoft for not having one with their WPF framework till date. We know that WPF is a great UI technology and have the Concept of ItemsControl,DataTemplate, etc,etc to make great UX. Even WPF has got a more closely matching control- ListView, which can be easily templated to give better UX than a traditional Datagrid like display. And I would say a readymade DataGrid control will kill or hide a lot of creativity and it surely will decrease the innovations in User Experience field.

So what is your opinion about the need of DataGrid in WPF as a Framework component? If you feel it is necessary then is it just because the world is so used to the DatGrid way of data display for many years?

Some other threads having the discussion about DatGrid are here and here

Link to WPF ToolKit - Latest WPF DatGrid

解决方案

DataGrids are excellent for displaying large amounts of tabular data bound to a backing store.

But what happened in the WinForms world was that people often used them for everything that required a multi-element scrolling list. Souped-up third-party DataGrids soon became available that allowed columns and fields to contain buttons and ComboBoxes and icons, etc.

The DataGrid became a workhorse because there was a need for something it could be coaxed into behaving like. Similar happened to DataTables before generic collections came along--and when you're using lots of DataTables, presenting it in the UI with a DataGrid is the path of least resistance.

I think that when WPF came out, a lot of programmers like me were still thinking in this fashion, and sought out WPF ports of the DataGrid concept.

这篇关于DataGrid在WPF中是必需的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆