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

ContentPage Property InputTransparent = true, causes blank page #25007

Open
xrysanwlh opened this issue Sep 30, 2024 · 2 comments
Open

ContentPage Property InputTransparent = true, causes blank page #25007

xrysanwlh opened this issue Sep 30, 2024 · 2 comments
Labels
area-controls-general General issues that span multiple controls, or common base classes such as View or Element migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert platform/android 🤖 s/needs-repro Attach a solution or code which reproduces the issue t/bug Something isn't working

Comments

@xrysanwlh
Copy link

xrysanwlh commented Sep 30, 2024

Description

When setting ContentPage property InputTransparent to true, the page appears blank.

Is that the expected behavior?

Migrating from Xamarin Forms and InputTransparent property seems to have change behavior. What changed?

Steps to Reproduce

  1. Create a new .NET MAUI app
  2. Add a button which sets content page's InputTransparent property to true, when clicked:
public partial class MainPage : ContentPage
{
    public MainPage()
    {
        InitializeComponent();
    }

    private void OnButtonClicked(object sender, EventArgs e)
    {
        this.InputTransparent = true;
    }
}
  1. The page turns blank, and all the elements disappeared

Link to public reproduction project repository

No response

Version with bug

9.0.0-rc.1.24453.9

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

@xrysanwlh xrysanwlh added the t/bug Something isn't working label Sep 30, 2024
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@jfversluis jfversluis added the s/needs-repro Attach a solution or code which reproduces the issue label Oct 1, 2024
Copy link
Contributor

Hi @xrysanwlh. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

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.

@jfversluis jfversluis added the area-controls-general General issues that span multiple controls, or common base classes such as View or Element label Oct 1, 2024
@samhouts samhouts added platform/android 🤖 migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert labels Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-general General issues that span multiple controls, or common base classes such as View or Element migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert platform/android 🤖 s/needs-repro Attach a solution or code which reproduces the issue t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants