maui icon indicating copy to clipboard operation
maui copied to clipboard

[MacCatalyst] [Scenario Day] Brushes not working in Frame

Open jsuarezruiz opened this issue 2 years ago • 2 comments

Description

Brushes not working in Frame.

Captura de Pantalla 2022-05-17 a las 17 33 19

Steps to Reproduce

  1. Download https://github.com/davidbritch/dotnet-maui-samples/tree/main/UserInterface/BrushesDemos
  2. 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

jsuarezruiz avatar May 17 '22 15:05 jsuarezruiz

clicking Linear gradient brush demos doesn't work on Mac(vs main build)

VincentBu avatar May 19 '22 07:05 VincentBu

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.

hermben avatar Sep 19 '22 20:09 hermben