---
nav-title: "stack-layout How-To"
title: "stack-layout"
description: "Examples for using stack-layout"
previous_url: /ApiReference/ui/layouts/stack-layout/HOW-TO
---
# StackLayout
Using a StackLayout requires the StackLayout module.
### Declaring a StackLayout.
``` XML
```
## Create StackLayout
## Add child view to layout
## Remove child view from layout
## Change layout orientation to Horizontal