Udostępnij za pośrednictwem


VisualElement.SetIsLegacyColorModeEnabled Metoda

Definicja

Przeciążenia

SetIsLegacyColorModeEnabled(BindableObject, Boolean)

Określa, czy jest włączony starszy tryb kolorów dla tego elementu.

SetIsLegacyColorModeEnabled(IPlatformElementConfiguration<Android,VisualElement>, Boolean)

Określa, czy jest włączony starszy tryb kolorów dla tego elementu.

SetIsLegacyColorModeEnabled(BindableObject, Boolean)

Źródło:
VisualElement.cs
Źródło:
VisualElement.cs

Określa, czy jest włączony starszy tryb kolorów dla tego elementu.

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)

Parametry

element
BindableObject

Konfiguracja platformy dla elementu wizualizacji na platformie Android, którego stan starszego trybu kolorów ma być ustawiony.

value
Boolean

true aby włączyć starszy tryb kolorów. W przeciwnym razie wartość false.

Dotyczy

SetIsLegacyColorModeEnabled(IPlatformElementConfiguration<Android,VisualElement>, Boolean)

Źródło:
VisualElement.cs
Źródło:
VisualElement.cs

Określa, czy jest włączony starszy tryb kolorów dla tego elementu.

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)

Parametry

config
IPlatformElementConfiguration<Android,VisualElement>

Konfiguracja platformy dla elementu wizualizacji na platformie Android, którego stan starszego trybu kolorów ma być ustawiony.

value
Boolean

true aby włączyć starszy tryb kolorów. W przeciwnym razie wartość false.

Zwraca

Płynny obiekt, na którym deweloper może wykonywać dalsze wywołania metody.

Dotyczy