Xamarin表格获得字体尺寸设置
我可以在我的Xamarin项目中获得此字体尺寸设置吗?我喜欢为Android设置此RowHeight值。
xaml
<Grid.RowDefinitions>
<RowDefinition Height="{Binding RowHeight}"></RowDefinition>
</Grid.RowDefinitions>
Can I get this font size setting in my main Xamarin project. I like to set this RowHeight value for just the Android's.
xaml
<Grid.RowDefinitions>
<RowDefinition Height="{Binding RowHeight}"></RowDefinition>
</Grid.RowDefinitions>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因此,您可以使用该
方法来考虑平台变化,该方法需要命名尺寸来指定字体大小,然后使用可以标记的类型或其他可以处理的视图。因此,如果您想以中等大小的标签为基础,请运行:
https://learn.microsoft.com/en-us/dotnet/api/xamarin.forms.nemedsize?view=xamarin-forms
So you can, you need to account for the platform variations by using the
method, which takes a NamedSize enum to designate the font size, and then the type which could be label, or other view that could be handled. So if you want to base this off of a label with medium size, run:
https://learn.microsoft.com/en-us/dotnet/api/Xamarin.Forms.NamedSize?view=xamarin-forms