maui
maui copied to clipboard
When two control views overlap, setting the opacity and TranslationY properties is invalid
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
The actual effect is shown in the figure
The expected effect is as shown in the figure
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.
Testing it with the latest version:
The second Frame is translated and have the opacity, seems correct. Is your result?
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.
Thank you very much. This issue has been resolved