다음을 통해 공유


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)

Source:
VisualElement.cs
Source:
VisualElement.cs

Turns the legacy color mode on and off.

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

Source:
VisualElement.cs
Source:
VisualElement.cs

Turns the legacy color mode on and off.

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