Skip to content

MarkupGrid Object

Description

Grid Control

For a list of all members defined in this module, see MarkupGrid Members.

Object Model

MarkupGrid Object Model
Render Transform
Margin
Background
Mouse Leave Event
Mouse Enter Event
Mouse Left Button Up Event
Mouse Left Button Down Event
Mouse Right Button Up Event
Mouse Right Button Down Event
Mouse Move Event
Lost Mouse Capture Event
Find Name
Visual Parent
Children
Column Definitions
Row Definitions

Remarks

Displaying elements in a table format using columns and rows is done with the Grid Control.

Unlike a Table, the Grid is used strictly for layout purposes. The Grid is useful in that you can arrange controls in columns and rows and have them lined up vertically and horizontally. This is beneficial if items are not all the same size; the columns and rows will still remain uniform.

The Grid is probably one of the more complex controls you will use. To use a Grid, you must specify how many rows and columns are needed, and how each row and column should be sized. Optionally, you can set the width and height of the grid.

Example

Below is a very simple sample of how to use a Grid panel to create a 3x3 cube.

xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'>

See Also

MarkupGrid Members


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.