1 instantiation of Button
Microsoft.Maui.Controls (1)
Internals\ProfilePage.cs (1)
117 var buttonA = new Button() { Text = "0s", HeightRequest = 62 };
58 references to Button
Microsoft.Maui.Controls (58)
Button\Button.cs (15)
16 public partial class Button : View, IFontElement, ITextElement, IBorderElement, IButtonController, IElementConfiguration<Button>, IPaddingElement, IImageController, IViewController, IButtonElement, ICommandElement, IImageElement, IButton, ITextButton, IImageButton 34 nameof(ContentLayout), typeof(ButtonContentLayout), typeof(Button), new ButtonContentLayout(ButtonContentLayout.ImagePosition.Left, DefaultSpacing), 35 propertyChanged: (bindable, oldVal, newVal) => ((Button)bindable).InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged)); 41 nameof(Text), typeof(string), typeof(Button), null, 42 propertyChanged: (bindable, oldVal, newVal) => ((Button)bindable).InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged)); 82 public static readonly BindableProperty BorderWidthProperty = BindableProperty.Create(nameof(BorderWidth), typeof(double), typeof(Button), -1d); 92 public static readonly BindableProperty CornerRadiusProperty = BindableProperty.Create(nameof(CornerRadius), typeof(int), typeof(Button), defaultValue: BorderElement.DefaultCornerRadius); 108 nameof(LineBreakMode), typeof(LineBreakMode), typeof(Button), LineBreakMode.NoWrap, 109 propertyChanged: (bindable, oldvalue, newvalue) => ((Button)bindable).InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged)); 137 internal static readonly BindablePropertyKey IsPressedPropertyKey = BindableProperty.CreateReadOnly(nameof(IsPressed), typeof(bool), typeof(Button), default(bool)); 144 readonly Lazy<PlatformConfigurationRegistry<Button>> _platformConfigurationRegistry; 349 /// Initializes a new instance of the <see cref="Button"/> class. 353 _platformConfigurationRegistry = new Lazy<PlatformConfigurationRegistry<Button>>(() => new PlatformConfigurationRegistry<Button>(this)); 357 public IPlatformElementConfiguration<T, Button> On<T>() where T : IConfigPlatform
Button\Button.iOS.cs (9)
33 var button = this; 189 void LayoutButton(UIButton platformButton, Button button, Rect size) 279 CGRect ComputeTitleRect(UIButton platformButton, Button button, UIImage image, double widthConstraint, double heightConstraint, double borderWidth, Thickness padding, bool isMeasuring) 337 bool ResizeImageIfNecessary(UIButton platformButton, Button button, UIImage image, Thickness padding, double spacing, double borderWidth, double widthConstraint, double heightConstraint) 451 public static void MapText(ButtonHandler handler, Button button) => 454 public static void MapLineBreakMode(IButtonHandler handler, Button button) 459 private static void MapPadding(IButtonHandler handler, Button button) 464 public static void MapText(IButtonHandler handler, Button button) 469 internal static void MapBorderWidth(IButtonHandler handler, Button button)
Button\Button.Mapper.cs (9)
17 ButtonHandler.Mapper.ReplaceMapping<Button, IButtonHandler>(nameof(ContentLayout), MapContentLayout); 19 ButtonHandler.Mapper.ReplaceMapping<Button, IButtonHandler>(nameof(Padding), MapPadding); 20 ButtonHandler.Mapper.ReplaceMapping<Button, IButtonHandler>(nameof(BorderWidth), MapBorderWidth); 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) =>
Compatibility\iOS\FontNamedSizeService.cs (1)
41 return (int)((typeof(Button).IsAssignableFrom(targetElementType) ? 15 : 17) * scalingFactor);
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>(); 242 Button.RemapForControls();
Internals\ProfilePage.cs (1)
117 var buttonA = new Button() { Text = "0s", HeightRequest = 62 };
Platform\iOS\Extensions\ButtonExtensions.cs (6)
9using static Microsoft.Maui.Controls.Button; 66 public static void UpdatePadding(this UIButton platformButton, Button button) 75 internal static void UpdateContentEdgeInsets(this UIButton platformButton, Button button, Thickness thickness) 80 public static void UpdateContentLayout(this UIButton platformButton, Button button) 85 public static void UpdateText(this UIButton platformButton, Button button) 101 public static void UpdateLineBreakMode(this UIButton nativeButton, Button button)
Platform\iOS\Extensions\Extensions.cs (3)
47 internal static bool IsHorizontal(this Button.ButtonContentLayout layout) => 48 layout.Position == Button.ButtonContentLayout.ImagePosition.Left || 49 layout.Position == Button.ButtonContentLayout.ImagePosition.Right;
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)
89[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.