Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/VasenevEA/MultipleToggleSwitch

Multiple position Toogle Switch control for Xamarin Forms
https://github.com/VasenevEA/MultipleToggleSwitch

control switch toogleswitch xamarin xamarin-forms xamarin-forms-control

Last synced: 29 days ago
JSON representation

Multiple position Toogle Switch control for Xamarin Forms

Awesome Lists containing this project

README

        

# MultipleToogleSwitch
Multiple position Toogle Switch control for Xamarin Forms

This is a ContentView based Control.
Requeires - None;

How to use:
- add files to your pcl/.net Standart project
- MultiToogleSwitch.xaml
- MultiToogleSwitch.xaml.cs
- ToogleCustomButton.cs

- paste code on your page/view\
```

```
- In your ViewModel add property ( array of buttons text)
```
public string[] Toggles { get; set; } = new string[] { "On", "Auto", "Off", "Some" };
```
- Bind SelectedId property
- You can change some parameters
```
public new Color BackgroundColor { get; set; }
public Color SelectedColor { get; set; }
public Color DefaultColor { get; set; }

public Color SelectedBorderColor { get; set; }
public Color DefaultBorderColor { get; set; }
public float CornerRadius { get; set; }
public double FontSize { get; set; }
```
- Profit!

```
public string[] Toggles { get; set; } = new string[] { "On", "Auto", "Off"};
```
![](https://github.com/VasenevEA/MultipleToogleSwitch/blob/master/Res/3toogleSwitch.gif)

```
public string[] Toggles { get; set; } = new string[] { "On", "Auto", "Off", "Some" };
```
![](https://github.com/VasenevEA/MultipleToogleSwitch/blob/master/Res/4toogleSwitch.gif)