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