Share via


VisualElement.SetIsLegacyColorModeEnabled Method

Definition

Overloads

SetIsLegacyColorModeEnabled(BindableObject, Boolean)

Sets a Boolean value that controls whether the legacy color mode is enabled.

SetIsLegacyColorModeEnabled(IPlatformElementConfiguration<Android,VisualElement>, Boolean)

Sets a Boolean value that controls whether the legacy color mode is enabled.

SetIsLegacyColorModeEnabled(BindableObject, Boolean)

Sets a Boolean value that controls whether the legacy color mode is enabled.

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

Parameters

element
BindableObject
value
System.Boolean

true to enable legacy color mode. Otherwise, false.

Applies to

SetIsLegacyColorModeEnabled(IPlatformElementConfiguration<Android,VisualElement>, Boolean)

Sets a Boolean value that controls whether the legacy color mode is enabled.

public static Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.Android,Xamarin.Forms.VisualElement> SetIsLegacyColorModeEnabled (this Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.Android,Xamarin.Forms.VisualElement> config, bool value);
static member SetIsLegacyColorModeEnabled : Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.Android, Xamarin.Forms.VisualElement> * bool -> Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.Android, Xamarin.Forms.VisualElement>

Parameters

config
IPlatformElementConfiguration<Android,VisualElement>

The platform configuration for the visual element on the Android platform whose legacy color mode status to set.

value
System.Boolean

true to enable legacy color mode. Otherwise, false.

Returns

A fluent object on which the developer may make further method calls.

Applies to