WPF中,Grid与Table的区别(英文)
2007-08-14 15:51
405 查看
How is Grid Different from Table?
Table and Grid share some common functionality, but each is best suited for different scenarios.
(1)Grid derives from the Panel element, it defines a flexible grid area that consists of columns and rows.
Table derives from the Block element, and adheres to the common rules for containing a Block element. A Table element may be contained by any of the following elements: FlowDocument, TableCell, ListBoxItem, ListViewItem, Section, Floater, Figure.
(2) A Table is designed for use within flow content.
Grids are best used inside of forms (basically anywhere outside of flow content).
(3) Within a FlowDocument, Table supports flow content behaviors like pagination, column reflow, and content selection while a Grid does not.
(4)A Grid on the other hand is best used outside of a FlowDocument for many reasons including Grid adds elements based on a row and column index, Table does not.
(5)The Grid element allows layering of child content, allowing more than one element to exist within a single "cell."
Table does not support layering.
(6)Child elements of a Grid can be absolutely positioned relative to the area of their "cell" boundaries. Table does not support this feature.
(7)Finally, Grid also offers more flexible resizing behavior than Table. A Grid is lighter weight then a Table.
Table and Grid share some common functionality, but each is best suited for different scenarios.
(1)Grid derives from the Panel element, it defines a flexible grid area that consists of columns and rows.
Table derives from the Block element, and adheres to the common rules for containing a Block element. A Table element may be contained by any of the following elements: FlowDocument, TableCell, ListBoxItem, ListViewItem, Section, Floater, Figure.
(2) A Table is designed for use within flow content.
Grids are best used inside of forms (basically anywhere outside of flow content).
(3) Within a FlowDocument, Table supports flow content behaviors like pagination, column reflow, and content selection while a Grid does not.
(4)A Grid on the other hand is best used outside of a FlowDocument for many reasons including Grid adds elements based on a row and column index, Table does not.
(5)The Grid element allows layering of child content, allowing more than one element to exist within a single "cell."
Table does not support layering.
(6)Child elements of a Grid can be absolutely positioned relative to the area of their "cell" boundaries. Table does not support this feature.
(7)Finally, Grid also offers more flexible resizing behavior than Table. A Grid is lighter weight then a Table.
相关文章推荐
- WPF中,Grid与Table的区别(英文)-转载
- WPF DevExpress GridControl TableView 全选 和反选 以及获取选中行的数据
- 关于NGUI的Table和Grid区别
- 一款着眼性能的轻量级Data Grid——WPF Table View
- tp5中db::table和db::name的区别
- SIZE AUTO和SIZE SKEWONLY在gather_table_stats时的区别
- 如何删除表中所有数据。delete from tablename与Truncate Table tablename 区别
- WPF中部分常用容器区别
- table与form的区别
- WPF、Windows Forms和Silverlight间的联系和区别
- 词频统计英文和统计中文的区别
- gridResult——Displaying task results in a table
- WPF, WPF Browser Application(XBAP) 和 Silverlight 的区别
- Apache HTTP Server与Apache Tomcat 的英文定义以及使用区别?
- HBase入门实例: Table中Family和Qualifier的关系与区别
- js下的table.insertRow ie and firefox的区别
- Div与table的区别
- 用Grid和GridSplitter布局和分割WPF窗口
- WPF and Silverlight 学习笔记(八):WPF布局管理之Grid、UniformGrid
- 用Grid和GridSplitter布局和分割WPF窗口