-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
<Label Text={Binding .} /> works in Debug but not Release #8182
Comments
the bug report deleted my code. Here it is again
|
More info, if you add the DataType to the DataTemplate the text will show up in Release mode. The DataType is not required in Debug mode. |
@polygonsheep not repro the issue, tell me if I miss something, my project: MauiApp20.zip |
Hi @polygonsheep. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. 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. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. |
Description
Trying to use a BindableLayout to display a List of strings, e.g. List MyStringList = {"Joe", "Mark", "Sarah", "Andy"}
Following xaml code works in the iOS Simulator & Android Emulator in Debug but not Release and not when published to an iPhone or Android phone. No text is displayed in Release
<VerticalStackLayout BindableLayout.ItemSource="{Binding MyStringList}"> <BindableLayout.ItemTemplate> <DataTemplate> <Label Text="{Binding .}" /> </DataTemplate> </BindableLayout.ItemTemplate> </VerticalStackLayout>
Also tried and both work on simulators not on devices.
dotnet version 6.0.301
Steps to Reproduce
Version with bug
Unknown/Other (please specify)
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android
Affected platform versions
iOS 15, Android 12
Did you find any workaround?
no
Relevant log output
No response
The text was updated successfully, but these errors were encountered: