VisualElement.GetIsLegacyColorModeEnabled 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetIsLegacyColorModeEnabled(BindableObject) |
返回是否启用旧颜色模式。 |
GetIsLegacyColorModeEnabled(IPlatformElementConfiguration<iOS,VisualElement>) |
返回是否启用旧颜色模式。 |
GetIsLegacyColorModeEnabled(BindableObject)
- Source:
- VisualElement.cs
- Source:
- VisualElement.cs
返回是否启用旧颜色模式。
public:
static bool GetIsLegacyColorModeEnabled(Microsoft::Maui::Controls::BindableObject ^ element);
public static bool GetIsLegacyColorModeEnabled(Microsoft.Maui.Controls.BindableObject element);
static member GetIsLegacyColorModeEnabled : Microsoft.Maui.Controls.BindableObject -> bool
Public Function GetIsLegacyColorModeEnabled (element As BindableObject) As Boolean
参数
- element
- BindableObject
要对其执行操作的特定于平台的元素。
返回
若启用了旧版颜色模式,则为 true
。 否则为 false
。
适用于
GetIsLegacyColorModeEnabled(IPlatformElementConfiguration<iOS,VisualElement>)
- Source:
- VisualElement.cs
- Source:
- VisualElement.cs
返回是否启用旧颜色模式。
public:
[System::Runtime::CompilerServices::Extension]
static bool GetIsLegacyColorModeEnabled(Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::iOS ^, Microsoft::Maui::Controls::VisualElement ^> ^ config);
public static bool GetIsLegacyColorModeEnabled(this Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.iOS,Microsoft.Maui.Controls.VisualElement> config);
static member GetIsLegacyColorModeEnabled : Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.iOS, Microsoft.Maui.Controls.VisualElement> -> bool
<Extension()>
Public Function GetIsLegacyColorModeEnabled (config As IPlatformElementConfiguration(Of iOS, VisualElement)) As Boolean
参数
特定于平台的配置,包含要对其执行操作的元素。
返回
若启用了旧版颜色模式,则为 true
。 否则为 false
。