VisualElement.GetIsLegacyColorModeEnabled 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
參數
要傳回其舊版色彩模式的視覺項目平台組態。
傳回
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
。