adospace / reactorui-maui

MauiReactor is a MVU UI framework built on top of .NET MAUI
MIT License
586 stars 49 forks source link

RelativeLayout with HeightConstraint, WidthConstraint and YConstraint #90

Closed MattePozzy closed 1 year ago

MattePozzy commented 1 year ago

Hi, I need to migrate this code from Xamarin to MAUI using ReactorUI

 <Label
    FontSize="Small"
    Text="{Binding TextPoweredBy}"
    TextColor="{StaticResource Arancione}"
    RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"
    RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
    RelativeLayout.YConstraint="{Binding YConstraintPoweredBy}"
    HorizontalOptions="Center" VerticalOptions="Start" />

but I'm not able to "translate" RelativeLayout.HeightConstraint, RelativeLayout.WidthConstraint and RelativeLayout.YConstraint in C# with ReactorUI.

Its possible to do this thing?

Thank you!

adospace commented 1 year ago

RelativeLayout is not supported in .net maui, use grid instead https://learn.microsoft.com/en-us/dotnet/maui/migration/layouts