Share via


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>)

Source:
VisualElement.cs
Source:
VisualElement.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static bool GetIsLegacyColorModeEnabled(Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::Windows ^, Microsoft::Maui::Controls::VisualElement ^> ^ config);
public static bool GetIsLegacyColorModeEnabled (this Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Windows,Microsoft.Maui.Controls.VisualElement> config);
static member GetIsLegacyColorModeEnabled : Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Windows, Microsoft.Maui.Controls.VisualElement> -> bool
<Extension()>
Public Function GetIsLegacyColorModeEnabled (config As IPlatformElementConfiguration(Of Windows, VisualElement)) As Boolean

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)

Source:
VisualElement.cs
Source:
VisualElement.cs

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

public:
 static bool GetIsLegacyColorModeEnabled(Microsoft::Maui::Controls::BindableObject ^ element);
public static bool GetIsLegacyColorModeEnabled (Microsoft.Maui.Controls.BindableObject element);
static member GetIsLegacyColorModeEnabled : Microsoft.Maui.Controls.BindableObject -> bool
Public Function GetIsLegacyColorModeEnabled (element As BindableObject) As Boolean

Parameters

element
BindableObject

The visual element whose legacy color mode to return.

Returns

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

Applies to