Hello,
The xxxAndExpand attribute has been deprecated in MAUI, see this documentation LayoutOptions.StartAndExpand Field.
Caution The StackLayout expansion options are deprecated; please use a Grid instead.
Therefore, you need to use Grid to expand your entry, such as the following sample code:
<Grid Background="red">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Label Grid.Column="0" Text="Item1:" VerticalOptions="Center" TextColor="White" Margin="0,0,5,0" />
<Entry Grid.Column="1"
BackgroundColor="White"
TextColor="Black"
x:Name="tbPlace"
VerticalOptions="Center"
Grid.ColumnSpan="2" IsTextPredictionEnabled="True" IsEnabled="True" Keyboard="Text" MaxLength="32" />
</Grid>
Best Regards,
Alec Liu.
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][1] to enable e-mail notifications if you want to receive the related email notification for this thread.