Share via


Button.SetUseDefaultPadding Method

Definition

Overloads

Name Description
SetUseDefaultPadding(BindableObject, Boolean)

Sets whether the button uses Android's default padding.

SetUseDefaultPadding(IPlatformElementConfiguration<Android,Button>, Boolean)

Sets whether the button uses Android's default padding.

SetUseDefaultPadding(BindableObject, Boolean)

Source:
Button.cs
Source:
Button.cs
Source:
Button.cs
Source:
Button.cs

Sets whether the button uses Android's default padding.

public:
 static void SetUseDefaultPadding(Microsoft::Maui::Controls::BindableObject ^ element, bool value);
public static void SetUseDefaultPadding(Microsoft.Maui.Controls.BindableObject element, bool value);
static member SetUseDefaultPadding : Microsoft.Maui.Controls.BindableObject * bool -> unit
Public Sub SetUseDefaultPadding (element As BindableObject, value As Boolean)

Parameters

element
BindableObject

The button element.

value
Boolean

true to use default padding; otherwise, false.

Applies to

SetUseDefaultPadding(IPlatformElementConfiguration<Android,Button>, Boolean)

Source:
Button.cs
Source:
Button.cs
Source:
Button.cs
Source:
Button.cs

Sets whether the button uses Android's default padding.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::Android ^, Microsoft::Maui::Controls::Button ^> ^ SetUseDefaultPadding(Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::Android ^, Microsoft::Maui::Controls::Button ^> ^ config, bool value);
public static Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Android,Microsoft.Maui.Controls.Button> SetUseDefaultPadding(this Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Android,Microsoft.Maui.Controls.Button> config, bool value);
static member SetUseDefaultPadding : Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Android, Microsoft.Maui.Controls.Button> * bool -> Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Android, Microsoft.Maui.Controls.Button>
<Extension()>
Public Function SetUseDefaultPadding (config As IPlatformElementConfiguration(Of Android, Button), value As Boolean) As IPlatformElementConfiguration(Of Android, Button)

Parameters

config
IPlatformElementConfiguration<Android,Button>

The platform configuration.

value
Boolean

true to use default padding; otherwise, false.

Returns

The platform configuration for fluent API chaining.

Applies to