Share via


CompressedLayout.SetIsHeadless(BindableObject, Boolean) Method

Definition

Caution

CompressedLayout does not provide meaningful functionality and may be removed in a future release. Please remove usage of this API.

Turns layout compression on or off for the specified bindable object.

public:
 static void SetIsHeadless(Microsoft::Maui::Controls::BindableObject ^ bindable, bool value);
[System.Obsolete("CompressedLayout does not provide meaningful functionality and may be removed in a future release. Please remove usage of this API.")]
public static void SetIsHeadless(Microsoft.Maui.Controls.BindableObject bindable, bool value);
public static void SetIsHeadless(Microsoft.Maui.Controls.BindableObject bindable, bool value);
[<System.Obsolete("CompressedLayout does not provide meaningful functionality and may be removed in a future release. Please remove usage of this API.")>]
static member SetIsHeadless : Microsoft.Maui.Controls.BindableObject * bool -> unit
static member SetIsHeadless : Microsoft.Maui.Controls.BindableObject * bool -> unit
Public Shared Sub SetIsHeadless (bindable As BindableObject, value As Boolean)

Parameters

bindable
BindableObject

The BindableObject on which to enable or disable layout compression

value
Boolean

The new layout compression value. true to enable layout compression

Attributes

Remarks

It is an invalid operation to change this value after the view is rendered on the platform.

Applies to