-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Picker.cs
37 lines (32 loc) · 1.87 KB
/
Picker.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
#nullable disable
namespace Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific
{
using FormsElement = Maui.Controls.Picker;
/// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific/Picker.xml" path="Type[@FullName='Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific.Picker']/Docs/*" />
public static class Picker
{
/// <summary>Bindable property for <see cref="UpdateMode"/>.</summary>
public static readonly BindableProperty UpdateModeProperty = BindableProperty.Create(nameof(UpdateMode), typeof(UpdateMode), typeof(Picker), default(UpdateMode));
/// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific/Picker.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/Picker.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/Picker.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/Picker.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;
}
}
}