-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
TimePicker.cs
41 lines (36 loc) · 1.93 KB
/
TimePicker.cs
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
31
32
33
34
35
36
37
38
39
40
41
#nullable disable
namespace Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific
{
using FormsElement = Microsoft.Maui.Controls.TimePicker;
/// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific/TimePicker.xml" path="Type[@FullName='Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific.TimePicker']/Docs/*" />
public static class TimePicker
{
/// <summary>Bindable property for <see cref="UpdateMode"/>.</summary>
public static readonly BindableProperty UpdateModeProperty = BindableProperty.Create(
nameof(UpdateMode),
typeof(UpdateMode),
typeof(TimePicker),
default(UpdateMode));
/// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific/TimePicker.xml" path="//Member[@MemberName='GetUpdateMode']/Docs/*" />
public static UpdateMode GetUpdateMode(BindableObject element)
{
return (UpdateMode)element.GetValue(UpdateModeProperty);
}
/// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific/TimePicker.xml" path="//Member[@MemberName='SetUpdateMode'][1]/Docs/*" />
public static void SetUpdateMode(BindableObject element, UpdateMode value)
{
element.SetValue(UpdateModeProperty, value);
}
/// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific/TimePicker.xml" path="//Member[@MemberName='UpdateMode']/Docs/*" />
public static UpdateMode UpdateMode(this IPlatformElementConfiguration<iOS, FormsElement> config)
{
return GetUpdateMode(config.Element);
}
/// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific/TimePicker.xml" path="//Member[@MemberName='SetUpdateMode'][2]/Docs/*" />
public static IPlatformElementConfiguration<iOS, FormsElement> SetUpdateMode(this IPlatformElementConfiguration<iOS, FormsElement> config, UpdateMode value)
{
SetUpdateMode(config.Element, value);
return config;
}
}
}