Class FlexContainer
Definition
- Namespace:
- Tizen.NUI.BaseComponents
- Assembly:
- Tizen.NUI.dll
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.
public class FlexContainer : View, INotifyPropertyChanged, IDisposable
- Inheritance
-
objectTizen.NUI.Binding.BindableObjectTizen.NUI.Binding.ElementFlexContainer
- Implements
-
System.ComponentModel.INotifyPropertyChangedSystem.IDisposable
Constructors
View SourceFlexContainer()
Creates a FlexContainer handle. Calling member functions with an uninitialized handle is not allowed.
Declaration
public FlexContainer()
Properties
View SourceAlignContent
Similar to "alignItems", but it aligns flex lines; so only works when there are multiple lines.
Declaration
public FlexContainer.Alignment AlignContent { get; set; }
Property Value
Type | Description |
---|---|
FlexContainer.Alignment |
AlignItems
The alignment of flex items when the items do not use all available space on the cross axis.
Declaration
public FlexContainer.Alignment AlignItems { get; set; }
Property Value
Type | Description |
---|---|
FlexContainer.Alignment |
ContentDirection
The primary direction in which content is ordered.
Declaration
public FlexContainer.ContentDirectionType ContentDirection { get; set; }
Property Value
Type | Description |
---|---|
FlexContainer.ContentDirectionType |
FlexDirection
The direction of the main axis which determines the direction that flex items are laid out.
Declaration
public FlexContainer.FlexDirectionType FlexDirection { get; set; }
Property Value
Type | Description |
---|---|
FlexContainer.FlexDirectionType |
FlexWrap
Whether the flex items should wrap or not if there is no enough room for them on one flex line.
Declaration
public FlexContainer.WrapType FlexWrap { get; set; }
Property Value
Type | Description |
---|---|
FlexContainer.WrapType |
JustifyContent
The alignment of flex items when the items do not use all available space on the main axis.
Declaration
public FlexContainer.Justification JustifyContent { get; set; }
Property Value
Type | Description |
---|---|
FlexContainer.Justification |
Methods
View SourceDispose(DisposeTypes)
To make the FlexContainer instance be disposed.
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type |