CompressedLayout.SetIsHeadless(BindableObject, Boolean) 方法

定义

bindable 打开或关闭布局压缩。

public static void SetIsHeadless(Xamarin.Forms.BindableObject bindable, bool value);
static member SetIsHeadless : Xamarin.Forms.BindableObject * bool -> unit

参数

bindable
BindableObject

在其上启用或禁用布局压缩的 BindableObject

value
System.Boolean

新的布局压缩值。 true,则启用布局压缩

注解

在平台上呈现视图后,更改此值的操作无效。

适用于