maui icon indicating copy to clipboard operation
maui copied to clipboard

When two control views overlap, setting the opacity and TranslationY properties is invalid

Open xyeie opened this issue 2 years ago • 1 comments

Description

It is normal when it is hot reload, but the expected effect will not be achieved when it is restarted.

Steps to Reproduce

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="MauiApp1.MainPage">

<ScrollView>
    <VerticalStackLayout Margin="15,0,15,0">

        <Grid RowDefinitions="*"
              VerticalOptions="Center"
              HeightRequest="150">
            <Frame Grid.Row="0" 
                   BackgroundColor="Black">
                
            </Frame>
            <Frame Grid.Row="0"
                   BackgroundColor="Beige"
                   Opacity="0.9"
                   TranslationY="40">
                
            </Frame>
        </Grid>

    </VerticalStackLayout>
</ScrollView>

Modify xaml at runtime, and the result is normal. However, if you re run the program, you will not get the expected results.

Link to public reproduction project repository

no

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

android11 and up

Did you find any workaround?

no

Relevant log output

no

xyeie avatar Nov 25 '22 14:11 xyeie

实际 The actual effect is shown in the figure 预期 The expected effect is as shown in the figure

xyeie avatar Nov 25 '22 14:11 xyeie

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

ghost avatar Nov 28 '22 15:11 ghost

Testing it with the latest version: image

The second Frame is translated and have the opacity, seems correct. Is your result?

jsuarezruiz avatar Mar 30 '23 11:03 jsuarezruiz

Hi @xyeie. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

ghost avatar Mar 30 '23 11:03 ghost

Thank you very much. This issue has been resolved

xyeie avatar Mar 30 '23 14:03 xyeie