VisualElement.GetIsLegacyColorModeEnabled Method

Definition

Overloads

GetIsLegacyColorModeEnabled(IPlatformElementConfiguration<Windows,VisualElement>)

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

GetIsLegacyColorModeEnabled(BindableObject)

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

GetIsLegacyColorModeEnabled(IPlatformElementConfiguration<Windows,VisualElement>)

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

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

Parameters

config
IPlatformElementConfiguration<Windows,VisualElement>

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

Returns

true if legacy color mode is enabled. Otherwise, false.

Applies to

GetIsLegacyColorModeEnabled(BindableObject)

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

public static bool GetIsLegacyColorModeEnabled (Xamarin.Forms.BindableObject element);
static member GetIsLegacyColorModeEnabled : Xamarin.Forms.BindableObject -> bool

Parameters

element
BindableObject

The visual element whose legacy color mode to return.

Returns

true if legacy color mode is enabled. Otherwise, false.

Applies to