---
nav-title: "switch How-To"
title: "How-To"
description: "Examples for using switch"
---
# Switch
Using a switch requires the Switch module.
### Binding the Switch checked property and Button isEanbled property to a observable view-model property.
``` XML
{%raw%}
{%endraw%}
```
### Creating a switch
### Setting the checked property of a switch
### Binding checked property to a model