InputTransparent not working on a BoxView?

Phunction 301 Reputation points
2023-01-22T23:49:05.59+00:00

It appears the InputTransparent is not working properly? I set it to false, yet any controls underneath still receive taps.

<AbsoluteLayout VerticalOptions="Fill" BackgroundColor="#5774ED">
        <ActivityIndicator IsRunning="{Binding Path=IsBusy, Source={x:Reference MyPage}}" ZIndex="2" AbsoluteLayout.LayoutFlags="All" AbsoluteLayout.LayoutBounds="0,0,1,1"/>
        <BoxView AbsoluteLayout.LayoutFlags="All" AbsoluteLayout.LayoutBounds="0,0,1,1" ZIndex="1"
        BackgroundColor="Transparent"
        InputTransparent="False"
        IsVisible="{Binding Path=IsBusy, Source={x:Reference MyPage}}" />

I know IsBusy is working and I know the BoxView does fill the screen when I change the background to a color from transparent, yet any controls underneath still get input.

What am I missing? I am trying this on an Android Device

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,905 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,283 questions
{count} votes

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 48,181 Reputation points Microsoft Vendor
    2023-01-24T04:12:07.6566667+00:00

    Hello,

    Thanks for your feedback.

    With your code, I successfully reproduced this issue and found an identical issue in GitHub that has already been filed.

    InputTransparent property does not work on Android #9069.

    Please stay tuned for this issue to avoid missing out on our development team's solution.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our [documentation][1] to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.