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

Ignore null context change on UAP #4412

Merged
merged 1 commit into from Dec 4, 2018
Merged

Ignore null context change on UAP #4412

merged 1 commit into from Dec 4, 2018

Conversation

kingces95
Copy link
Contributor

Description of Change

If you set ListView ItemTemplate property to custom DataTemplateSelector, then while scrolling overridden OnSelectTemplate method will be called with item argument equal to null.
Unable to reproduce issue on Android. It seems that returning null when item == null does not affect ListView elements and everything works as expected.

Issues Resolved

Platforms Affected

  • UWP

Behavioral/Visual Changes

None

Testing Procedure

See bug

PR Checklist

  • Has automated tests
  • Rebased on top of the target branch at time of PR
  • Changes adhere to coding standard

@kingces95 kingces95 changed the base branch from master to 3.4.0 November 15, 2018 00:54
@samhouts samhouts added this to In Review in v3.4.0 Nov 19, 2018
@samhouts samhouts assigned PureWeen and unassigned jassmith and PureWeen Nov 21, 2018
@samhouts samhouts added the e/2 🕑 2 label Nov 27, 2018
@samhouts samhouts removed the request for review from PureWeen November 29, 2018 23:58
@@ -161,6 +161,9 @@ void OnContextActionsChanged(object sender, NotifyCollectionChangedEventArgs e)

void OnDataContextChanged(FrameworkElement sender, DataContextChangedEventArgs args)
{
if (args.NewValue == null)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe below delete the check args.NewValue != null?

@rmarinho rmarinho merged commit 4002fa9 into 3.4.0 Dec 4, 2018
v3.4.0 automation moved this from In Review to Done Dec 4, 2018
@samhouts samhouts added this to the 3.4.0 milestone Jan 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
v3.4.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

7 participants