Files
NativeScript/apps/tests/ui/layouts/wrap-layout.md
2016-05-02 17:44:58 +03:00

30 lines
710 B
Markdown

---
nav-title: "WrapLayout How-To"
title: "wrap-layout"
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'/>