VisualElement.SetIsLegacyColorModeEnabled 方法

定义

重载

SetIsLegacyColorModeEnabled(BindableObject, Boolean)

设置是否启用旧颜色模式。

SetIsLegacyColorModeEnabled(IPlatformElementConfiguration<iOS,VisualElement>, Boolean)

设置是否启用旧颜色模式。

SetIsLegacyColorModeEnabled(BindableObject, Boolean)

Source:
VisualElement.cs
Source:
VisualElement.cs

设置是否启用旧颜色模式。

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)

参数

element
BindableObject

要对其执行操作的特定于平台的元素。

value
Boolean

若为 true,则启用旧版颜色模式。 否则为 false

适用于

SetIsLegacyColorModeEnabled(IPlatformElementConfiguration<iOS,VisualElement>, Boolean)

Source:
VisualElement.cs
Source:
VisualElement.cs

设置是否启用旧颜色模式。

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)

参数

config
IPlatformElementConfiguration<iOS,VisualElement>

特定于平台的配置,包含要对其执行操作的元素。

value
Boolean

若为 true,则启用旧版颜色模式。 否则为 false

返回

开发者可对其进行进一步方法调用的 fluent 对象。

适用于