-
Notifications
You must be signed in to change notification settings - Fork 743
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
fix(listview): Adjust datacontext for header/footer for ListView #12939
Conversation
2ff2985
to
9b9ea84
Compare
The build 86369 found UI Test snapshots differences: Details
|
The build 86512 found UI Test snapshots differences: Details
|
src/Uno.UI/UI/Xaml/Controls/ListViewBase/NativeListViewBaseAdapter.Android.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Xiaotian Gu <xiaoyao312@gmail.com>
The build 86924 found UI Test snapshots differences: Details
|
@Mergifyio backport release/stable/4.9 |
@Mergifyio backport legacy/4x |
✅ Backports have been created
|
✅ Backports have been created
|
…4.9/pr-12939 fix(listview): Adjust datacontext for header/footer for ListView (backport #12939)
fix(listview): Adjust datacontext for header/footer for ListView (backport #12939)
GitHub Issue (If applicable): closes https://github.com/unoplatform/tradezero-private/issues/8, fixes https://github.com/unoplatform/tradezero-private/issues/6
PR Type
What kind of change does this PR introduce?
What is the new behavior?
Applies the proper data context and content to the native container for Android and iOS.
Copilot Summary
🤖 Generated by Copilot at 2ff2985
This pull request enhances the
ListViewBase
control on Android and adds unit tests for its header and footer functionality. It optimizes theNativeListViewBaseAdapter
class to avoid unnecessary work and handle different item types correctly. It also verifies that the header and footer elements can use bindings to display data from theListView
's data context.PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Run
results.Other information
Internal Issue (If applicable):