共用方式為


VisualElement.GetIsLegacyColorModeEnabled 方法

定義

多載

GetIsLegacyColorModeEnabled(BindableObject)

傳回舊版色彩模式。

GetIsLegacyColorModeEnabled(IPlatformElementConfiguration<iOS,VisualElement>)

傳回舊版色彩模式。

GetIsLegacyColorModeEnabled(BindableObject)

傳回舊版色彩模式。

public static bool GetIsLegacyColorModeEnabled (Xamarin.Forms.BindableObject element);
static member GetIsLegacyColorModeEnabled : Xamarin.Forms.BindableObject -> bool

參數

element
BindableObject

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

傳回

System.Boolean

如果已啟用舊版色彩模式,則為 true。 否則為 false

適用於

GetIsLegacyColorModeEnabled(IPlatformElementConfiguration<iOS,VisualElement>)

傳回舊版色彩模式。

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

參數

config
IPlatformElementConfiguration<iOS,VisualElement>

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

傳回

System.Boolean

如果已啟用舊版色彩模式,則為 true。 否則為 false

適用於