VisualElement.SetIsLegacyColorModeEnabled 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
SetIsLegacyColorModeEnabled(BindableObject, Boolean) |
Turns the legacy color mode on and off. |
SetIsLegacyColorModeEnabled(IPlatformElementConfiguration<Windows,VisualElement>, Boolean) |
Turns the legacy color mode on and off. |
SetIsLegacyColorModeEnabled(BindableObject, Boolean)
- Source:
- VisualElement.cs
- Source:
- VisualElement.cs
Turns the legacy color mode on and off.
public:
static void SetIsLegacyColorModeEnabled(Microsoft::Maui::Controls::BindableObject ^ element, bool value);
public static void SetIsLegacyColorModeEnabled (Microsoft.Maui.Controls.BindableObject element, bool value);
static member SetIsLegacyColorModeEnabled : Microsoft.Maui.Controls.BindableObject * bool -> unit
Public Sub SetIsLegacyColorModeEnabled (element As BindableObject, value As Boolean)
Parameters
- element
- BindableObject
The visual element whose legacy color mode to return.
- value
- Boolean
true
to enable legacy color mode. Otherwise, false
.
Applies to
SetIsLegacyColorModeEnabled(IPlatformElementConfiguration<Windows,VisualElement>, Boolean)
- Source:
- VisualElement.cs
- Source:
- VisualElement.cs
Turns the legacy color mode on and off.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::Windows ^, Microsoft::Maui::Controls::VisualElement ^> ^ SetIsLegacyColorModeEnabled(Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::Windows ^, Microsoft::Maui::Controls::VisualElement ^> ^ config, bool value);
public static Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Windows,Microsoft.Maui.Controls.VisualElement> SetIsLegacyColorModeEnabled (this Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Windows,Microsoft.Maui.Controls.VisualElement> config, bool value);
static member SetIsLegacyColorModeEnabled : Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Windows, Microsoft.Maui.Controls.VisualElement> * bool -> Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Windows, Microsoft.Maui.Controls.VisualElement>
<Extension()>
Public Function SetIsLegacyColorModeEnabled (config As IPlatformElementConfiguration(Of Windows, VisualElement), value As Boolean) As IPlatformElementConfiguration(Of Windows, VisualElement)
Parameters
The platform configuration for the visual element whose legacy color mode to return.
- value
- Boolean
true
to enable legacy color mode. Otherwise, false
.
Returns
A fluent object on which the developer may make further method calls.
Applies to
.NET MAUI
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기