我正在努力解决这个问题。在我的内容页面中,我有一个包含标签和按钮的标题视图。如果我在 android 中执行一切正常,但在 ios 中,按钮从屏幕右侧消失。
编码:
<Shell.TitleView>
<Grid
Margin="0,0,0,0"
RowDefinitions="auto"
ColumnDefinitions="auto,*">
<Label
Grid.Column="0"
Text="{Binding Title}"
TextColor="{StaticResource TextGray}"
FontSize="Title"
VerticalTextAlignment="Center"
VerticalOptions="Center">
</Label>
<Grid
Grid.Column="1"
BackgroundColor="Green">
<ImageButton
Clicked="ShowSearchPage"
BackgroundColor="red"
HorizontalOptions="End"
Source="search"
></ImageButton>
</Grid>
</Grid>
</Shell.TitleView>