maui
maui copied to clipboard
Issue with the usage of DynamicResource for inner views of a custom control.
Description
We have created a CustomEntry class inherited from the entry control, and we also have a CustomEntryStyle class inherited from BindableObject, which includes a TextColor property. There is a property named CustomEntryTextStyle of type CustomEntryStyle within the CustomEntry Class. On the PropertyChanged method of this property, we update the entry's TextColor from another class (CustomEntryTextStyle).
When adding the CustomEntry control with inner views in XAML, the provided TextColor applies only for the static resource and is not updated for the Dynamic Resource.
Please review the sample in the repository provided below. This is a high-priority issue, and we urgently request a workaround or a prompt fix. Additionally, we have attached a video for your reference.
Code Snippet :
Video
https://github.com/dotnet/maui/assets/102580874/f9071f91-885c-42bc-a4eb-325bd7bcc36a
Steps to Reproduce
- obtain the sample from the given repository link and deploy it
- you can observe that dynamic resource entry not updated with the text color
- This is bug
https://github.com/Ahamed-Ali/DynamicResourceIssue
Link to public reproduction project repository
https://github.com/Ahamed-Ali/DynamicResourceIssue
Version with bug
Unknown/Other
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android, Windows, macOS
Affected platform versions
Android 11 , Windows 10
Did you find any workaround?
No
Relevant log output
No response
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.
Please fix this ASAP or any workarounds available would be greatly appreciated
Any updates on this?
Any update about this issue? Thank you.
Please fix this ASAP or any workaround for this issue ? @samhouts
Verified this on VS 17.10.0 Preview 2.0(8.0.14). Repro on Windows 11, Android 14.0-API34, iOS 17.2 and MacCatalyst with provided Project: DynamicInnerView.zip
Please fix this issue ASAP or is any workarounds available for this issue?
Please fix this ASAP or any workarounds available , please share us . Make it as high priority
Facing the same issue, any updates on this one?
Any update on this @MattePozzy ?
Any update on this @MattePozzy ?
No, the issue still persist.
please fix this ASAP or any workarounds available would be greatly appreciated @PureWeen ?
Any updates on this?