[NUI] Make ensure ImageView._resourceUrl is latest
authorEunki Hong <eunkiki.hong@samsung.com>
Thu, 7 Dec 2023 16:59:37 +0000 (01:59 +0900)
committerEunki Hong <h.pichulia@gmail.com>
Wed, 13 Dec 2023 01:43:33 +0000 (10:43 +0900)
commitfe7bb3a94379000569e12c3385cc3961d194d612
tree273f4124903f47a2ff019f43f1cad74cd1a33a39
parent2d0640cc0f1aaf0211b2248003c3ee26cf464697
[NUI] Make ensure ImageView._resourceUrl is latest

Previous code didn't assume that _resourceUrl value of ImageView was not a latest.

 - If we set ImageView by ```Image``` property, the _resourceUrl was updated when cached map updating.
 - When we try to get ResourceUrl gettor, we ask to cached map always.

But PropertyValue.Get(out string) might spend long time if the URL length is long.
It will make useless string copy, what we can reduce.

Now We make every logic make ensure that _resourceUrl stored valid resource url.
If this is validated, we can reduce some C# - Native networking.

Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
src/Tizen.NUI/src/public/BaseComponents/ImageView.cs
src/Tizen.NUI/src/public/BaseComponents/ImageViewBindableProperty.cs