共用方式為


VisualElement.GetIsLegacyColorModeEnabled 方法

定義

多載

GetIsLegacyColorModeEnabled(IPlatformElementConfiguration<Windows,VisualElement>)

傳回布林值,控制是否已啟用舊版色彩模式。

GetIsLegacyColorModeEnabled(BindableObject)

傳回布林值,控制是否已啟用舊版色彩模式。

GetIsLegacyColorModeEnabled(IPlatformElementConfiguration<Windows,VisualElement>)

傳回布林值,控制是否已啟用舊版色彩模式。

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

參數

config
IPlatformElementConfiguration<Windows,VisualElement>

要傳回其舊版色彩模式的視覺項目平台組態。

傳回

System.Boolean

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

適用於

GetIsLegacyColorModeEnabled(BindableObject)

傳回布林值,控制是否已啟用舊版色彩模式。

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

參數

element
BindableObject

要傳回其舊版色彩模式的視覺項目。

傳回

System.Boolean

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

適用於