Class LayoutParamPolicies

Definition

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

Layout policies to decide the size of View when the View is laid out in its parent View. LayoutParamPolicies.MatchParent and LayoutParamPolicies.WrapContent can be assigned to WidthSpecification and HeightSpecification.

C#
Copy
public static class LayoutParamPolicies
Inheritance
System.Object
LayoutParamPolicies
Examples
Copy
// matchParentView matches its size to its parent size. matchParentView.WidthSpecification = LayoutParamPolicies.MatchParent; matchParentView.HeightSpecification = LayoutParamPolicies.MatchParent; // wrapContentView wraps its children with their desired size. wrapContentView.WidthSpecification = LayoutParamPolicies.WrapContent; wrapContentView.HeightSpecification = LayoutParamPolicies.WrapContent;

Fields

View Source

MatchParent

Constant which indicates child size should match parent size.

Declaration
C#
Copy
public const int MatchParent = -1
Field Value
Type Description
Int32
API Level: 9
View Source

WrapContent

Constant which indicates parent should take the smallest size possible to wrap its children with their desired size.

Declaration
C#
Copy
public const int WrapContent = -2
Field Value
Type Description
Int32
API Level: 9