VisualElement.SetIsLegacyColorModeEnabled Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetIsLegacyColorModeEnabled(BindableObject, Boolean) |
Sets the legacy color mode. |
SetIsLegacyColorModeEnabled(IPlatformElementConfiguration<iOS,VisualElement>, Boolean) |
Sets the legacy color mode. |
SetIsLegacyColorModeEnabled(BindableObject, Boolean)
Sets the legacy color mode.
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 specific element on which to perform the operation.
- value
- Boolean
true
to enable legacy color mode. Otherwise, false
.
Applies to
SetIsLegacyColorModeEnabled(IPlatformElementConfiguration<iOS,VisualElement>, Boolean)
Sets the legacy color mode.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::iOS ^, Microsoft::Maui::Controls::VisualElement ^> ^ SetIsLegacyColorModeEnabled(Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::iOS ^, Microsoft::Maui::Controls::VisualElement ^> ^ config, bool value);
public static Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.iOS,Microsoft.Maui.Controls.VisualElement> SetIsLegacyColorModeEnabled (this Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.iOS,Microsoft.Maui.Controls.VisualElement> config, bool value);
static member SetIsLegacyColorModeEnabled : Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.iOS, Microsoft.Maui.Controls.VisualElement> * bool -> Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.iOS, Microsoft.Maui.Controls.VisualElement>
<Extension()>
Public Function SetIsLegacyColorModeEnabled (config As IPlatformElementConfiguration(Of iOS, VisualElement), value As Boolean) As IPlatformElementConfiguration(Of iOS, VisualElement)
Parameters
The platform specific configuration that contains the element on which to perform the operation.
- value
- Boolean
true
to enable legacy color mode. Otherwise, false
.
Returns
A fluent object on which the developer may make more method calls.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for