xamarin - 从 iOS 获取 Shell TabBar 高度
问题描述
我需要能够在我的 App.cs 中使用 iOS 上的 TabBar 高度设置静态属性。我想我可能需要一个自定义渲染器来实现这一点,
如果它只是一个 TabbedPage,这将是微不足道的 - 但是使用 Shell,我看不到访问和存储所需内容的方法。
有没有人做过类似的事情并愿意为我指明正确的方向?
解决方案
请忽略 - 重新阅读文档并找到答案!可以覆盖 CreateShellItemRenderer!
https://docs.microsoft.com/en-gb/xamarin/xamarin-forms/app-fundamentals/shell/customrenderers
推荐阅读
- flutter - 卡borderOnForeground 未按预期工作
- android - 从动态创建的 Edittext 中获取数据
- sas - 列出频率为零的变量 - Proc Freq 或 Proc Tabulate
- flutter - BLoC 和多个流 - 有更好的解决方案吗?
- css - 自定义引导主题的正确方法(使用 SCSS 源文件)
- apache-spark - Pyspark 作业在从 GCS 读取时陷入睡眠并重试循环
- python - 使用 flask-sqlalchemy 创建应用程序模式
- c# - 无法使用 Fare 从复杂的正则表达式生成字符串
- node.js - 如何手动实现背压
- r - R 中的 Kruskal-wallis 测试给出错误:model.frame.default 中的错误:可变长度不同