Grid Class
Namespace: Stride.UI.Panels
Assembly: Stride.UI.dll
Represents a grid control with adjustable columns, rows and layers.
Derived from Grid:
[DataContract("Grid")]
public class Grid : GridBase, IUIElementUpdate, IUIElementChildren, IIdentifiable, IScrollAnchorInfo
|
Improve this Doc
View Source
Constructors
Grid()
|
Improve this Doc
View Source
Properties
ActualColumnDefinitions
The actual definitions of the grid columns.
public StripDefinitionCollection ActualColumnDefinitions { get; }
Property Value
Remarks
ActualLayerDefinitions
The actual definitions of the grid layers.
public StripDefinitionCollection ActualLayerDefinitions { get; }
Property Value
ActualRowDefinitions
The actual definitions of the grid rows.
public StripDefinitionCollection ActualRowDefinitions { get; }
Property Value
ColumnDefinitions
The definitions of the grid columns.
[DataMember]
[Display(null, "Layout")]
public StripDefinitionCollection ColumnDefinitions { get; }
Property Value
LayerDefinitions
The definitions of the grid layers.
[DataMember]
[Display(null, "Layout")]
public StripDefinitionCollection LayerDefinitions { get; }
Property Value
RowDefinitions
The definitions of the grid rows.
[DataMember]
[Display(null, "Layout")]
public StripDefinitionCollection RowDefinitions { get; }
Property Value
|
Improve this Doc
View Source
Methods
ArrangeOverride(Vector3)
protected override Vector3 ArrangeOverride(Vector3 finalSizeWithoutMargins)
Parameters
Type |
Name |
Description |
Vector3 |
finalSizeWithoutMargins |
|
Returns
Overrides
GetElementGridPositions(UIElement)
protected override Int3 GetElementGridPositions(UIElement element)
Parameters
Returns
Overrides
GetElementSpanValues(UIElement)
protected override Int3 GetElementSpanValues(UIElement element)
Parameters
Returns
Overrides
GetSurroudingAnchorDistances(Orientation, Single)
public override Vector2 GetSurroudingAnchorDistances(Orientation direction, float position)
Parameters
Type |
Name |
Description |
Orientation |
direction |
|
System.Single |
position |
|
Returns
Overrides
MeasureOverride(Vector3)
protected override Vector3 MeasureOverride(Vector3 availableSizeWithoutMargins)
Parameters
Type |
Name |
Description |
Vector3 |
availableSizeWithoutMargins |
|
Returns
Overrides
OnLogicalChildAdded(UIElement, Int32)
protected override void OnLogicalChildAdded(UIElement newElement, int index)
Parameters
Type |
Name |
Description |
UIElement |
newElement |
|
System.Int32 |
index |
|
Overrides
OnLogicalChildRemoved(UIElement, Int32)
protected override void OnLogicalChildRemoved(UIElement oldElement, int index)
Parameters
Type |
Name |
Description |
UIElement |
oldElement |
|
System.Int32 |
index |
|
Overrides
Extension Methods