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

FlyoutItem text disappears in Release mode, but not in Debug mode #16490

Closed
DM-98 opened this issue Aug 2, 2023 · 3 comments
Closed

FlyoutItem text disappears in Release mode, but not in Debug mode #16490

DM-98 opened this issue Aug 2, 2023 · 3 comments
Labels

Comments

@DM-98
Copy link

DM-98 commented Aug 2, 2023

Description

The issue is when you apply x:DataType="local:AppShell" in AppShell.xaml, the text in LayoutItem completely disappears when running in Release mode. Everything works fine in Debug mode.

The issue is also described in #14865. After many hours of testing due to having to test only in Release mode, I found the bug.
It happens when you apply x:DataType="local:AppShell" on it.. Which is unfortunate since I'd like compiled bindings on it for improved data binding performance...

Steps to Reproduce

  1. Create a new .NET MAUI App
  2. Open AppShell.xaml
  3. Make a wrap the ShellContent with a Flyoutitem
  4. Write <Shell x:DataType="local:AppShell" ...>
  5. Run in Debug to see that the text is visible, and then run in Release, and it's invisible.

Link to public reproduction project repository

https://github.com/shadowfoxish/Temp-CollectionViewFormattedStringSlowness

Version with bug

8.0.0-preview.6.8686

Last version that worked well

Unknown/Other

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

Android 13.0 - API 33

Did you find any workaround?

To remove the x:DataType="local:AppShell" in <Shell...>, which is not a good workaround since we lose compiled databindings.

Relevant log output

No response

@DM-98 DM-98 added the t/bug Something isn't working label Aug 2, 2023
@Eilon Eilon added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Aug 2, 2023
@rachelkang
Copy link
Member

Duplicate of #11956

@rachelkang rachelkang marked this as a duplicate of #11956 Aug 2, 2023
@mattleibow
Copy link
Member

Looking at your code, I see the x:DataType="local:AppShell" in <Shell>, but there is no data binding on that object so the binding context will never be AppShell.

@DM-98
Copy link
Author

DM-98 commented Aug 2, 2023

Looking at your code, I see the x:DataType="local:AppShell" in <Shell>, but there is no data binding on that object so the binding context will never be AppShell.

Doesn't matter, this is simply a reproduction repo. Either way, it will still bug out with the text disappearance in release (tested with our product at another private repo).

@ghost ghost locked as resolved and limited conversation to collaborators Sep 1, 2023
@Eilon Eilon removed the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants