Grid
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Defines a grid area that consists of columns and rows.
<Grid ...>
oneOrMoreUIElements
</Grid>
-or-
<Grid .../>
XAML Values
Value |
Description |
---|---|
oneOrMoreUIElements |
One or more of the following object elements that derive from UIElement: Border, Canvas, Ellipse, Glyphs, Grid, Image, InkPresenter, Line, MediaElement, PasswordBox, Path, Polygon, Polyline, Popup, Rectangle, Shape, StackPanel, TextBlock, TextBox. |
Methods
AddEventListener, CaptureMouse, Equals, FindName (DependencyObject), GetHost, GetParent, GetValue, ReleaseMouseCapture, RemoveEventListener, SetValue
Properties
Background (Elements), Canvas.Left, Canvas.Top, Canvas.ZIndex, Children (Panel), Clip, ColumnDefinitions, Cursor, Effect (Silverlight 3), Grid.Column, Grid.ColumnSpan, Grid.Row, Grid.RowSpan, Height (UIElement), HorizontalAlignment, IsHitTestVisible, IsItemsHost (Silverlight 3), Language (UIElement), Margin, MaxHeight, MaxWidth, MinHeight, MinWidth, Name (DependencyObject), Opacity (UIElement), OpacityMask, Projection (Silverlight 3), RenderTransform, RenderTransformOrigin, Resources, RowDefinitions, ShowGridLines, Style (UIElement), Tag, TextOptions.TextHintingMode (Silverlight 3), Triggers, UseLayoutRounding, VerticalAlignment, Visibility, Width (UIElement)
Events
GotFocus, KeyDown, KeyUp, Loaded, LostFocus, MouseEnter, MouseLeave, MouseLeftButtonDown, MouseLeftButtonUp, MouseMove, MouseWheel (Silverlight 3)
Version Information
Silverlight 2