ios - Xamarin表格显示温度值

标签 ios xamarin.forms

我想在xamarin表格中显示36.53°C的值。

如何使用网格和标签显示它?
36.65将具有较大的字体大小,并且单位°C将具有较小的字体大小。
再次°C将显示在数字的底角。

我该如何实现?

最佳答案

您可以在FormattedText中使用 Label :

<Label>
    <Label.FormattedText>
        <FormattedString>
            <Span Text="36.65" FontSize="Large" />
            <Span Text="&#186;C" FontSize="Small" />
        </FormattedString>
    </Label.FormattedText>
</Label>

ios-screenshotandroid-screenshot

关于ios - Xamarin表格显示温度值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46172032/

相关文章:

ios - iOS中Swift如何使用CGColorCreate变白

android - Facebook、Dropbox 或 Twitter 等开发者网站如何生成 App ID?

c# - 当 OnClick_Event 发生时立即更新 UI

xamarin - 如何通过传入类型参数来自定义 Xamarin 模板?

ios - Xamarin 表格 : Camera picture is left rotated when comes to UI in IOS

ios - 在 cellForRowAtIndexPath 为不同的行高设置行高

javascript - Enyo ajax 请求在移动版 Safari 7 中失败,在其他地方有效

php - 使用php从iOS应用程序将图像上传到Web服务器显示错误?

xamarin - 如何在Xamarin.Android上播放默认按钮的声音?

Xamarin 形式 : Content View doesn't display in content page