summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/Switch.cs
blob: cef38f34c68bc595bcf4c8141d04285e011adbed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
namespace Xamarin.Forms.PlatformConfiguration.TizenSpecific
{
	using FormsElement = Forms.Switch;

	public static class Switch
	{
		public static readonly BindableProperty SwitchStyleProperty = BindableProperty.Create("SwitchStyle", typeof(SwitchStyle), typeof(FormsElement), SwitchStyle.Default);

		public static SwitchStyle GetSwitchStyle(BindableObject element)
		{
			return (SwitchStyle)element.GetValue(SwitchStyleProperty);
		}

		public static void SetSwitchStyle(BindableObject element, SwitchStyle value)
		{
			element.SetValue(SwitchStyleProperty, value);
		}

		public static SwitchStyle GetSwitchStyle(this IPlatformElementConfiguration<Tizen, FormsElement> config)
		{
			return GetSwitchStyle(config.Element);
		}

		public static IPlatformElementConfiguration<Tizen, FormsElement> SetSwitchStyle(this IPlatformElementConfiguration<Tizen, FormsElement> config, SwitchStyle value)
		{
			SetSwitchStyle(config.Element, value);
			return config;
		}
	}
}