1 instantiation of Button
Microsoft.Maui.Controls (1)
Internals\ProfilePage.cs (1)
117
var buttonA = new
Button
() { Text = "0s", HeightRequest = 62 };
43 references to Button
Microsoft.Maui.Controls (43)
Button\Button.cs (15)
18
public partial class Button : View, IFontElement, ITextElement, IBorderElement, IButtonController, IElementConfiguration<
Button
>, IPaddingElement, IImageController, IViewController, IButtonElement, ICommandElement, IImageElement, IButton, ITextButton, IImageButton
36
nameof(ContentLayout), typeof(ButtonContentLayout), typeof(
Button
), new ButtonContentLayout(ButtonContentLayout.ImagePosition.Left, DefaultSpacing),
37
propertyChanged: (bindable, oldVal, newVal) => ((
Button
)bindable).InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged));
43
nameof(Text), typeof(string), typeof(
Button
), null,
44
propertyChanged: (bindable, oldVal, newVal) => ((
Button
)bindable).InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged));
84
public static readonly BindableProperty BorderWidthProperty = BindableProperty.Create(nameof(BorderWidth), typeof(double), typeof(
Button
), -1d);
94
public static readonly BindableProperty CornerRadiusProperty = BindableProperty.Create(nameof(CornerRadius), typeof(int), typeof(
Button
), defaultValue: BorderElement.DefaultCornerRadius);
110
nameof(LineBreakMode), typeof(LineBreakMode), typeof(
Button
), LineBreakMode.NoWrap,
111
propertyChanged: (bindable, oldvalue, newvalue) => ((
Button
)bindable).InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged));
139
internal static readonly BindablePropertyKey IsPressedPropertyKey = BindableProperty.CreateReadOnly(nameof(IsPressed), typeof(bool), typeof(
Button
), default(bool));
146
readonly Lazy<PlatformConfigurationRegistry<
Button
>> _platformConfigurationRegistry;
351
/// Initializes a new instance of the <see cref="
Button
"/> class.
355
_platformConfigurationRegistry = new Lazy<PlatformConfigurationRegistry<
Button
>>(() => new PlatformConfigurationRegistry<
Button
>(this));
359
public IPlatformElementConfiguration<T,
Button
> On<T>() where T : IConfigPlatform
Button\Button.Mapper.cs (7)
17
ButtonHandler.Mapper.ReplaceMapping<
Button
, IButtonHandler>(nameof(ContentLayout), MapContentLayout);
25
ButtonHandler.Mapper.ReplaceMapping<
Button
, IButtonHandler>(nameof(Text), MapText);
27
ButtonHandler.Mapper.ReplaceMapping<
Button
, IButtonHandler>(nameof(TextTransform), MapText);
28
ButtonHandler.Mapper.ReplaceMapping<
Button
, IButtonHandler>(nameof(
Button
.LineBreakMode), MapLineBreakMode);
36
public static void MapContentLayout(IButtonHandler handler,
Button
button)
41
public static void MapContentLayout(ButtonHandler handler,
Button
button) =>
Button\Button.Standard.cs (4)
11
public static void MapText(ButtonHandler handler,
Button
button) { }
18
public static void MapLineBreakMode(ButtonHandler handler,
Button
button) { }
20
public static void MapText(IButtonHandler handler,
Button
button) { }
22
public static void MapLineBreakMode(IButtonHandler handler,
Button
button) { }
DragAndDrop\DropGestureRecognizer.cs (1)
141
else if (Parent is
Button
b)
Element\Element.cs (1)
45
/// <description>The lower part of the diagram shows the Microsoft.Maui.Controls classes for universally-available controls, such as <see cref = "
Button
"/> and <see cref="TableView"/>.</description>
Hosting\AppHostBuilderExtensions.cs (2)
69
handlersCollection.AddHandler<
Button
, ButtonHandler>();
248
Button
.RemapForControls();
Internals\ProfilePage.cs (1)
117
var
buttonA = new Button() { Text = "0s", HeightRequest = 62 };
Platform\Standard\Extensions\ButtonExtensions.cs (2)
4
using static Microsoft.Maui.Controls.
Button
;
10
public static void UpdateContentLayout(this object platformButton,
Button
button)
PlatformConfiguration\AndroidSpecific\Button.cs (7)
4
using FormsElement = Maui.Controls.
Button
;
26
public static bool UseDefaultPadding(this IPlatformElementConfiguration<Android,
FormsElement
> config)
32
public static IPlatformElementConfiguration<Android,
FormsElement
> SetUseDefaultPadding(this IPlatformElementConfiguration<Android,
FormsElement
> config, bool value)
56
public static bool UseDefaultShadow(this IPlatformElementConfiguration<Android,
FormsElement
> config)
62
public static IPlatformElementConfiguration<Android,
FormsElement
> SetUseDefaultShadow(this IPlatformElementConfiguration<Android,
FormsElement
> config, bool value)
Properties\AssemblyInfo.cs (2)
90
[assembly: StyleProperty("border-radius", typeof(
Button
), nameof(
Button
.CornerRadiusProperty))]
View\View.cs (1)
174
/// For example, adding a <see cref="TapGestureRecognizer"/> to a <see cref="
Button
"/> may lead to unexpected results.