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: 7 months ago
JSON representation
Multiple position Toogle Switch control for Xamarin Forms
- Host: GitHub
- URL: https://github.com/VasenevEA/MultipleToggleSwitch
- Owner: VasenevEA
- Created: 2018-10-07T18:55:29.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-08T06:27:14.000Z (about 7 years ago)
- Last Synced: 2024-11-13T22:35:15.474Z (about 1 year ago)
- Topics: control, switch, toogleswitch, xamarin, xamarin-forms, xamarin-forms-control
- Language: C#
- Size: 654 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-xamarin-forms - MultipleToggleSwitch ★2
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"};
```

```
public string[] Toggles { get; set; } = new string[] { "On", "Auto", "Off", "Some" };
```
