Class LayoutParamPolicies
Definition
- Namespace:
- Tizen.NUI.BaseComponents
- Assembly:
- Tizen.NUI.dll
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.
public static class LayoutParamPolicies
- Inheritance
-
objectLayoutParamPolicies
Examples
// 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 SourceMatchParent
Constant which indicates child size should match parent size.
Declaration
public const int MatchParent = -1
Field Value
Type | Description |
---|---|
int |
WrapContent
Constant which indicates parent should take the smallest size possible to wrap its children with their desired size.
Declaration
public const int WrapContent = -2
Field Value
Type | Description |
---|---|
int |