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

[regression/8.0.0] MAUI custom control/mapper not working android #17483

Closed
npostma opened this issue Sep 19, 2023 · 1 comment
Closed

[regression/8.0.0] MAUI custom control/mapper not working android #17483

npostma opened this issue Sep 19, 2023 · 1 comment
Labels
area-controls-entry Entry custom-handler platform/android 🤖 potential-regression This issue described a possible regression on a currently supported version., verification pending t/bug Something isn't working

Comments

@npostma
Copy link

npostma commented Sep 19, 2023

Description

I am presently engaged in the task of transitioning my application to MAUI within the .NET 8 framework. Unfortunately, I've encountered some roadblocks primarily related to crashes, which have been reported in detail on the GitHub issue tracker: #17396. While I've managed to get certain aspects of the app working on Android, I've noticed a few issues that were absent in the .NET 7 build. Regrettably, I'm unable to ascertain if these issues also affect the iOS version since I'm unable to test it due to a crash occurring during the boot process.

One specific issue I've encountered pertains to a 'CleanEntry' control with an associated mapper. Below is the relevant code snippet for reference.

This line in the entry should not be visible:
image

This Mapper code is called in the constructor for the ContentPage's that make use of this mapper/control

Microsoft.Maui.Handlers.EntryHandler.Mapper.AppendToMapping("SetCleanStyle", (handler, view) =>
{
        if (view is CleanEntry)
        {
#if IOS || MACCATALYST
            handler.PlatformView.BorderStyle = UITextBorderStyle.None;
#elif ANDROID
            handler.PlatformView.Background = null;
            handler.PlatformView.SetHintTextColor(ColorStateList.ValueOf(Android.Graphics.Color.White));
            handler.PlatformView.SetPadding(0, 0, 0, 0);
#endif
                }
});

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

8.0.0-rc.1.9171

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

7.0.92

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

Android API 31

Did you find any workaround?

No response

Relevant log output

No response

@npostma npostma added the t/bug Something isn't working label Sep 19, 2023
@npostma npostma changed the title [regression/8.0.0] MAUI custom rendener not working android [regression/8.0.0] MAUI custom control/mapper not working android Sep 19, 2023
@samhouts samhouts added platform/android 🤖 custom-handler potential-regression This issue described a possible regression on a currently supported version., verification pending labels Sep 19, 2023
@Eilon Eilon added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Sep 19, 2023
@samhouts
Copy link
Member

Duplicate of #17448

@samhouts samhouts marked this as a duplicate of #17448 Sep 19, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Oct 20, 2023
@Eilon Eilon added area-controls-entry Entry and removed legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor labels May 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-entry Entry custom-handler platform/android 🤖 potential-regression This issue described a possible regression on a currently supported version., verification pending t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants