【问题标题】:How to keep top part of the screen from moving using Xamarin forms如何使用 Xamarin 表单保持屏幕顶部不移动
【发布时间】:2021-07-17 08:18:54
【问题描述】:

我想保留要固定时间的顶部,并且背景颜色为灰色。我无法弄清楚屏幕的那部分被称为什么,有关此的任何信息都将非常有用。我目前正在首先处理 IOS 部分,但 android 提示也会有所帮助。

【问题讨论】:

标签: c# xaml xamarin.forms xamarin.android xamarin.ios


【解决方案1】:

这对我有用。

this.Padding = new Thickness(0, Device.OnPlatform(30, 0, 0), 0, 0);

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-10-01
    • 2018-04-10
    • 2015-05-26
    • 2010-11-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多