首页 > 解决方案 > 从 iOS 获取 Shell TabBar 高度

问题描述

我需要能够在我的 App.cs 中使用 iOS 上的 TabBar 高度设置静态属性。我想我可能需要一个自定义渲染器来实现这一点,

如果它只是一个 TabbedPage,这将是微不足道的 - 但是使用 Shell,我看不到访问和存储所需内容的方法。

有没有人做过类似的事情并愿意为我指明正确的方向?

标签: xamarinxamarin.formsxamarin.ios

解决方案


请忽略 - 重新阅读文档并找到答案!可以覆盖 CreateShellItemRenderer!

https://docs.microsoft.com/en-gb/xamarin/xamarin-forms/app-fundamentals/shell/customrenderers


推荐阅读