Files
NativeScript/apps/tests/layouts/wrap-layout.md
2016-04-15 14:49:44 +03:00

30 lines
705 B
Markdown

---
nav-title: "WrapLayout How-To"
title: "How-To"
description: "Examples for using WrapLayout"
---
# WrapLayout
Using a WrapLayout requires the WrapLayout module.
<snippet id='wrap-layout-require'/>
Other frequently used modules when working with a WrapLayout include:
<snippet id='wrap-layout-others'/>
## Creating a WrapLayout
<snippet id='wrap-layout-new'/>
### Declaring a WrapLayout.
``` XML
<Page>
<WrapLayout>
<Label text="This is Label 1" />
<Label text="This is Label 2" />
<Label text="This is Label 3" />
<Label text="This is Label 4" />
</WrapLayout>
</Page>
```
## Setting the orientation of a wrap-layout.
<snippet id='wrap-layout-orientation'/>