共用方式為


VisualElement.SetIsLegacyColorModeEnabled 方法

定義

多載

SetIsLegacyColorModeEnabled(BindableObject, Boolean)

設定舊版色彩模式。

SetIsLegacyColorModeEnabled(IPlatformElementConfiguration<iOS,VisualElement>, Boolean)

設定舊版色彩模式。

SetIsLegacyColorModeEnabled(BindableObject, Boolean)

設定舊版色彩模式。

public static void SetIsLegacyColorModeEnabled (Xamarin.Forms.BindableObject element, bool value);
static member SetIsLegacyColorModeEnabled : Xamarin.Forms.BindableObject * bool -> unit

參數

element
BindableObject

要對其執行作業的平台特定項目。

value
System.Boolean

true 表示啟用舊版色彩模式。 否則為 false

適用於

SetIsLegacyColorModeEnabled(IPlatformElementConfiguration<iOS,VisualElement>, Boolean)

設定舊版色彩模式。

public static Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.iOS,Xamarin.Forms.VisualElement> SetIsLegacyColorModeEnabled (this Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.iOS,Xamarin.Forms.VisualElement> config, bool value);
static member SetIsLegacyColorModeEnabled : Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.iOS, Xamarin.Forms.VisualElement> * bool -> Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.iOS, Xamarin.Forms.VisualElement>

參數

config
IPlatformElementConfiguration<iOS,VisualElement>

平台特定組態,包含要對其執行作業的項目。

value
System.Boolean

true 表示啟用舊版色彩模式。 否則為 false

傳回

Fluent 物件,開發人員可能會對該物件進行更多的方法呼叫。

適用於