maui icon indicating copy to clipboard operation
maui copied to clipboard

Issue with the usage of DynamicResource for inner views of a custom control.

Open Ahamed-Ali opened this issue 5 months ago • 11 comments

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 :

image

Video

https://github.com/dotnet/maui/assets/102580874/f9071f91-885c-42bc-a4eb-325bd7bcc36a

Steps to Reproduce

  1. obtain the sample from the given repository link and deploy it
  2. you can observe that dynamic resource entry not updated with the text color
  3. 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

Ahamed-Ali avatar Mar 04 '24 14:03 Ahamed-Ali

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.

ghost avatar Mar 04 '24 15:03 ghost

Please fix this ASAP or any workarounds available would be greatly appreciated

Ahamed-Ali avatar Mar 15 '24 06:03 Ahamed-Ali

Any updates on this?

SF3969 avatar Mar 21 '24 08:03 SF3969

Any update about this issue? Thank you.

MattePozzy avatar Mar 25 '24 09:03 MattePozzy

Please fix this ASAP or any workaround for this issue ? @samhouts

Ahamed-Ali avatar Mar 28 '24 12:03 Ahamed-Ali

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

XamlTest avatar Apr 02 '24 07:04 XamlTest

Please fix this issue ASAP or is any workarounds available for this issue?

SF3969 avatar Apr 15 '24 04:04 SF3969

Please fix this ASAP or any workarounds available , please share us . Make it as high priority

Ahamed-Ali avatar Apr 29 '24 13:04 Ahamed-Ali

Facing the same issue, any updates on this one?

AndreasReitberger avatar May 06 '24 16:05 AndreasReitberger

Any update on this @MattePozzy ?

Ahamed-Ali avatar May 07 '24 13:05 Ahamed-Ali

Any update on this @MattePozzy ?

No, the issue still persist.

MattePozzy avatar May 07 '24 13:05 MattePozzy

please fix this ASAP or any workarounds available would be greatly appreciated @PureWeen ?

Ahamed-Ali avatar May 15 '24 05:05 Ahamed-Ali

Any updates on this?

SF3969 avatar May 20 '24 13:05 SF3969