Class Grid
Implements Grid layout control
Inherited Members
Namespace: EmptyKeys.UserInterface.Controls
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class Grid : Panel
Constructors
Grid()
Initializes a new instance of the Grid class.
Declaration
public Grid()
Fields
ColumnProperty
The column property
Declaration
public static readonly DependencyProperty ColumnProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ColumnSpanProperty
The column span property
Declaration
public static readonly DependencyProperty ColumnSpanProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
RowProperty
The row property
Declaration
public static readonly DependencyProperty RowProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
RowSpanProperty
The row span property
Declaration
public static readonly DependencyProperty RowSpanProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
ColumnDefinitions
Gets the column definitions.
Declaration
public ColumnDefinitionCollection ColumnDefinitions { get; }
Property Value
Type | Description |
---|---|
ColumnDefinitionCollection | The column definitions. |
RowDefinitions
Gets the row definitions.
Declaration
public RowDefinitionCollection RowDefinitions { get; }
Property Value
Type | Description |
---|---|
RowDefinitionCollection | The row definitions. |
Methods
ArrangeOverride(Size)
Arrange layout pass - overrider method for children
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.Size | finalSize | The final size. |
Returns
Type | Description |
---|---|
EmptyKeys.UserInterface.Size |
Overrides
GetColumn(UIElement)
Gets the column.
Declaration
public static int GetColumn(UIElement obj)
Parameters
Type | Name | Description |
---|---|---|
UIElement | obj | The object. |
Returns
Type | Description |
---|---|
System.Int32 |
GetColumnSpan(UIElement)
Gets the column span.
Declaration
public static int GetColumnSpan(UIElement obj)
Parameters
Type | Name | Description |
---|---|---|
UIElement | obj | The object. |
Returns
Type | Description |
---|---|
System.Int32 |
GetRow(UIElement)
Gets the row.
Declaration
public static int GetRow(UIElement obj)
Parameters
Type | Name | Description |
---|---|---|
UIElement | obj | The object. |
Returns
Type | Description |
---|---|
System.Int32 |
GetRowSpan(UIElement)
Gets the row span.
Declaration
public static int GetRowSpan(UIElement obj)
Parameters
Type | Name | Description |
---|---|---|
UIElement | obj | The object. |
Returns
Type | Description |
---|---|
System.Int32 |
MeasureOverride(Size)
Measure layout pass
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.Size | availableSize | available size for element |
Returns
Type | Description |
---|---|
EmptyKeys.UserInterface.Size |
Overrides
SetColumn(UIElement, Int32)
Sets the column.
Declaration
public static void SetColumn(UIElement obj, int value)
Parameters
Type | Name | Description |
---|---|---|
UIElement | obj | The object. |
System.Int32 | value | The value. |
SetColumnSpan(UIElement, Int32)
Sets the column span.
Declaration
public static void SetColumnSpan(UIElement obj, int value)
Parameters
Type | Name | Description |
---|---|---|
UIElement | obj | The object. |
System.Int32 | value | The value. |
SetRow(UIElement, Int32)
Sets the row.
Declaration
public static void SetRow(UIElement obj, int value)
Parameters
Type | Name | Description |
---|---|---|
UIElement | obj | The object. |
System.Int32 | value | The value. |
SetRowSpan(UIElement, Int32)
Sets the row span.
Declaration
public static void SetRowSpan(UIElement obj, int value)
Parameters
Type | Name | Description |
---|---|---|
UIElement | obj | The object. |
System.Int32 | value | The value. |