maui icon indicating copy to clipboard operation
maui copied to clipboard

CascadeInputTransparent="False" is not working on ContentView

Open pauldendulk opened this issue 2 years ago • 1 comments

Description

If a ContentView has InputTransparent set to true and CascadeInputTransparent set to false the child controls do not receive input.

Steps to Reproduce

  1. Create a new Maui app in Visual Studio 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="CascadeInputTransparent.MainPage">

    <ContentView
        InputTransparent="True"
        CascadeInputTransparent="False">    
        <Button
            x:Name="CounterBtn"
            Text="Click me"
            SemanticProperties.Hint="Counts the number of times you click"
            Clicked="OnCounterClicked"
            HorizontalOptions="Center" />
    </ContentView>
</ContentPage>
  1. Click the button and nothing happens.

Link to public reproduction project repository

https://github.com/pauldendulk/CascadeInputTransparentBug

Version with bug

7.0 Release Candidate 2

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

windows10.0.19041.0

Did you find any workaround?

Not one that solves my problem.

Note, this problem also exists in the ScrollView. It does not exist in the VerticalStackLayout. I did not test anything else.

Relevant log output

No response

pauldendulk avatar Oct 28 '22 12:10 pauldendulk

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 Oct 28 '22 14:10 ghost

This is an interesting one because CascadeInputTransparent is really only on Layouts, but now ContentView is also a Layout... @hartez not sure if this was a conscious decision to always make ContentView cascade (and the property is not supposed to be there) or is this a bug?

mattleibow avatar May 01 '23 03:05 mattleibow

Verified this issue with Visual Studio Enterprise 17.7.0 Preview 1.0. Can repro on Windows platform with sample project. https://github.com/pauldendulk/CascadeInputTransparentBug image

homeyf avatar Jun 06 '23 09:06 homeyf

Any news about this? @davidortinau @mattleibow @jfversluis @rmarinho @StephaneDelcroix @PureWeen ?

ederbond avatar Jun 06 '23 16:06 ederbond