WPF DataGrid v1和WPFToolKit 发布
WPF DataGrid v1 有哪些新特性呢?如下是以前CTP版本中没有的新特性:
- Row Validation
- Row Details
- Row Resizing
- Hidden Columns
- Column virtualization
- Read-only columns and cells
- Make-over of DataGridComboBoxColumn
- Design experience for the DataGrid in Cider and Blend
- UIAutomation support
- Star column width redesign
- Lots of bug fixes
Windowsclient.net 提供了WPF DataGrid v1 的
功能向导和
学习手册。下面是DataTable 和 Linq to SQL 的范例,你可以到
这里下载。
重要更新以及如何更新CTP 代码到v1
1. 更新 xaml 命名空间
原来的命名空间:xmlns:dg="clr-namespace:Microsoft.Windows.Controls;assembly=WpfToolkit"
新的命名空间:xmlns:dg=http://schemas.microsoft.com/wpf/2008/toolkit
2. 更新DataFieldBinding 属性为Binding。
3. 更新DataGridComboBoxColumn.DataFieldBinding
为 DataGridComboBoxColumn.SelectedItemBinding。
4. 在Code Behind代码中引入命名空间:using Microsoft.Windows.Controls.Primitives;
相关站点:
WPF CodePlex 站点:
下载WPF DataGrid v1和WPFToolKit:
windowsclient.net 站点:
EntLib.com 开源博客、论坛小组: