-
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
Bindings to Width and Height of a Control never stop triggering, even if size did not change at all. #22432
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
Possibly related |
It does sound a lot like what I'm seeing yes! |
Can you test with the latest nightly build? |
The latest nightly build seems to have fixed this issue. Unfortunately it created other issues like custom fonts not working at all and border corner radius not working when set from code... sigh. |
Can you please log issues for these so we can fix ASAP? The border issue might be fixed by |
Description
I have a font size converter that takes a label width and height to adjust the font size using native code. Long after the font size has been set the converter keeps being triggered, as if the label width and height was changed, but its the exact same values as before.
This has only started happening from version 8.0.6 onwards on Android (iOS works perfectly fine). On a static screen this may not be noticeable but if you have animations (e.g. panels moving) they are very choppy. It can potentially lead to higher resource usage and low performance.
Steps to Reproduce
1 - Create a XAML page and add a label.
2 - Create an implementation of IMultiValueConverter.
3 - Add a multibinding to label for any property (e.g. Font Size) like this:
4 - Put a breakpoint on on the IMultiValueConverter implementation Convert method and see it being triggered all the time.
Link to public reproduction project repository
No response
Version with bug
8.0.7 SR2
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.6 SR1
Affected platforms
Android
Affected platform versions
Android 13 and Android 14
Did you find any workaround?
Unfortunately not.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: