3 instantiations of FlexBasis
Microsoft.Maui (3)
Converters\FlexEnumsConverters.cs (2)
250
return new
FlexBasis
(relflex / 100, isRelative: true);
252
return new
FlexBasis
(flex);
Layouts\FlexEnums.cs (1)
96
=> new
FlexBasis
(length);
33 references to FlexBasis
Microsoft.Maui (14)
Converters\FlexEnumsConverters.cs (4)
238
return (
FlexBasis
)floatValue;
248
return
FlexBasis
.Auto;
255
throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(
FlexBasis
)));
260
if (value is not
FlexBasis
basis)
Core\IFlexLayout.cs (1)
76
FlexBasis
GetBasis(IView view);
Layouts\FlexEnums.cs (9)
74
public struct FlexBasis : IEquatable<
FlexBasis
>
82
public static readonly
FlexBasis
Auto;
95
public static implicit operator
FlexBasis
(float length)
98
public bool Equals(
FlexBasis
other) => _isLength == other._isLength && _isRelative == other._isRelative && Length == other.Length;
100
public override bool Equals(object? obj) => obj is
FlexBasis
other && Equals(other);
104
public static bool operator ==(
FlexBasis
left,
FlexBasis
right) => left.Equals(right);
106
public static bool operator !=(
FlexBasis
left,
FlexBasis
right) => !(left == right);
Microsoft.Maui.Controls (18)
Layout\FlexExtensions.cs (1)
32
public static Flex.Basis ToFlexBasis(this
FlexBasis
basis)
Layout\FlexLayout.cs (10)
70
BindableProperty.CreateAttached("Basis", typeof(
FlexBasis
), typeof(FlexLayout),
FlexBasis
.Auto,
148
public static
FlexBasis
GetBasis(BindableObject bindable)
149
=> (
FlexBasis
)bindable.GetValue(BasisProperty);
152
public static void SetBasis(BindableObject bindable,
FlexBasis
value)
198
GetFlexItem(bindable).Basis = ((
FlexBasis
)newValue).ToFlexBasis();
264
public
FlexBasis
Basis { get; set; }
356
public
FlexBasis
GetBasis(IView view)
360
BindableObject bo => (
FlexBasis
)bo.GetValue(BasisProperty),
365
public void SetBasis(IView view,
FlexBasis
basis)
LegacyLayouts\FlexLayout.cs (7)
71
BindableProperty.CreateAttached("Basis", typeof(
FlexBasis
), typeof(FlexLayout),
FlexBasis
.Auto,
144
public static
FlexBasis
GetBasis(BindableObject bindable)
145
=> (
FlexBasis
)bindable.GetValue(BasisProperty);
147
public static void SetBasis(BindableObject bindable,
FlexBasis
value)
186
GetFlexItem(bindable).Basis = ((
FlexBasis
)newValue).ToFlexBasis();
329
item.Basis = ((
FlexBasis
)view.GetValue(BasisProperty)).ToFlexBasis();
Microsoft.Maui.Controls.Build.Tasks (1)
CompiledConverters\FlexBasisTypeConverter.cs (1)
47
throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(
FlexBasis
));