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