You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
Hot Reload needs API to query and modify ResourceDictionaries loaded from Source yet existing API is mostly inconsistent. Looks like ResourceDictoinary uses helper _mergedInstance field which is not properly assessible for hot reload.
I test with SR2 and this is definitely better, with most issues fixed. However, I see that the merged Root.Resources has two entries (right number) but they both have a null key and null value. See screenshot below. So the delete test fails above (as Color1 can't be found in the resource dictionary).
Also, updating the color in CustomRD.xaml doesn't work via Hot Reload, due to this. That's the user impact. It would be great to get a fix in for SR3 if possible.
@BretJohnson the delete succeed (and Remove() returns true), and you can see that after the Remove() the Count is 1, and LookupResource again fails (proving that this has been removed).
We KNOW there's some discrepancies in the way resources are counted, removed, enumerated, but we can not fix this in the XF 5 timeframe as it would be a breaking change for existing users, but a fix is planned for the next iteration.
In the meantime, we believe you should be able to get whatever you need for HR to work with the current state.
(side node: the [null,null] is a example of mismatch between the enumerator and the count)
Description
Hot Reload needs API to query and modify ResourceDictionaries loaded from Source yet existing API is mostly inconsistent. Looks like ResourceDictoinary uses helper _mergedInstance field which is not properly assessible for hot reload.
Steps to Reproduce
XamarinApp9.zip
.
Actual: text stating that RD.Count and RD.MergedDiciionaries.Count are 0.
Expected: RD.Count should be 2.
Observe: text stating that Color1 is found and its value displayed.
Actual: text stating that Color1 resource is not found.
Expected: text stating that resource deleted.
Actual: text stating that Color1 is found and its value displayed.
Expected: text stating that Color1 resource is not found.
The text was updated successfully, but these errors were encountered: