WinUI Provide MAUI full control over the look and feel #1863
Unanswered
Daniellled
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
MAUI handlers only have access to properties that the native control exposes. For example in WinUI the Button has a Background property. The MAUI ButtonHandler.Windows.cs is able to update the native control's Background color.
For other WinUI Button related settings, such as 'ButtonBackgroundPointerOver' a resource key must be updated on the native control.
Updating the resource key, on the fly in the MAUI handler sometimes does not take effect. In some cases a theme change is required to get the native control to update these hard to reach colors.
One of the ways to get around this is to provide WinUI styling in addition to MAUI code.
Since Microsoft own both WinUI and MAUI, could WinUI expose more properties. This would enable first class desktop citizens like MAUI to take advantage of the additional properties on the native controls. This would prevent Windows desktop developers from having to straddle two control styling languages - WinUI styling, and MAUI Windows based handlers.
I understand this level of control is not available on iOS, Android, etc because Microsoft does not own the full stack, but Microsoft does own the full stack in this case.
Beta Was this translation helpful? Give feedback.
All reactions