Grid Class
Namespace: GHIElectronics.TinyCLR.UI.Controls · Assembly: GHIElectronics.TinyCLR.UI
Row/column layout with pixel, auto, and star sizing (WPF-style subset). Use GetRow / SetRow and GetColumn / SetColumn on children.
public class Grid : Panel
Constructors
Grid()
public Grid()
No description available.
Properties
RowDefinitions
public GridLengthCollection RowDefinitions { get; }
No description available.
ColumnDefinitions
public GridLengthCollection ColumnDefinitions { get; }
No description available.
Methods
GetRow(UIElement e)
public static int GetRow(UIElement e)
No description available.
| Parameter | Type | Description |
|---|---|---|
e | UIElement |
Returns int
SetRow(UIElement e, int row)
public static void SetRow(UIElement e, int row)
No description available.
| Parameter | Type | Description |
|---|---|---|
e | UIElement | |
row | int |
GetColumn(UIElement e)
public static int GetColumn(UIElement e)
No description available.
| Parameter | Type | Description |
|---|---|---|
e | UIElement |
Returns int
SetColumn(UIElement e, int column)
public static void SetColumn(UIElement e, int column)
No description available.
| Parameter | Type | Description |
|---|---|---|
e | UIElement | |
column | int |
MeasureOverride(int availableWidth, int availableHeight, out int desiredWidth, out int desiredHeight)
protected override void MeasureOverride(int availableWidth, int availableHeight, out int desiredWidth, out int desiredHeight)
Measurement override. Implement your size-to-content logic here. (inherited)
| Parameter | Type | Description |
|---|---|---|
availableWidth | int | Available size that parent can give to the child. May be MaxValue(when parent wants to measure to content). This is soft constraint. Child can return bigger size to indicate that it wants bigger space and hope that parent can throw in scrolling... |
availableHeight | int | |
desiredWidth | out int | |
desiredHeight | out int |
ArrangeOverride(int arrangeWidth, int arrangeHeight)
protected override void ArrangeOverride(int arrangeWidth, int arrangeHeight)
ArrangeOverride allows for the customization of the positioning of children. (inherited)
| Parameter | Type | Description |
|---|---|---|
arrangeWidth | int | |
arrangeHeight | int |