48 references to AbsoluteLayoutFlags
Microsoft.Maui (11)
Core\IAbsoluteLayout.cs (1)
23 AbsoluteLayoutFlags GetLayoutFlags(IView view);
Layouts\AbsoluteLayoutManager.cs (10)
37 var flags = AbsoluteLayout.GetLayoutFlags(child); 38 bool isWidthProportional = HasFlag(flags, AbsoluteLayoutFlags.WidthProportional); 39 bool isHeightProportional = HasFlag(flags, AbsoluteLayoutFlags.HeightProportional); 78 var flags = AbsoluteLayout.GetLayoutFlags(child); 80 bool isWidthProportional = HasFlag(flags, AbsoluteLayoutFlags.WidthProportional); 81 bool isHeightProportional = HasFlag(flags, AbsoluteLayoutFlags.HeightProportional); 86 if (HasFlag(flags, AbsoluteLayoutFlags.XProportional)) 91 if (HasFlag(flags, AbsoluteLayoutFlags.YProportional)) 105 static bool HasFlag(AbsoluteLayoutFlags a, AbsoluteLayoutFlags b)
Microsoft.Maui.Controls (37)
Layout\AbsoluteLayout.cs (13)
12 /// depending on the <see cref="AbsoluteLayoutFlags" /> values that are passed to 13 /// <see cref="SetLayoutFlags(BindableObject,AbsoluteLayoutFlags)" /> method. 14 /// When one of the proportional <see cref="AbsoluteLayoutFlags" /> enumeration values is provided, the corresponding X, or Y arguments that 39 typeof(AbsoluteLayoutFlags), typeof(AbsoluteLayout), AbsoluteLayoutFlags.None); 58 public static AbsoluteLayoutFlags GetLayoutFlags(BindableObject bindable) 60 return (AbsoluteLayoutFlags)bindable.GetValue(LayoutFlagsProperty); 79 /// In XAML, application developers can specify one or more of the <see cref="AbsoluteLayoutFlags" /> enumeration value names for the value of this property on the children of a <see cref="AbsoluteLayout" />. 81 public static void SetLayoutFlags(BindableObject bindable, AbsoluteLayoutFlags flags) 103 public AbsoluteLayoutFlags GetLayoutFlags(IView view) 107 BindableObject bo => (AbsoluteLayoutFlags)bo.GetValue(LayoutFlagsProperty), 131 public void SetLayoutFlags(IView view, AbsoluteLayoutFlags flags) 213 public AbsoluteLayoutFlags LayoutFlags { get; set; }
LegacyLayouts\AbsoluteLayout.cs (24)
18 public static readonly BindableProperty LayoutFlagsProperty = BindableProperty.CreateAttached("LayoutFlags", typeof(AbsoluteLayoutFlags), typeof(AbsoluteLayout), AbsoluteLayoutFlags.None); 53 public static AbsoluteLayoutFlags GetLayoutFlags(BindableObject bindable) 55 return (AbsoluteLayoutFlags)bindable.GetValue(LayoutFlagsProperty); 63 public static void SetLayoutFlags(BindableObject bindable, AbsoluteLayoutFlags flags) 114 AbsoluteLayoutFlags layoutFlags = GetLayoutFlags(view); 116 if ((layoutFlags & AbsoluteLayoutFlags.SizeProportional) == AbsoluteLayoutFlags.SizeProportional) 127 if ((layoutFlags & AbsoluteLayoutFlags.HeightProportional) != 0) 134 else if ((layoutFlags & AbsoluteLayoutFlags.WidthProportional) != 0) 169 AbsoluteLayoutFlags absFlags = GetLayoutFlags(view); 170 bool widthIsProportional = (absFlags & AbsoluteLayoutFlags.WidthProportional) != 0; 171 bool heightIsProportional = (absFlags & AbsoluteLayoutFlags.HeightProportional) != 0; 172 bool xIsProportional = (absFlags & AbsoluteLayoutFlags.XProportional) != 0; 173 bool yIsProportional = (absFlags & AbsoluteLayoutFlags.YProportional) != 0; 236 AbsoluteLayoutFlags absFlags = GetLayoutFlags(view); 237 bool widthIsProportional = (absFlags & AbsoluteLayoutFlags.WidthProportional) != 0; 238 bool heightIsProportional = (absFlags & AbsoluteLayoutFlags.HeightProportional) != 0; 239 bool xIsProportional = (absFlags & AbsoluteLayoutFlags.XProportional) != 0; 240 bool yIsProportional = (absFlags & AbsoluteLayoutFlags.YProportional) != 0; 306 void Add(View view, Rect bounds, AbsoluteLayoutFlags flags = AbsoluteLayoutFlags.None); 320 public void Add(View view, Rect bounds, AbsoluteLayoutFlags flags = AbsoluteLayoutFlags.None)