Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] [iOS] [macOS] CascadeInputTransparent="False" still not working on ContentView #21002

Open
Felicity-R opened this issue Mar 4, 2024 · 2 comments · May be fixed by #21025
Open

[Android] [iOS] [macOS] CascadeInputTransparent="False" still not working on ContentView #21002

Felicity-R opened this issue Mar 4, 2024 · 2 comments · May be fixed by #21025
Assignees
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert platform/android 🤖 platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst t/bug Something isn't working
Milestone

Comments

@Felicity-R
Copy link

Felicity-R commented Mar 4, 2024

Description

#10977 was closed as fixed by #14846, but I can still reproduce the issue after updating to .Net 8.

Steps to Reproduce

Same as linked issue

  1. Create a new Maui app in Visual Studio - choosing the .net 8 template - with the button click sample code.
  2. Replace the content of MainPage.xml with:
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="ContentViewCascadeInputTransparent.MainPage">

        <ContentView InputTransparent="True" CascadeInputTransparent="False"
            Padding="30,0">

            <Button
                x:Name="CounterBtn"
                Text="Click me" 
                SemanticProperties.Hint="Counts the number of times you click"
                Clicked="OnCounterClicked"
                HorizontalOptions="Fill" />
        </ContentView>

</ContentPage>

Expected Result:

Button is still clickable as InputTransparent should not cascade

Actual Result:

Button is not clickable.
If you replace the ContentView with another layout like a VerticalStackLayout then it works fine.

Link to public reproduction project repository

https://github.com/Felicity-R/ContentViewCascadeInputTransparent

Version with bug

8.0.3 GA

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

Can't use ContentView; need to use a different layout.

Relevant log output

No response

@Felicity-R Felicity-R added the t/bug Something isn't working label Mar 4, 2024
@jsuarezruiz jsuarezruiz added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label Mar 5, 2024
@PureWeen PureWeen added the potential-regression This issue described a possible regression on a currently supported version., verification pending label Mar 5, 2024
@PureWeen PureWeen added this to the Backlog milestone Mar 5, 2024
@ghost
Copy link

ghost commented Mar 5, 2024

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

@PureWeen PureWeen modified the milestones: Backlog, .NET 8 SR4 Mar 11, 2024
@PureWeen PureWeen modified the milestones: .NET 8 SR4, .NET 8 SR5 Apr 9, 2024
@PureWeen PureWeen modified the milestones: .NET 8 SR5, .NET 8 SR6 Apr 25, 2024
@PureWeen PureWeen modified the milestones: .NET 8 SR6, .NET 8 SR7 Jun 3, 2024
@PureWeen PureWeen modified the milestones: .NET 8 SR7, .NET 8 SR8 Jun 15, 2024
@mattleibow mattleibow changed the title CascadeInputTransparent="False" still not working on ContentView [Android] [iOS] [macOS] CascadeInputTransparent="False" still not working on ContentView Jun 20, 2024
@mattleibow
Copy link
Member

I am repurposing this issue for Android/iOS because I have that fixed. Windows is a bit more complex so will have to be a separate PR due to overlapping concerns.

This is the Windows issue: #23160

I want to get this fixed and then create a new PR for Windows otherwise the PR is too large to properly review.

@mattleibow mattleibow added migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert and removed potential-regression This issue described a possible regression on a currently supported version., verification pending platform/windows 🪟 labels Jun 20, 2024
@PureWeen PureWeen modified the milestones: .NET 8 SR8, .NET 8 SR9 Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert platform/android 🤖 platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst t/bug Something isn't working
Projects
Status: Possible
Development

Successfully merging a pull request may close this issue.

5 participants