Class FlexContainer

Definition

Namespace:
Tizen.NUI.BaseComponents
Assembly:
Tizen.NUI.dll
API Level:
3

FlexContainer implements a subset of the flexbox spec (defined by W3C):https://www.w3.org/TR/css3-flexbox/
It aims at providing a more efficient way to layout, align, and distribute space among items in the container, even when their size is unknown or dynamic.
FlexContainer has the ability to alter the width and the height of its children (i.e., flex items) to fill the available space in the best possible way on different screen sizes.
FlexContainer can expand items to fill available free space, or shrink them to prevent overflow.

C#
Copy
public class FlexContainer : View, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
Inheritance
Implements

Constructors

View Source

FlexContainer()

Creates a FlexContainer handle. Calling member functions with an uninitialized handle is not allowed.

Declaration
C#
Copy
public FlexContainer()
API Level: 3

Fields

View Source

AlignContentProperty

Property of AlignContent

Declaration
C#
Copy
public static readonly BindableProperty AlignContentProperty
Field Value
Type Description
BindableProperty
View Source

AlignItemsProperty

Property of AlignItems

Declaration
C#
Copy
public static readonly BindableProperty AlignItemsProperty
Field Value
Type Description
BindableProperty
View Source

ContentDirectionProperty

Property of ContentDirection

Declaration
C#
Copy
public static readonly BindableProperty ContentDirectionProperty
Field Value
Type Description
BindableProperty
View Source

FlexDirectionProperty

Property of FlexDirection

Declaration
C#
Copy
public static readonly BindableProperty FlexDirectionProperty
Field Value
Type Description
BindableProperty
View Source

FlexWrapProperty

Property of FlexWrap

Declaration
C#
Copy
public static readonly BindableProperty FlexWrapProperty
Field Value
Type Description
BindableProperty
View Source

JustifyContentProperty

Property of JustifyContent

Declaration
C#
Copy
public static readonly BindableProperty JustifyContentProperty
Field Value
Type Description
BindableProperty

Properties

View Source

AlignContent

Similar to "alignItems", but it aligns flex lines; so only works when there are multiple lines.

Declaration
C#
Copy
public FlexContainer.Alignment AlignContent { get; set; }
Property Value
Type Description
FlexContainer.Alignment
API Level: 3
View Source

AlignItems

The alignment of flex items when the items do not use all available space on the cross axis.

Declaration
C#
Copy
public FlexContainer.Alignment AlignItems { get; set; }
Property Value
Type Description
FlexContainer.Alignment
API Level: 3
View Source

ContentDirection

The primary direction in which content is ordered.

Declaration
C#
Copy
public FlexContainer.ContentDirectionType ContentDirection { get; set; }
Property Value
Type Description
FlexContainer.ContentDirectionType
API Level: 3
View Source

FlexDirection

The direction of the main axis which determines the direction that flex items are laid out.

Declaration
C#
Copy
public FlexContainer.FlexDirectionType FlexDirection { get; set; }
Property Value
Type Description
FlexContainer.FlexDirectionType
API Level: 3
View Source

FlexWrap

Whether the flex items should wrap or not if there is no enough room for them on one flex line.

Declaration
C#
Copy
public FlexContainer.WrapType FlexWrap { get; set; }
Property Value
Type Description
FlexContainer.WrapType
API Level: 3
View Source

JustifyContent

The alignment of flex items when the items do not use all available space on the main axis.

Declaration
C#
Copy
public FlexContainer.Justification JustifyContent { get; set; }
Property Value
Type Description
FlexContainer.Justification
API Level: 3

Methods

View Source

ReleaseSwigCPtr(Runtime.InteropServices.HandleRef)

Declaration
C#
Copy
protected override void ReleaseSwigCPtr(Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type Name Description
Tizen.System.Runtime.InteropServices.HandleRef swigCPtr
Overrides

Implements

Extension Methods