Condividi tramite


Button.SetUseDefaultPadding Method

Definition

Overloads

SetUseDefaultPadding(BindableObject, Boolean)

Sets a Boolean value that controls whether the button will use the default padding.

SetUseDefaultPadding(IPlatformElementConfiguration<Android,Button>, Boolean)

Sets a Boolean value that controls whether the button will use the default padding.

SetUseDefaultPadding(BindableObject, Boolean)

Source:
Button.cs
Source:
Button.cs

Sets a Boolean value that controls whether the button will use the 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 Android button whose padding behavior to set.

value
Boolean

true to use the default padding. Otherwise, false

Applies to

SetUseDefaultPadding(IPlatformElementConfiguration<Android,Button>, Boolean)

Source:
Button.cs
Source:
Button.cs

Sets a Boolean value that controls whether the button will use the 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 configuration for the Android button whose padding behavior to set.

value
Boolean

true to use the default padding. Otherwise, false

Returns

A fluent object on which the developer may make further method calls.

Applies to