Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 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 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-08T06:27:14.000Z (about 6 years ago)
- Last Synced: 2024-05-13T00:35:25.531Z (6 months 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 FormsThis 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)