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#Copypublic static class LayoutParamPolicies : object
- Inheritance
-
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
Declaration
C#Copypublic const int MatchParent = null
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#Copypublic const int WrapContent = null
Field Value
Type | Description |
---|---|
Int32 |