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

fix(xLoad): fix unload-reload scenarios when using x:Bind with x:Load #19174

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ramezgerges
Copy link
Contributor

GitHub Issue (If applicable): closes #18509

PR Type

What kind of change does this PR introduce?

What is the current behavior?

What is the new behavior?

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

Comment on lines +203 to +208
if ((this as IDependencyObjectStoreProvider).Store.GetPropertyDetails(DataContextProperty)
.CurrentHighestValuePrecedence > DependencyPropertyValuePrecedences.Local)
{
this.SetValue(DataContextProperty, DataContext, DependencyPropertyValuePrecedences.Local);
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For the record, I really don't like this, but I don't see a better way of fixing this with the way x:Bind is currently implemented.

@unodevops
Copy link
Contributor

⚠️⚠️ The build 151416 has failed on Uno.UI - CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Two-way x:bind on x:Load does not always unload the bound control
2 participants