VisualElement.SetIsLegacyColorModeEnabled Method

Definition

Overloads

SetIsLegacyColorModeEnabled(BindableObject, Boolean)

Turns the legacy color mode on and off.

SetIsLegacyColorModeEnabled(IPlatformElementConfiguration<Windows,VisualElement>, Boolean)

Turns the legacy color mode on and off.

SetIsLegacyColorModeEnabled(BindableObject, Boolean)

Turns the legacy color mode on and off.

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

Parameters

element
BindableObject

The visual element whose legacy color mode to return.

value
Boolean

true to enable legacy color mode. Otherwise, false.

Applies to

SetIsLegacyColorModeEnabled(IPlatformElementConfiguration<Windows,VisualElement>, Boolean)

Turns the legacy color mode on and off.

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

Parameters

config
IPlatformElementConfiguration<Windows,VisualElement>

The platform configuration for the visual element whose legacy color mode to return.

value
Boolean

true to enable legacy color mode. Otherwise, false.

Returns

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

Applies to