In WPF, the difference between grid and table (English)-Reproduced

Source: Internet
Author: User

Original address: http://blog.csdn.net/johnsuna/article/details/1742799

How is the Grid Different from Table?
Table and Grid share some common functionality, but all are 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 is contained by any of the following elements:flowdocument, TableCell, ListBoxItem, ListViewItem, Sec tion, Floater, figure.

(2) A Table is designed forUse within flow content.
Grids is best usedinside of Forms(basically anywhere outside of flow content).

(3) within a FlowDocument, Table supports flow content behaviors like pagination, column reflow, and Content selection whi Le a Grid does not.

(4) A grid on the other hand are best used outside of a FlowDocument for many reasons including grids adds elements based on a R ow 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 the support layering.

(6) Child elements of a Grid can is 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 and then a Table.

In WPF, the difference between grid and table (English)-Reproduced

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.