Hello,
You can use Grid
layout to achieve it.
If you want to add Border effect. You can use Frame
, HorizontalStackLayout
and BoxView
to achieve it.
https://learn.microsoft.com/en-us/dotnet/maui/user-interface/controls/frame
For example, I add Gray border Frame, then add HorizontalStackLayout
in it, if you want to result like delimiter, please add BoxView set width and VerticalOptions, you can refer to following code.
<Frame
BorderColor="Gray"
CornerRadius="5"
Padding="8">
<HorizontalStackLayout>
<Label Text="Test1"
FontSize="14"
FontAttributes="Bold" />
<BoxView Color="Gray"
WidthRequest="2"
VerticalOptions="Fill"
Margin="5,0,5,0"/>
<Label Text="Test2"/>
</HorizontalStackLayout>
</Frame>
You can make a feature request about this need in MAUI Github page: https://github.com/dotnet/maui/issues/new/choose
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.