maui
maui copied to clipboard
[MacCatalyst] [Scenario Day] Brushes not working in Frame
Description
Brushes not working in Frame.

Steps to Reproduce
- Download https://github.com/davidbritch/dotnet-maui-samples/tree/main/UserInterface/BrushesDemos
- Launch the app on macOS.
Version with bug
Release Candidate 3 (current)
Last version that worked well
Unknown/Other
Affected platforms
macOS
Affected platform versions
macOS 12.3.1
Did you find any workaround?
No response
Relevant log output
No response
clicking Linear gradient brush demos
doesn't work on Mac(vs main build)
As a workaround, you can replace Frame with ContentView to see if it also works for you: Example code:
<ContentView
HeightRequest="120"
HorizontalOptions="FillAndExpand"
Margin="-2"
Padding="20, 45, 20, 0">
<ContentView.Background>
<LinearGradientBrush>
<GradientStop Color="#00A7B5" Offset="0.1" />
<GradientStop Color="#721474" Offset="1.0" />
</LinearGradientBrush>
</ContentView.Background>
</ContentView>
If you need border, border radius and shadow, you can combine ContentView with Border and Shadow MAUI elements.