2 instantiations of ButtonContentLayout
Microsoft.Maui.Controls (2)
Button\Button.cs (2)
34 nameof(ContentLayout), typeof(ButtonContentLayout), typeof(Button), new ButtonContentLayout(ButtonContentLayout.ImagePosition.Left, DefaultSpacing), 604 return new ButtonContentLayout(position, spacing);
33 references to ButtonContentLayout
Microsoft.Maui.Controls (33)
Button\Button.cs (10)
34 nameof(ContentLayout), typeof(ButtonContentLayout), typeof(Button), new ButtonContentLayout(ButtonContentLayout.ImagePosition.Left, DefaultSpacing), 179 public ButtonContentLayout ContentLayout 181 get { return (ButtonContentLayout)GetValue(ContentLayoutProperty); } 568 /// A converter to convert a string to a <see cref="ButtonContentLayout"/> object. 583 throw new InvalidOperationException($"Cannot convert null into {typeof(ButtonContentLayout)}"); 588 throw new InvalidOperationException($"Cannot convert \"{strValue}\" into {typeof(ButtonContentLayout)}"); 591 var position = ButtonContentLayout.ImagePosition.Left; 602 position = (ButtonContentLayout.ImagePosition)Enum.Parse(typeof(ButtonContentLayout.ImagePosition), parts[positionIndex], true);
Button\Button.iOS.cs (20)
42 var layout = button.ContentLayout; 61 && (layout.Position == ButtonContentLayout.ImagePosition.Left || layout.Position == ButtonContentLayout.ImagePosition.Right)) 69 && (layout.Position == ButtonContentLayout.ImagePosition.Top || layout.Position == ButtonContentLayout.ImagePosition.Bottom)) 132 if (layout.Position == ButtonContentLayout.ImagePosition.Top || layout.Position == ButtonContentLayout.ImagePosition.Bottom) 147 && (layout.Position == ButtonContentLayout.ImagePosition.Top || layout.Position == ButtonContentLayout.ImagePosition.Bottom)) 191 var layout = button.ContentLayout; 222 if (layout.Position == ButtonContentLayout.ImagePosition.Top) 230 else if (layout.Position == ButtonContentLayout.ImagePosition.Bottom) 238 else if (layout.Position == ButtonContentLayout.ImagePosition.Left) 247 else if (layout.Position == ButtonContentLayout.ImagePosition.Right) 296 if (image is not null && button.ContentLayout.Position == ButtonContentLayout.ImagePosition.Left || button.ContentLayout.Position == ButtonContentLayout.ImagePosition.Right) 312 if (currentTitleText.Length > 0 && button.ContentLayout.Position == ButtonContentLayout.ImagePosition.Left || button.ContentLayout.Position == ButtonContentLayout.ImagePosition.Right) 357 if (button.ContentLayout.Position == ButtonContentLayout.ImagePosition.Left || button.ContentLayout.Position == ButtonContentLayout.ImagePosition.Right)
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;