VisualElement.GetIsLegacyColorModeEnabled Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetIsLegacyColorModeEnabled(IPlatformElementConfiguration<Windows,VisualElement>) |
Returns a Boolean value that controls whether legacy color mode is enabled. |
GetIsLegacyColorModeEnabled(BindableObject) |
Returns a Boolean value that controls whether legacy color mode is enabled. |
GetIsLegacyColorModeEnabled(IPlatformElementConfiguration<Windows,VisualElement>)
Returns a Boolean value that controls whether legacy color mode is enabled.
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
Parameters
The platform configuration for the visual element whose legacy color mode to return.
Returns
true
if legacy color mode is enabled. Otherwise, false
.
Applies to
GetIsLegacyColorModeEnabled(BindableObject)
Returns a Boolean value that controls whether legacy color mode is enabled.
public static bool GetIsLegacyColorModeEnabled (Xamarin.Forms.BindableObject element);
static member GetIsLegacyColorModeEnabled : Xamarin.Forms.BindableObject -> bool
Parameters
- element
- BindableObject
The visual element whose legacy color mode to return.
Returns
true
if legacy color mode is enabled. Otherwise, false
.