在我的 AppShell.xaml 中,我有许多 UI 主题设置。 例如,
<Setter Property="Shell.BackgroundColor" Value="Blue" />
<Setter Property="Shell.TitleColor" Value="White" />
但是,我找不到 iOS 中 <-(后退)按钮旁边显示的文本的 Shell 设置。 我尝试使用 NavigationPage 对象进行设置,但没有效果。
如何设置?谢谢。
编辑:请参阅下面我自己的答案/解决方案。
最佳答案
我找到了解决方案。
控制“后退”按钮颜色的是 ForegroundColor setter 。
例如:
<Setter Property="Shell.ForegroundColor" Value="White" />
关于xamarin - 使用 Shell 时如何在 Xamarin.Forms 中设置导航文本颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72033856/