[NUI] Add BackgroundImageSynchronosLoading property as internal API (#497)
authordongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 2 Oct 2018 10:27:08 +0000 (19:27 +0900)
committerGitHub <noreply@github.com>
Tue, 2 Oct 2018 10:27:08 +0000 (19:27 +0900)
src/Tizen.NUI/src/public/BaseComponents/View.cs

index 0ee01e9..c95100e 100755 (executable)
@@ -5537,6 +5537,35 @@ namespace Tizen.NUI.BaseComponents
             }
         }
 
+        private bool _backgroundImageSynchronosLoading = false;
+        internal bool BackgroundImageSynchronosLoading
+        {
+            get
+            {
+                return _backgroundImageSynchronosLoading;
+            }
+            set
+            {
+                if (value != _backgroundImageSynchronosLoading)
+                {
+                    string bgUrl = "";
+                    PropertyMap bgMap = this.Background;
+                    int visualType = 0;
+                    bgMap.Find(Visual.Property.Type)?.Get(out visualType);
+                    if (visualType == (int)Visual.Type.Image)
+                    {
+                        bgMap.Find(ImageVisualProperty.URL)?.Get(out bgUrl);
+                    }
+                    if (bgUrl.Length != 0)
+                    {
+                        _backgroundImageSynchronosLoading = value;
+                        bgMap.Add("synchronousLoading", new PropertyValue(_backgroundImageSynchronosLoading));
+                        this.Background = bgMap;
+                    }
+                }
+            }
+        }
+
     }
 
     /// <summary>