Page.SetUseSafeArea 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
SetUseSafeArea(BindableObject, Boolean) |
设置一个值,该值控制填充值是否被替代为安全区域插页。 |
SetUseSafeArea(IPlatformElementConfiguration<iOS,Page>, Boolean) |
设置一个值,该值控制填充值是否被替代为安全区域插页。 |
SetUseSafeArea(BindableObject, Boolean)
设置一个值,该值控制填充值是否被替代为安全区域插页。
public static void SetUseSafeArea (Xamarin.Forms.BindableObject element, bool value);
static member SetUseSafeArea : Xamarin.Forms.BindableObject * bool -> unit
参数
- element
- BindableObject
要设置其安全区域使用行为的元素。
- value
- System.Boolean
新的安全区域插页行为。
适用于
SetUseSafeArea(IPlatformElementConfiguration<iOS,Page>, Boolean)
设置一个值,该值控制填充值是否被替代为安全区域插页。
public static Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.iOS,Xamarin.Forms.Page> SetUseSafeArea (this Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.iOS,Xamarin.Forms.Page> config, bool value);
static member SetUseSafeArea : Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.iOS, Xamarin.Forms.Page> * bool -> Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.iOS, Xamarin.Forms.Page>
参数
- config
- IPlatformElementConfiguration<iOS,Page>
要设置其安全区域使用行为的元素。
- value
- System.Boolean
新的安全区域插页行为。
返回
更新的配置对象,开发者可对其进行连续的方法调用。