VisualElement.SetIsLegacyColorModeEnabled Method

Definition

Overloads

SetIsLegacyColorModeEnabled(BindableObject, Boolean)

Sets whether or not the legacy color mode for this element is enabled.

SetIsLegacyColorModeEnabled(IPlatformElementConfiguration<Android,VisualElement>, Boolean)

Sets whether or not the legacy color mode for this element is enabled.

SetIsLegacyColorModeEnabled(BindableObject, Boolean)

Source:
VisualElement.cs
Source:
VisualElement.cs

Sets whether or not the legacy color mode for this element is enabled.

public:
 static void SetIsLegacyColorModeEnabled(Microsoft::Maui::Controls::BindableObject ^ element, bool value);
public static void SetIsLegacyColorModeEnabled (Microsoft.Maui.Controls.BindableObject element, bool value);
static member SetIsLegacyColorModeEnabled : Microsoft.Maui.Controls.BindableObject * bool -> unit
Public Sub SetIsLegacyColorModeEnabled (element As BindableObject, value As Boolean)

Parameters

element
BindableObject

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

value
Boolean

true to enable legacy color mode. Otherwise, false.

Applies to

SetIsLegacyColorModeEnabled(IPlatformElementConfiguration<Android,VisualElement>, Boolean)

Source:
VisualElement.cs
Source:
VisualElement.cs

Sets whether or not the legacy color mode for this element is enabled.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::Android ^, Microsoft::Maui::Controls::VisualElement ^> ^ SetIsLegacyColorModeEnabled(Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::Android ^, Microsoft::Maui::Controls::VisualElement ^> ^ config, bool value);
public static Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Android,Microsoft.Maui.Controls.VisualElement> SetIsLegacyColorModeEnabled (this Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Android,Microsoft.Maui.Controls.VisualElement> config, bool value);
static member SetIsLegacyColorModeEnabled : Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Android, Microsoft.Maui.Controls.VisualElement> * bool -> Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Android, Microsoft.Maui.Controls.VisualElement>
<Extension()>
Public Function SetIsLegacyColorModeEnabled (config As IPlatformElementConfiguration(Of Android, VisualElement), value As Boolean) As IPlatformElementConfiguration(Of Android, 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
Boolean

true to enable legacy color mode. Otherwise, false.

Returns

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

Applies to