8 instantiations of LayoutOptions
Microsoft.Maui.Controls (8)
LayoutOptions.cs (8)
13 public static readonly LayoutOptions Start = new LayoutOptions(LayoutAlignment.Start, false); 15 public static readonly LayoutOptions Center = new LayoutOptions(LayoutAlignment.Center, false); 17 public static readonly LayoutOptions End = new LayoutOptions(LayoutAlignment.End, false); 19 public static readonly LayoutOptions Fill = new LayoutOptions(LayoutAlignment.Fill, false); 23 public static readonly LayoutOptions StartAndExpand = new LayoutOptions(LayoutAlignment.Start, true); 27 public static readonly LayoutOptions CenterAndExpand = new LayoutOptions(LayoutAlignment.Center, true); 31 public static readonly LayoutOptions EndAndExpand = new LayoutOptions(LayoutAlignment.End, true); 35 public static readonly LayoutOptions FillAndExpand = new LayoutOptions(LayoutAlignment.Fill, true);
74 references to LayoutOptions
Microsoft.Maui.Controls (70)
IndicatorView\IndicatorStackLayout.cs (2)
140 VerticalOptions = LayoutOptions.Center, 141 HorizontalOptions = LayoutOptions.Center,
LayoutOptions.cs (15)
8 public struct LayoutOptions : IEquatable<LayoutOptions> 13 public static readonly LayoutOptions Start = new LayoutOptions(LayoutAlignment.Start, false); 15 public static readonly LayoutOptions Center = new LayoutOptions(LayoutAlignment.Center, false); 17 public static readonly LayoutOptions End = new LayoutOptions(LayoutAlignment.End, false); 19 public static readonly LayoutOptions Fill = new LayoutOptions(LayoutAlignment.Fill, false); 23 public static readonly LayoutOptions StartAndExpand = new LayoutOptions(LayoutAlignment.Start, true); 27 public static readonly LayoutOptions CenterAndExpand = new LayoutOptions(LayoutAlignment.Center, true); 31 public static readonly LayoutOptions EndAndExpand = new LayoutOptions(LayoutAlignment.End, true); 35 public static readonly LayoutOptions FillAndExpand = new LayoutOptions(LayoutAlignment.Fill, true); 77 public bool Equals(LayoutOptions other) => _flags == other._flags; 79 public override bool Equals(object obj) => obj is LayoutOptions other && Equals(other); 83 public static bool operator ==(LayoutOptions left, LayoutOptions right) => left.Equals(right); 85 public static bool operator !=(LayoutOptions left, LayoutOptions right) => !(left == right);
LayoutOptionsConverter.cs (13)
30 throw new InvalidOperationException($"Cannot convert \"{strValue}\" into {typeof(LayoutOptions)}"); 35 return LayoutOptions.Start; 37 return LayoutOptions.Center; 39 return LayoutOptions.End; 41 return LayoutOptions.Fill; 43 return LayoutOptions.StartAndExpand; 45 return LayoutOptions.CenterAndExpand; 47 return LayoutOptions.EndAndExpand; 49 return LayoutOptions.FillAndExpand; 51 FieldInfo field = typeof(LayoutOptions).GetFields().FirstOrDefault(fi => fi.IsStatic && fi.Name == strValue); 53 return (LayoutOptions)field.GetValue(null); 56 throw new InvalidOperationException($"Cannot convert \"{strValue}\" into {typeof(LayoutOptions)}"); 62 if (value is not LayoutOptions options)
LegacyLayouts\Grid.cs (2)
176 LayoutOptions vOptions = view.VerticalOptions; 177 LayoutOptions hOptions = view.HorizontalOptions;
LegacyLayouts\Layout.cs (4)
243 LayoutOptions horizontalOptions = view.HorizontalOptions; 260 LayoutOptions verticalOptions = view.VerticalOptions; 507 LayoutOptions horizontalOptions = child.HorizontalOptions; 524 LayoutOptions verticalOptions = child.VerticalOptions;
LegacyLayouts\RelativeLayout.cs (1)
42 VerticalOptions = HorizontalOptions = LayoutOptions.FillAndExpand;
ListView\ListView.cs (1)
108 VerticalOptions = HorizontalOptions = LayoutOptions.FillAndExpand;
RadioButton\RadioButton.cs (6)
482 HorizontalOptions = LayoutOptions.Center, 483 VerticalOptions = LayoutOptions.Center, 493 HorizontalOptions = LayoutOptions.Center, 494 VerticalOptions = LayoutOptions.Center, 503 HorizontalOptions = LayoutOptions.Fill, 504 VerticalOptions = LayoutOptions.Fill
RefreshView\RefreshView.cs (1)
22 VerticalOptions = HorizontalOptions = LayoutOptions.FillAndExpand;
ScrollView\ScrollView.cs (2)
327 LayoutOptions vOptions = view.VerticalOptions; 334 LayoutOptions hOptions = view.HorizontalOptions;
Shell\BaseShellItem.cs (4)
376 new Setter { Property = Image.VerticalOptionsProperty, Value = LayoutOptions.Center } 474 defaultImageClass.Setters.Add(new Setter { Property = Image.HorizontalOptionsProperty, Value = LayoutOptions.Start }); 512 defaultLabelClass.Setters.Add(new Setter { Property = Label.HorizontalOptionsProperty, Value = LayoutOptions.Start }); 517 defaultLabelClass.Setters.Add(new Setter { Property = Label.HorizontalOptionsProperty, Value = LayoutOptions.Start });
TableView\TableView.cs (1)
41 VerticalOptions = HorizontalOptions = LayoutOptions.FillAndExpand;
TemplatedPage.cs (2)
28 LayoutOptions vOptions = view.VerticalOptions; 29 LayoutOptions hOptions = view.HorizontalOptions;
TitleBar\TitleBar.cs (6)
340 HorizontalOptions = LayoutOptions.Fill, 395 VerticalOptions = LayoutOptions.Center, 418 HorizontalOptions = LayoutOptions.Start, 419 VerticalOptions = LayoutOptions.Center, 471 HorizontalOptions = LayoutOptions.Start, 472 VerticalOptions = LayoutOptions.Center,
View\View.cs (10)
26 BindableProperty.Create(nameof(VerticalOptions), typeof(LayoutOptions), typeof(View), LayoutOptions.Fill, 32 BindableProperty.Create(nameof(HorizontalOptions), typeof(LayoutOptions), typeof(View), LayoutOptions.Fill, 222 /// Gets or sets the <see cref="LayoutOptions" /> that define how the element gets arranged in a layout cycle. This is a bindable property. 228 public LayoutOptions HorizontalOptions 230 get { return (LayoutOptions)GetValue(HorizontalOptionsProperty); } 244 /// Gets or sets the <see cref="LayoutOptions" /> that define how the element gets arrange in a layout cycle. This is a bindable property. 250 public LayoutOptions VerticalOptions 252 get { return (LayoutOptions)GetValue(VerticalOptionsProperty); }
Microsoft.Maui.Controls.Build.Tasks (1)
CompiledConverters\LayoutOptionsConverter.cs (1)
40 throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(LayoutOptions));
Microsoft.Maui.Controls.Foldable (2)
TwoPaneView.cs (2)
236 this.VerticalOptions = LayoutOptions.Fill; 237 this.HorizontalOptions = LayoutOptions.Fill;
Microsoft.Maui.Controls.Maps (1)
Map.cs (1)
58 VerticalOptions = HorizontalOptions = LayoutOptions.FillAndExpand;