[NUI] Remove the Loading API of Images (#1714)
authorzhouleonlei <56956725+zhouleonlei@users.noreply.github.com>
Tue, 16 Jun 2020 07:29:33 +0000 (15:29 +0800)
committerGitHub <noreply@github.com>
Tue, 16 Jun 2020 07:29:33 +0000 (15:29 +0800)
src/Tizen.NUI.Components/Controls/Loading.cs
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/LoadingSample.cs

index 8924dd7..6de551c 100755 (executable)
@@ -30,7 +30,7 @@ namespace Tizen.NUI.Components
     {
         /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public static readonly BindableProperty ImagesProperty = BindableProperty.Create(nameof(Images), typeof(string[]), typeof(Loading), null, propertyChanged: (bindable, oldValue, newValue) =>
+        public static readonly BindableProperty ImageArrayProperty = BindableProperty.Create(nameof(ImageArray), typeof(string[]), typeof(Loading), null, propertyChanged: (bindable, oldValue, newValue) =>
         {
             var instance = (Loading)bindable;
             if (newValue != null)
@@ -132,29 +132,11 @@ namespace Tizen.NUI.Components
         {
             get
             {
-                return Images;
+                return (string[])GetValue(ImageArrayProperty);
             }
             set
             {
-                Images = value;
-            }
-        }
-
-        /// <summary>
-        /// Gets or sets loading image resources.
-        /// </summary>
-        /// <since_tizen> 6 </since_tizen>
-        /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        public string[] Images
-        {
-            get
-            {
-                return (string[])GetValue(ImagesProperty);
-            }
-            set
-            {
-                SetValue(ImagesProperty, value);
+                SetValue(ImageArrayProperty, value);
             }
         }
 
index d5c6bcf..d8f25f0 100755 (executable)
@@ -80,7 +80,7 @@ namespace Tizen.NUI.Samples
             };
             loading[0] = new Loading();
             loading[0].Size = new Size(100, 100);
-            loading[0].Images = imageArray;
+            loading[0].ImageArray = imageArray;
             layout[1].Add(loading[0]);
             gridLayout.Add(layout[1]);