-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Button.cs
69 lines (59 loc) · 3.6 KB
/
Button.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#nullable disable
namespace Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific
{
using FormsElement = Maui.Controls.Button;
/// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific/Button.xml" path="Type[@FullName='Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific.Button']/Docs/*" />
public static class Button
{
#region UseDefaultPadding
/// <summary>Bindable property for <see cref="UseDefaultPadding"/>.</summary>
public static readonly BindableProperty UseDefaultPaddingProperty = BindableProperty.Create("UseDefaultPadding", typeof(bool), typeof(Button), false);
/// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific/Button.xml" path="//Member[@MemberName='GetUseDefaultPadding']/Docs/*" />
public static bool GetUseDefaultPadding(BindableObject element)
{
return (bool)element.GetValue(UseDefaultPaddingProperty);
}
/// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific/Button.xml" path="//Member[@MemberName='SetUseDefaultPadding'][1]/Docs/*" />
public static void SetUseDefaultPadding(BindableObject element, bool value)
{
element.SetValue(UseDefaultPaddingProperty, value);
}
/// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific/Button.xml" path="//Member[@MemberName='UseDefaultPadding']/Docs/*" />
public static bool UseDefaultPadding(this IPlatformElementConfiguration<Android, FormsElement> config)
{
return GetUseDefaultPadding(config.Element);
}
/// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific/Button.xml" path="//Member[@MemberName='SetUseDefaultPadding'][2]/Docs/*" />
public static IPlatformElementConfiguration<Android, FormsElement> SetUseDefaultPadding(this IPlatformElementConfiguration<Android, FormsElement> config, bool value)
{
SetUseDefaultPadding(config.Element, value);
return config;
}
#endregion
#region UseDefaultShadow
/// <summary>Bindable property for <see cref="UseDefaultShadow"/>.</summary>
public static readonly BindableProperty UseDefaultShadowProperty = BindableProperty.Create("UseDefaultShadow", typeof(bool), typeof(Button), false);
/// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific/Button.xml" path="//Member[@MemberName='GetUseDefaultShadow']/Docs/*" />
public static bool GetUseDefaultShadow(BindableObject element)
{
return (bool)element.GetValue(UseDefaultShadowProperty);
}
/// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific/Button.xml" path="//Member[@MemberName='SetUseDefaultShadow'][1]/Docs/*" />
public static void SetUseDefaultShadow(BindableObject element, bool value)
{
element.SetValue(UseDefaultShadowProperty, value);
}
/// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific/Button.xml" path="//Member[@MemberName='UseDefaultShadow']/Docs/*" />
public static bool UseDefaultShadow(this IPlatformElementConfiguration<Android, FormsElement> config)
{
return GetUseDefaultShadow(config.Element);
}
/// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific/Button.xml" path="//Member[@MemberName='SetUseDefaultShadow'][2]/Docs/*" />
public static IPlatformElementConfiguration<Android, FormsElement> SetUseDefaultShadow(this IPlatformElementConfiguration<Android, FormsElement> config, bool value)
{
SetUseDefaultShadow(config.Element, value);
return config;
}
#endregion
}
}