-
Notifications
You must be signed in to change notification settings - Fork 742
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: [iOS] [Android] Fix set bitmap stream after delay not update Image - set bitmap URI not update ImageBrush #8370
Conversation
src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_Image.cs
Outdated
Show resolved
Hide resolved
1a4ed9e
to
ce14410
Compare
a0dcb2f
to
20bd722
Compare
20bd722
to
6ff5470
Compare
@iury-kc There are some relevant build issues (check the UWP build error messages) |
6ff5470
to
1f7689a
Compare
As the Unit Tests are not passing, probably by delay issues, I created UI Tests. Squashed and wainting Azure tests results. |
478f28f
to
1e2943e
Compare
I increased timeout to 10 seconds, however, still having errors waiting controls. And there's another test failing and not exactly related to the commit. Any suggestions? Thanks!! |
@iury-kc I don't think the problem is timeout related...
|
Since #7328 was successfully merged, i`ll go back to this one asap. Thanks @MartinZikmund !! |
1e2943e
to
2787d9c
Compare
@iury-kc what's left for this PR ;) ? |
2787d9c
to
08a8f47
Compare
Sorry @agneszitte-nventive ... didin't see your message. I was waiting some changes in StorageFile. Then, after going to Uno.Figma I didn't have time to move on with this one. |
b17b61d
to
a6afbbb
Compare
…geBrush dont update after change URI
a6afbbb
to
2d572d5
Compare
@iury-kc this PR is still a work in progress left aside? (cc @jeromelaban) |
Originally it was waiting for some adjusts in StorageFile.cs .. Quite sure I |
iury seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
ImageBrush.AlignmentYProperty, | ||
(_, __) => imageBrushCallback() | ||
).DisposeWith(disposables); | ||
imageBrush.ImageChanged += ImageChanged; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes overlap the contents of #12234 by @MartinZikmund, where we want to remove subscriptions and events in general (they're more costly than using method overrides). What do you think, @MartinZikmund?
Also, didn't have the chance to test it after #12076 . |
The target code has changed significantly, let's review later when this will get prioritized. Thanks! |
GitHub Issue (If applicable): closes #5453
closes #7288
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Changing the stream of a BitmapImage wasn't firing Image Control`s OnSourceChanged event.
It was expected the same behavior like changing UriSource property of BitmapImage.
The same occurs whith ImageBrush when changing the URI of the bitmap.
What is the new behavior?
Now, changing the Stream of a BitmapImage will trigger the OnInvalidated event that make possible to Image Control to update itself, loading the bitmap as it should be.
The OnInvalidated event is also used to make possible Border / ImageBrush track the changes of its ImageSource.
PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Run
results.Other information