From: zhouleonlei <56956725+zhouleonlei@users.noreply.github.com> Date: Tue, 16 Jun 2020 07:29:33 +0000 (+0800) Subject: [NUI] Remove the Loading API of Images (#1714) X-Git-Tag: accepted/tizen/unified/20210219.040944~671 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=2f2e769cd023219ebdb68d109974810a0a740764;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Remove the Loading API of Images (#1714) --- diff --git a/src/Tizen.NUI.Components/Controls/Loading.cs b/src/Tizen.NUI.Components/Controls/Loading.cs index 8924dd7..6de551c 100755 --- a/src/Tizen.NUI.Components/Controls/Loading.cs +++ b/src/Tizen.NUI.Components/Controls/Loading.cs @@ -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; - } - } - - /// - /// Gets or sets loading image resources. - /// - /// 6 - /// 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); } } diff --git a/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/LoadingSample.cs b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/LoadingSample.cs index d5c6bcf..d8f25f0 100755 --- a/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/LoadingSample.cs +++ b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/LoadingSample.cs @@ -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]);