From c98e4b65e0677a3716028b497c3fd988f5962947 Mon Sep 17 00:00:00 2001 From: Yeongjong Lee Date: Thu, 29 Oct 2020 11:45:03 +0900 Subject: [PATCH] [NUI] Fix build warning CA1507 Use nameof instead of string --- src/Tizen.NUI/src/internal/ItemContainer.cs | 12 +-- src/Tizen.NUI/src/internal/ItemIdContainer.cs | 12 +-- src/Tizen.NUI/src/internal/TouchPointContainer.cs | 12 +-- .../src/internal/XamlBinding/DataTemplate.cs | 6 +- .../src/internal/XamlBinding/ElementTemplate.cs | 4 +- .../internal/XamlBinding/EnumerableExtensions.cs | 2 +- .../Interactivity/AttachedCollection.cs | 2 +- .../src/internal/XamlBinding/MergedStyle.cs | 2 +- .../src/internal/XamlBinding/TemplateBinding.cs | 4 +- .../src/internal/XamlBinding/TypeTypeConverter.cs | 2 +- .../src/public/BaseComponents/CustomView.cs | 4 +- .../src/public/BaseComponents/FlexContainer.cs | 12 +-- .../src/public/BaseComponents/ImageView.cs | 12 +-- .../src/public/BaseComponents/Scrollable.cs | 20 ++-- .../Style/ViewStyleBindableProperty.cs | 2 +- .../src/public/BaseComponents/TableView.cs | 10 +- .../src/public/BaseComponents/VideoView.cs | 12 +-- .../public/BaseComponents/ViewBindableProperty.cs | 120 ++++++++++----------- .../src/public/NUIComponentApplication.cs | 2 +- src/Tizen.NUI/src/public/UIComponents/Button.cs | 40 +++---- .../public/UIComponents/PopupBindableProperty.cs | 42 ++++---- .../src/public/UIComponents/ProgressBar.cs | 18 ++-- .../src/public/UIComponents/PushButton.cs | 4 +- src/Tizen.NUI/src/public/UIComponents/ScrollBar.cs | 18 ++-- .../UIComponents/ScrollViewBindableProperty.cs | 36 +++---- src/Tizen.NUI/src/public/UIComponents/Slider.cs | 30 +++--- .../src/public/UIComponents/ToggleButton.cs | 6 +- .../src/public/XamlBinding/BindableObject.cs | 26 ++--- .../public/XamlBinding/BindableObjectExtensions.cs | 10 +- .../src/public/XamlBinding/BindableProperty.cs | 22 ++-- .../src/public/XamlBinding/BindablePropertyKey.cs | 2 +- src/Tizen.NUI/src/public/XamlBinding/Binding.cs | 6 +- src/Tizen.NUI/src/public/XamlBinding/Element.cs | 2 +- .../src/public/XamlBinding/ElementEventArgs.cs | 2 +- .../public/XamlBinding/Interactivity/Behavior.cs | 4 +- .../src/public/XamlBinding/Internals/NameScope.cs | 2 +- src/Tizen.NUI/src/public/XamlBinding/Page.cs | 6 +- src/Tizen.NUI/src/public/XamlBinding/Setter.cs | 2 +- src/Tizen.NUI/src/public/XamlBinding/Style.cs | 2 +- .../src/public/XamlBinding/TriggerAction.cs | 2 +- .../src/public/XamlBinding/TriggerBase.cs | 6 +- 41 files changed, 270 insertions(+), 270 deletions(-) diff --git a/src/Tizen.NUI/src/internal/ItemContainer.cs b/src/Tizen.NUI/src/internal/ItemContainer.cs index 62b555b..3bf852f 100755 --- a/src/Tizen.NUI/src/internal/ItemContainer.cs +++ b/src/Tizen.NUI/src/internal/ItemContainer.cs @@ -47,7 +47,7 @@ namespace Tizen.NUI public ItemContainer(global::System.Collections.ICollection c) : this() { if (c == null) - throw new global::System.ArgumentNullException("c"); + throw new global::System.ArgumentNullException(nameof(c)); foreach (Item element in c) { this.Add(element); @@ -143,15 +143,15 @@ namespace Tizen.NUI public void CopyTo(int index, Item[] array, int arrayIndex, int count) { if (array == null) - throw new global::System.ArgumentNullException("array"); + throw new global::System.ArgumentNullException(nameof(array)); if (index < 0) - throw new global::System.ArgumentOutOfRangeException("index", "Value is less than zero"); + throw new global::System.ArgumentOutOfRangeException(nameof(index), "Value is less than zero"); if (arrayIndex < 0) - throw new global::System.ArgumentOutOfRangeException("arrayIndex", "Value is less than zero"); + throw new global::System.ArgumentOutOfRangeException(nameof(arrayIndex), "Value is less than zero"); if (count < 0) - throw new global::System.ArgumentOutOfRangeException("count", "Value is less than zero"); + throw new global::System.ArgumentOutOfRangeException(nameof(count), "Value is less than zero"); if (array.Rank > 1) - throw new global::System.ArgumentException("Multi dimensional array.", "array"); + throw new global::System.ArgumentException("Multi dimensional array.", nameof(array)); if (index + count > this.Count || arrayIndex + count > array.Length) throw new global::System.ArgumentException("Number of elements to copy is too large."); for (int i = 0; i < count; i++) diff --git a/src/Tizen.NUI/src/internal/ItemIdContainer.cs b/src/Tizen.NUI/src/internal/ItemIdContainer.cs index 9e22586..33ac295 100755 --- a/src/Tizen.NUI/src/internal/ItemIdContainer.cs +++ b/src/Tizen.NUI/src/internal/ItemIdContainer.cs @@ -46,7 +46,7 @@ namespace Tizen.NUI public ItemIdContainer(global::System.Collections.ICollection c) : this() { if (c == null) - throw new global::System.ArgumentNullException("c"); + throw new global::System.ArgumentNullException(nameof(c)); foreach (uint element in c) { this.Add(element); @@ -142,15 +142,15 @@ namespace Tizen.NUI public void CopyTo(int index, uint[] array, int arrayIndex, int count) { if (array == null) - throw new global::System.ArgumentNullException("array"); + throw new global::System.ArgumentNullException(nameof(array)); if (index < 0) - throw new global::System.ArgumentOutOfRangeException("index", "Value is less than zero"); + throw new global::System.ArgumentOutOfRangeException(nameof(index), "Value is less than zero"); if (arrayIndex < 0) - throw new global::System.ArgumentOutOfRangeException("arrayIndex", "Value is less than zero"); + throw new global::System.ArgumentOutOfRangeException(nameof(arrayIndex), "Value is less than zero"); if (count < 0) - throw new global::System.ArgumentOutOfRangeException("count", "Value is less than zero"); + throw new global::System.ArgumentOutOfRangeException(nameof(count), "Value is less than zero"); if (array.Rank > 1) - throw new global::System.ArgumentException("Multi dimensional array.", "array"); + throw new global::System.ArgumentException("Multi dimensional array.", nameof(array)); if (index + count > this.Count || arrayIndex + count > array.Length) throw new global::System.ArgumentException("Number of elements to copy is too large."); for (int i = 0; i < count; i++) diff --git a/src/Tizen.NUI/src/internal/TouchPointContainer.cs b/src/Tizen.NUI/src/internal/TouchPointContainer.cs index 69900ef..e246656 100755 --- a/src/Tizen.NUI/src/internal/TouchPointContainer.cs +++ b/src/Tizen.NUI/src/internal/TouchPointContainer.cs @@ -38,7 +38,7 @@ namespace Tizen.NUI public TouchPointContainer(global::System.Collections.ICollection c) : this() { if (c == null) - throw new global::System.ArgumentNullException("c"); + throw new global::System.ArgumentNullException(nameof(c)); foreach (TouchPoint element in c) { this.Add(element); @@ -116,15 +116,15 @@ namespace Tizen.NUI public void CopyTo(int index, TouchPoint[] array, int arrayIndex, int count) { if (array == null) - throw new global::System.ArgumentNullException("array"); + throw new global::System.ArgumentNullException(nameof(array)); if (index < 0) - throw new global::System.ArgumentOutOfRangeException("index", "Value is less than zero"); + throw new global::System.ArgumentOutOfRangeException(nameof(index), "Value is less than zero"); if (arrayIndex < 0) - throw new global::System.ArgumentOutOfRangeException("arrayIndex", "Value is less than zero"); + throw new global::System.ArgumentOutOfRangeException(nameof(arrayIndex), "Value is less than zero"); if (count < 0) - throw new global::System.ArgumentOutOfRangeException("count", "Value is less than zero"); + throw new global::System.ArgumentOutOfRangeException(nameof(count), "Value is less than zero"); if (array.Rank > 1) - throw new global::System.ArgumentException("Multi dimensional array.", "array"); + throw new global::System.ArgumentException("Multi dimensional array.", nameof(array)); if (index + count > this.Count || arrayIndex + count > array.Length) throw new global::System.ArgumentException("Number of elements to copy is too large."); for (int i = 0; i < count; i++) diff --git a/src/Tizen.NUI/src/internal/XamlBinding/DataTemplate.cs b/src/Tizen.NUI/src/internal/XamlBinding/DataTemplate.cs index feb86cc..fee2819 100755 --- a/src/Tizen.NUI/src/internal/XamlBinding/DataTemplate.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/DataTemplate.cs @@ -24,9 +24,9 @@ namespace Tizen.NUI.Binding public void SetBinding(BindableProperty property, BindingBase binding) { if (property == null) - throw new ArgumentNullException("property"); + throw new ArgumentNullException(nameof(property)); if (binding == null) - throw new ArgumentNullException("binding"); + throw new ArgumentNullException(nameof(binding)); Values.Remove(property); Bindings[property] = binding; @@ -35,7 +35,7 @@ namespace Tizen.NUI.Binding public void SetValue(BindableProperty property, object value) { if (property == null) - throw new ArgumentNullException("property"); + throw new ArgumentNullException(nameof(property)); Bindings.Remove(property); Values[property] = value; diff --git a/src/Tizen.NUI/src/internal/XamlBinding/ElementTemplate.cs b/src/Tizen.NUI/src/internal/XamlBinding/ElementTemplate.cs index 34a8aa8..401862b 100755 --- a/src/Tizen.NUI/src/internal/XamlBinding/ElementTemplate.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/ElementTemplate.cs @@ -22,7 +22,7 @@ namespace Tizen.NUI.Binding internal ElementTemplate(Type type) : this() { if (type == null) - throw new ArgumentNullException("type"); + throw new ArgumentNullException(nameof(type)); _canRecycle = true; @@ -32,7 +32,7 @@ namespace Tizen.NUI.Binding internal ElementTemplate(Func loadTemplate) : this() { if (loadTemplate == null) - throw new ArgumentNullException("loadTemplate"); + throw new ArgumentNullException(nameof(loadTemplate)); LoadTemplate = loadTemplate; } diff --git a/src/Tizen.NUI/src/internal/XamlBinding/EnumerableExtensions.cs b/src/Tizen.NUI/src/internal/XamlBinding/EnumerableExtensions.cs index dd52ab0..399258a 100755 --- a/src/Tizen.NUI/src/internal/XamlBinding/EnumerableExtensions.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/EnumerableExtensions.cs @@ -44,7 +44,7 @@ namespace Tizen.NUI.Binding public static int IndexOf(this IEnumerable enumerable, T item) { if (enumerable == null) - throw new ArgumentNullException("enumerable"); + throw new ArgumentNullException(nameof(enumerable)); var i = 0; foreach (T element in enumerable) diff --git a/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/AttachedCollection.cs b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/AttachedCollection.cs index b1c5247..6fe8409 100755 --- a/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/AttachedCollection.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/AttachedCollection.cs @@ -23,7 +23,7 @@ namespace Tizen.NUI.Binding public void AttachTo(BindableObject bindable) { if (bindable == null) - throw new ArgumentNullException("bindable"); + throw new ArgumentNullException(nameof(bindable)); OnAttachedTo(bindable); } diff --git a/src/Tizen.NUI/src/internal/XamlBinding/MergedStyle.cs b/src/Tizen.NUI/src/internal/XamlBinding/MergedStyle.cs index 6358008..69d92a5 100755 --- a/src/Tizen.NUI/src/internal/XamlBinding/MergedStyle.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/MergedStyle.cs @@ -126,7 +126,7 @@ namespace Tizen.NUI.Binding { Type type = TargetType; while (true) { - BindableProperty implicitStyleProperty = BindableProperty.Create("ImplicitStyle", typeof(Style), typeof(View), default(Style), + BindableProperty implicitStyleProperty = BindableProperty.Create(nameof(ImplicitStyle), typeof(Style), typeof(View), default(Style), propertyChanged: (bindable, oldvalue, newvalue) => OnImplicitStyleChanged()); _implicitStyles.Add(implicitStyleProperty); Target.SetDynamicResource(implicitStyleProperty, type.FullName); diff --git a/src/Tizen.NUI/src/internal/XamlBinding/TemplateBinding.cs b/src/Tizen.NUI/src/internal/XamlBinding/TemplateBinding.cs index e970bbe..a67de0b 100755 --- a/src/Tizen.NUI/src/internal/XamlBinding/TemplateBinding.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/TemplateBinding.cs @@ -19,9 +19,9 @@ namespace Tizen.NUI.Binding public TemplateBinding(string path, BindingMode mode = BindingMode.Default, IValueConverter converter = null, object converterParameter = null, string stringFormat = null) { if (path == null) - throw new ArgumentNullException("path"); + throw new ArgumentNullException(nameof(path)); if (string.IsNullOrWhiteSpace(path)) - throw new ArgumentException("path can not be an empty string", "path"); + throw new ArgumentException("path can not be an empty string", nameof(path)); AllowChaining = true; Path = path; diff --git a/src/Tizen.NUI/src/internal/XamlBinding/TypeTypeConverter.cs b/src/Tizen.NUI/src/internal/XamlBinding/TypeTypeConverter.cs index fa8f392..94b17d4 100755 --- a/src/Tizen.NUI/src/internal/XamlBinding/TypeTypeConverter.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/TypeTypeConverter.cs @@ -17,7 +17,7 @@ namespace Tizen.NUI.Binding object IExtendedTypeConverter.ConvertFromInvariantString(string value, IServiceProvider serviceProvider) { if (serviceProvider == null) - throw new ArgumentNullException("serviceProvider"); + throw new ArgumentNullException(nameof(serviceProvider)); var typeResolver = serviceProvider.GetService(typeof(IXamlTypeResolver)) as IXamlTypeResolver; if (typeResolver == null) throw new ArgumentException("No IXamlTypeResolver in IServiceProvider"); diff --git a/src/Tizen.NUI/src/public/BaseComponents/CustomView.cs b/src/Tizen.NUI/src/public/BaseComponents/CustomView.cs index 9656e3e..994a668 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/CustomView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/CustomView.cs @@ -28,7 +28,7 @@ namespace Tizen.NUI.BaseComponents { /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty FocusNavigationSupportProperty = BindableProperty.Create("FocusNavigationSupport", typeof(bool), typeof(CustomView), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty FocusNavigationSupportProperty = BindableProperty.Create(nameof(FocusNavigationSupport), typeof(bool), typeof(CustomView), false, propertyChanged: (bindable, oldValue, newValue) => { var customView = (CustomView)bindable; if (newValue != null) @@ -44,7 +44,7 @@ namespace Tizen.NUI.BaseComponents /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty FocusGroupProperty = BindableProperty.Create("FocusGroup", typeof(bool), typeof(CustomView), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty FocusGroupProperty = BindableProperty.Create(nameof(FocusGroup), typeof(bool), typeof(CustomView), false, propertyChanged: (bindable, oldValue, newValue) => { var customView = (CustomView)bindable; if (newValue != null) diff --git a/src/Tizen.NUI/src/public/BaseComponents/FlexContainer.cs b/src/Tizen.NUI/src/public/BaseComponents/FlexContainer.cs index 9a873c0..c003fdf 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/FlexContainer.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/FlexContainer.cs @@ -32,7 +32,7 @@ namespace Tizen.NUI.BaseComponents { /// Property of ContentDirection [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ContentDirectionProperty = BindableProperty.Create("ContentDirection", typeof(ContentDirectionType), typeof(FlexContainer), ContentDirectionType.Inherit, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ContentDirectionProperty = BindableProperty.Create(nameof(ContentDirection), typeof(ContentDirectionType), typeof(FlexContainer), ContentDirectionType.Inherit, propertyChanged: (bindable, oldValue, newValue) => { var flexContainer = (FlexContainer)bindable; if (newValue != null) @@ -49,7 +49,7 @@ namespace Tizen.NUI.BaseComponents }); /// Property of FlexDirection [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty FlexDirectionProperty = BindableProperty.Create("FlexDirection", typeof(FlexDirectionType), typeof(FlexContainer), FlexDirectionType.Column, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty FlexDirectionProperty = BindableProperty.Create(nameof(FlexDirection), typeof(FlexDirectionType), typeof(FlexContainer), FlexDirectionType.Column, propertyChanged: (bindable, oldValue, newValue) => { var flexContainer = (FlexContainer)bindable; if (newValue != null) @@ -66,7 +66,7 @@ namespace Tizen.NUI.BaseComponents }); /// Property of FlexWrap [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty FlexWrapProperty = BindableProperty.Create("FlexWrap", typeof(WrapType), typeof(FlexContainer), WrapType.NoWrap, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty FlexWrapProperty = BindableProperty.Create(nameof(FlexWrap), typeof(WrapType), typeof(FlexContainer), WrapType.NoWrap, propertyChanged: (bindable, oldValue, newValue) => { var flexContainer = (FlexContainer)bindable; if (newValue != null) @@ -83,7 +83,7 @@ namespace Tizen.NUI.BaseComponents }); /// Property of JustifyContent [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty JustifyContentProperty = BindableProperty.Create("JustifyContent", typeof(Justification), typeof(FlexContainer), Justification.JustifyFlexStart, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty JustifyContentProperty = BindableProperty.Create(nameof(JustifyContent), typeof(Justification), typeof(FlexContainer), Justification.JustifyFlexStart, propertyChanged: (bindable, oldValue, newValue) => { var flexContainer = (FlexContainer)bindable; if (newValue != null) @@ -100,7 +100,7 @@ namespace Tizen.NUI.BaseComponents }); /// Property of AlignItems [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty AlignItemsProperty = BindableProperty.Create("AlignItems", typeof(Alignment), typeof(FlexContainer), Alignment.AlignAuto, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty AlignItemsProperty = BindableProperty.Create(nameof(AlignItems), typeof(Alignment), typeof(FlexContainer), Alignment.AlignAuto, propertyChanged: (bindable, oldValue, newValue) => { var flexContainer = (FlexContainer)bindable; if (newValue != null) @@ -117,7 +117,7 @@ namespace Tizen.NUI.BaseComponents }); /// Property of AlignContent [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty AlignContentProperty = BindableProperty.Create("AlignContent", typeof(Alignment), typeof(FlexContainer), Alignment.AlignAuto, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty AlignContentProperty = BindableProperty.Create(nameof(AlignContent), typeof(Alignment), typeof(FlexContainer), Alignment.AlignAuto, propertyChanged: (bindable, oldValue, newValue) => { var flexContainer = (FlexContainer)bindable; if (newValue != null) diff --git a/src/Tizen.NUI/src/public/BaseComponents/ImageView.cs b/src/Tizen.NUI/src/public/BaseComponents/ImageView.cs index 1bb9623..32ce06d 100644 --- a/src/Tizen.NUI/src/public/BaseComponents/ImageView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/ImageView.cs @@ -122,7 +122,7 @@ namespace Tizen.NUI.BaseComponents /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PreMultipliedAlphaProperty = BindableProperty.Create("PreMultipliedAlpha", typeof(bool), typeof(ImageView), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty PreMultipliedAlphaProperty = BindableProperty.Create(nameof(PreMultipliedAlpha), typeof(bool), typeof(ImageView), false, propertyChanged: (bindable, oldValue, newValue) => { var imageView = (ImageView)bindable; if (newValue != null) @@ -140,7 +140,7 @@ namespace Tizen.NUI.BaseComponents /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PixelAreaProperty = BindableProperty.Create("PixelArea", typeof(RelativeVector4), typeof(ImageView), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty PixelAreaProperty = BindableProperty.Create(nameof(PixelArea), typeof(RelativeVector4), typeof(ImageView), null, propertyChanged: (bindable, oldValue, newValue) => { var imageView = (ImageView)bindable; if (newValue != null) @@ -159,7 +159,7 @@ namespace Tizen.NUI.BaseComponents /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty BorderProperty = BindableProperty.Create("Border", typeof(Rectangle), typeof(ImageView), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty BorderProperty = BindableProperty.Create(nameof(Border), typeof(Rectangle), typeof(ImageView), null, propertyChanged: (bindable, oldValue, newValue) => { var imageView = (ImageView)bindable; if(newValue != null) @@ -176,7 +176,7 @@ namespace Tizen.NUI.BaseComponents /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty BorderOnlyProperty = BindableProperty.Create("BorderOnly", typeof(bool), typeof(ImageView), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty BorderOnlyProperty = BindableProperty.Create(nameof(BorderOnly), typeof(bool), typeof(ImageView), false, propertyChanged: (bindable, oldValue, newValue) => { var imageView = (ImageView)bindable; if (newValue != null) @@ -196,7 +196,7 @@ namespace Tizen.NUI.BaseComponents /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SynchronosLoadingProperty = BindableProperty.Create("SynchronosLoading", typeof(bool), typeof(ImageView), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty SynchronosLoadingProperty = BindableProperty.Create(nameof(SynchronosLoading), typeof(bool), typeof(ImageView), false, propertyChanged: (bindable, oldValue, newValue) => { var imageView = (ImageView)bindable; if (newValue != null) @@ -213,7 +213,7 @@ namespace Tizen.NUI.BaseComponents /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty OrientationCorrectionProperty = BindableProperty.Create("OrientationCorrection", typeof(bool), typeof(ImageView), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty OrientationCorrectionProperty = BindableProperty.Create(nameof(OrientationCorrection), typeof(bool), typeof(ImageView), false, propertyChanged: (bindable, oldValue, newValue) => { var imageView = (ImageView)bindable; if (newValue != null) diff --git a/src/Tizen.NUI/src/public/BaseComponents/Scrollable.cs b/src/Tizen.NUI/src/public/BaseComponents/Scrollable.cs index e68bb79..36982cf 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/Scrollable.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/Scrollable.cs @@ -30,7 +30,7 @@ namespace Tizen.NUI.BaseComponents { /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty OvershootEffectColorProperty = BindableProperty.Create("OvershootEffectColor", typeof(Vector4), typeof(Scrollable), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty OvershootEffectColorProperty = BindableProperty.Create(nameof(OvershootEffectColor), typeof(Vector4), typeof(Scrollable), null, propertyChanged: (bindable, oldValue, newValue) => { var scrollable = (Scrollable)bindable; if (newValue != null) @@ -47,7 +47,7 @@ namespace Tizen.NUI.BaseComponents }); /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty OvershootAnimationSpeedProperty = BindableProperty.Create("OvershootAnimationSpeed", typeof(float), typeof(Scrollable), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty OvershootAnimationSpeedProperty = BindableProperty.Create(nameof(OvershootAnimationSpeed), typeof(float), typeof(Scrollable), default(float), propertyChanged: (bindable, oldValue, newValue) => { var scrollable = (Scrollable)bindable; if (newValue != null) @@ -64,7 +64,7 @@ namespace Tizen.NUI.BaseComponents }); /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty OvershootEnabledProperty = BindableProperty.Create("OvershootEnabled", typeof(bool), typeof(Scrollable), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty OvershootEnabledProperty = BindableProperty.Create(nameof(OvershootEnabled), typeof(bool), typeof(Scrollable), false, propertyChanged: (bindable, oldValue, newValue) => { var scrollable = (Scrollable)bindable; if (newValue != null) @@ -81,7 +81,7 @@ namespace Tizen.NUI.BaseComponents }); /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty OvershootSizeProperty = BindableProperty.Create("OvershootSize", typeof(Vector2), typeof(Scrollable), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty OvershootSizeProperty = BindableProperty.Create(nameof(OvershootSize), typeof(Vector2), typeof(Scrollable), null, propertyChanged: (bindable, oldValue, newValue) => { var scrollable = (Scrollable)bindable; if (newValue != null) @@ -98,7 +98,7 @@ namespace Tizen.NUI.BaseComponents }); /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollToAlphaFunctionProperty = BindableProperty.Create("ScrollToAlphaFunction", typeof(int), typeof(Scrollable), default(int), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ScrollToAlphaFunctionProperty = BindableProperty.Create(nameof(ScrollToAlphaFunction), typeof(int), typeof(Scrollable), default(int), propertyChanged: (bindable, oldValue, newValue) => { var scrollable = (Scrollable)bindable; if (newValue != null) @@ -115,7 +115,7 @@ namespace Tizen.NUI.BaseComponents }); /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollRelativePositionProperty = BindableProperty.Create("ScrollRelativePosition", typeof(Vector2), typeof(Scrollable), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ScrollRelativePositionProperty = BindableProperty.Create(nameof(ScrollRelativePosition), typeof(Vector2), typeof(Scrollable), null, propertyChanged: (bindable, oldValue, newValue) => { var scrollable = (Scrollable)bindable; if (newValue != null) @@ -132,7 +132,7 @@ namespace Tizen.NUI.BaseComponents }); /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollPositionMinProperty = BindableProperty.Create("ScrollPositionMin", typeof(Vector2), typeof(Scrollable), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ScrollPositionMinProperty = BindableProperty.Create(nameof(ScrollPositionMin), typeof(Vector2), typeof(Scrollable), null, propertyChanged: (bindable, oldValue, newValue) => { var scrollable = (Scrollable)bindable; if (newValue != null) @@ -149,7 +149,7 @@ namespace Tizen.NUI.BaseComponents }); /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollPositionMaxProperty = BindableProperty.Create("ScrollPositionMax", typeof(Vector2), typeof(Scrollable), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ScrollPositionMaxProperty = BindableProperty.Create(nameof(ScrollPositionMax), typeof(Vector2), typeof(Scrollable), null, propertyChanged: (bindable, oldValue, newValue) => { var scrollable = (Scrollable)bindable; if (newValue != null) @@ -166,7 +166,7 @@ namespace Tizen.NUI.BaseComponents }); /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty CanScrollVerticalProperty = BindableProperty.Create("CanScrollVertical", typeof(bool), typeof(Scrollable), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty CanScrollVerticalProperty = BindableProperty.Create(nameof(CanScrollVertical), typeof(bool), typeof(Scrollable), false, propertyChanged: (bindable, oldValue, newValue) => { var scrollable = (Scrollable)bindable; if (newValue != null) @@ -183,7 +183,7 @@ namespace Tizen.NUI.BaseComponents }); /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty CanScrollHorizontalProperty = BindableProperty.Create("CanScrollHorizontal", typeof(bool), typeof(Scrollable), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty CanScrollHorizontalProperty = BindableProperty.Create(nameof(CanScrollHorizontal), typeof(bool), typeof(Scrollable), false, propertyChanged: (bindable, oldValue, newValue) => { var scrollable = (Scrollable)bindable; if (newValue != null) diff --git a/src/Tizen.NUI/src/public/BaseComponents/Style/ViewStyleBindableProperty.cs b/src/Tizen.NUI/src/public/BaseComponents/Style/ViewStyleBindableProperty.cs index 5146ba9..7faebd2 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/Style/ViewStyleBindableProperty.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/Style/ViewStyleBindableProperty.cs @@ -855,7 +855,7 @@ namespace Tizen.NUI.BaseComponents /// EnableControlState property /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty EnableControlStateProperty = BindableProperty.Create("EnableControlState", typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty EnableControlStateProperty = BindableProperty.Create(nameof(EnableControlState), typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) => { ((ViewStyle)bindable).enableControlState = (bool?)newValue; }, diff --git a/src/Tizen.NUI/src/public/BaseComponents/TableView.cs b/src/Tizen.NUI/src/public/BaseComponents/TableView.cs index bfd6b12..8fe2b10 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TableView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TableView.cs @@ -34,7 +34,7 @@ namespace Tizen.NUI.BaseComponents { /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty RowsProperty = BindableProperty.Create("Rows", typeof(int), typeof(TableView), default(int), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty RowsProperty = BindableProperty.Create(nameof(Rows), typeof(int), typeof(TableView), default(int), propertyChanged: (bindable, oldValue, newValue) => { var tableView = (TableView)bindable; if (newValue != null) @@ -51,7 +51,7 @@ namespace Tizen.NUI.BaseComponents }); /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ColumnsProperty = BindableProperty.Create("Columns", typeof(int), typeof(TableView), default(int), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ColumnsProperty = BindableProperty.Create(nameof(Columns), typeof(int), typeof(TableView), default(int), propertyChanged: (bindable, oldValue, newValue) => { var tableView = (TableView)bindable; if (newValue != null) @@ -68,7 +68,7 @@ namespace Tizen.NUI.BaseComponents }); /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty CellPaddingProperty = BindableProperty.Create("CellPadding", typeof(Vector2), typeof(TableView), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty CellPaddingProperty = BindableProperty.Create(nameof(CellPadding), typeof(Vector2), typeof(TableView), null, propertyChanged: (bindable, oldValue, newValue) => { var tableView = (TableView)bindable; if (newValue != null) @@ -85,7 +85,7 @@ namespace Tizen.NUI.BaseComponents }); /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LayoutRowsProperty = BindableProperty.Create("LayoutRows", typeof(PropertyMap), typeof(TableView), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty LayoutRowsProperty = BindableProperty.Create(nameof(LayoutRows), typeof(PropertyMap), typeof(TableView), null, propertyChanged: (bindable, oldValue, newValue) => { var tableView = (TableView)bindable; if (newValue != null) @@ -102,7 +102,7 @@ namespace Tizen.NUI.BaseComponents }); /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LayoutColumnsProperty = BindableProperty.Create("LayoutColumns", typeof(PropertyMap), typeof(TableView), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty LayoutColumnsProperty = BindableProperty.Create(nameof(LayoutColumns), typeof(PropertyMap), typeof(TableView), null, propertyChanged: (bindable, oldValue, newValue) => { var tableView = (TableView)bindable; if (newValue != null) diff --git a/src/Tizen.NUI/src/public/BaseComponents/VideoView.cs b/src/Tizen.NUI/src/public/BaseComponents/VideoView.cs index e2e3000..d082d6f 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/VideoView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/VideoView.cs @@ -29,7 +29,7 @@ namespace Tizen.NUI.BaseComponents { /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty VideoProperty = BindableProperty.Create("Video", typeof(PropertyMap), typeof(VideoView), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty VideoProperty = BindableProperty.Create(nameof(Video), typeof(PropertyMap), typeof(VideoView), null, propertyChanged: (bindable, oldValue, newValue) => { var videoView = (VideoView)bindable; if (newValue != null) @@ -46,7 +46,7 @@ namespace Tizen.NUI.BaseComponents }); /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LoopingProperty = BindableProperty.Create("Looping", typeof(bool), typeof(VideoView), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty LoopingProperty = BindableProperty.Create(nameof(Looping), typeof(bool), typeof(VideoView), false, propertyChanged: (bindable, oldValue, newValue) => { var videoView = (VideoView)bindable; if (newValue != null) @@ -63,7 +63,7 @@ namespace Tizen.NUI.BaseComponents }); /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty MutedProperty = BindableProperty.Create("Muted", typeof(bool), typeof(VideoView), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty MutedProperty = BindableProperty.Create(nameof(Muted), typeof(bool), typeof(VideoView), false, propertyChanged: (bindable, oldValue, newValue) => { var videoView = (VideoView)bindable; if (newValue != null) @@ -80,7 +80,7 @@ namespace Tizen.NUI.BaseComponents }); /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty VolumeProperty = BindableProperty.Create("Volume", typeof(PropertyMap), typeof(VideoView), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty VolumeProperty = BindableProperty.Create(nameof(Volume), typeof(PropertyMap), typeof(VideoView), null, propertyChanged: (bindable, oldValue, newValue) => { var videoView = (VideoView)bindable; if (newValue != null) @@ -97,7 +97,7 @@ namespace Tizen.NUI.BaseComponents }); /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty UnderlayProperty = BindableProperty.Create("Underlay", typeof(bool), typeof(VideoView), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty UnderlayProperty = BindableProperty.Create(nameof(Underlay), typeof(bool), typeof(VideoView), false, propertyChanged: (bindable, oldValue, newValue) => { var videoView = (VideoView)bindable; if (newValue != null) @@ -114,7 +114,7 @@ namespace Tizen.NUI.BaseComponents }); /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ResourceUrlProperty = BindableProperty.Create("ResourceUrl", typeof(string), typeof(VideoView), string.Empty, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ResourceUrlProperty = BindableProperty.Create(nameof(ResourceUrl), typeof(string), typeof(VideoView), string.Empty, propertyChanged: (bindable, oldValue, newValue) => { var videoView = (VideoView)bindable; if (newValue != null) diff --git a/src/Tizen.NUI/src/public/BaseComponents/ViewBindableProperty.cs b/src/Tizen.NUI/src/public/BaseComponents/ViewBindableProperty.cs index c1fda12..e35e2c2 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/ViewBindableProperty.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/ViewBindableProperty.cs @@ -30,7 +30,7 @@ namespace Tizen.NUI.BaseComponents /// StyleNameProperty (DALi json) /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty StyleNameProperty = BindableProperty.Create("StyleName", typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty StyleNameProperty = BindableProperty.Create(nameof(StyleName), typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -50,7 +50,7 @@ namespace Tizen.NUI.BaseComponents /// KeyInputFocusProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty KeyInputFocusProperty = BindableProperty.Create("KeyInputFocus", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty KeyInputFocusProperty = BindableProperty.Create(nameof(KeyInputFocus), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -70,7 +70,7 @@ namespace Tizen.NUI.BaseComponents /// BackgroundColorProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty BackgroundColorProperty = BindableProperty.Create("BackgroundColor", typeof(Color), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty BackgroundColorProperty = BindableProperty.Create(nameof(BackgroundColor), typeof(Color), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -110,7 +110,7 @@ namespace Tizen.NUI.BaseComponents /// ColorProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ColorProperty = BindableProperty.Create("Color", typeof(Color), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ColorProperty = BindableProperty.Create(nameof(Color), typeof(Color), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -128,7 +128,7 @@ namespace Tizen.NUI.BaseComponents /// BackgroundImageProperty [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty BackgroundImageProperty = BindableProperty.Create("BackgroundImage", typeof(string), typeof(View), default(string), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty BackgroundImageProperty = BindableProperty.Create(nameof(BackgroundImage), typeof(string), typeof(View), default(string), propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -227,7 +227,7 @@ namespace Tizen.NUI.BaseComponents /// BackgroundProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty BackgroundProperty = BindableProperty.Create("Background", typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty BackgroundProperty = BindableProperty.Create(nameof(Background), typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -249,7 +249,7 @@ namespace Tizen.NUI.BaseComponents /// StateProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty StateProperty = BindableProperty.Create("State", typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty StateProperty = BindableProperty.Create(nameof(State), typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -278,7 +278,7 @@ namespace Tizen.NUI.BaseComponents /// SubStateProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SubStateProperty = BindableProperty.Create("SubState", typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty SubStateProperty = BindableProperty.Create(nameof(SubState), typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; string valueToString = ""; @@ -303,7 +303,7 @@ namespace Tizen.NUI.BaseComponents /// TooltipProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TooltipProperty = BindableProperty.Create("Tooltip", typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty TooltipProperty = BindableProperty.Create(nameof(Tooltip), typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -323,7 +323,7 @@ namespace Tizen.NUI.BaseComponents /// FlexProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty FlexProperty = BindableProperty.Create("Flex", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty FlexProperty = BindableProperty.Create(nameof(Flex), typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -343,7 +343,7 @@ namespace Tizen.NUI.BaseComponents /// AlignSelfProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty AlignSelfProperty = BindableProperty.Create("AlignSelf", typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty AlignSelfProperty = BindableProperty.Create(nameof(AlignSelf), typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -363,7 +363,7 @@ namespace Tizen.NUI.BaseComponents /// FlexMarginProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty FlexMarginProperty = BindableProperty.Create("FlexMargin", typeof(Vector4), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty FlexMarginProperty = BindableProperty.Create(nameof(FlexMargin), typeof(Vector4), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -383,7 +383,7 @@ namespace Tizen.NUI.BaseComponents /// CellIndexProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty CellIndexProperty = BindableProperty.Create("CellIndex", typeof(Vector2), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty CellIndexProperty = BindableProperty.Create(nameof(CellIndex), typeof(Vector2), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -403,7 +403,7 @@ namespace Tizen.NUI.BaseComponents /// RowSpanProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty RowSpanProperty = BindableProperty.Create("RowSpan", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty RowSpanProperty = BindableProperty.Create(nameof(RowSpan), typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -423,7 +423,7 @@ namespace Tizen.NUI.BaseComponents /// ColumnSpanProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ColumnSpanProperty = BindableProperty.Create("ColumnSpan", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ColumnSpanProperty = BindableProperty.Create(nameof(ColumnSpan), typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -443,7 +443,7 @@ namespace Tizen.NUI.BaseComponents /// CellHorizontalAlignmentProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty CellHorizontalAlignmentProperty = BindableProperty.Create("CellHorizontalAlignment", typeof(HorizontalAlignmentType), typeof(View), HorizontalAlignmentType.Left, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty CellHorizontalAlignmentProperty = BindableProperty.Create(nameof(CellHorizontalAlignment), typeof(HorizontalAlignmentType), typeof(View), HorizontalAlignmentType.Left, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; string valueToString = ""; @@ -470,7 +470,7 @@ namespace Tizen.NUI.BaseComponents /// CellVerticalAlignmentProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty CellVerticalAlignmentProperty = BindableProperty.Create("CellVerticalAlignment", typeof(VerticalAlignmentType), typeof(View), VerticalAlignmentType.Top, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty CellVerticalAlignmentProperty = BindableProperty.Create(nameof(CellVerticalAlignment), typeof(VerticalAlignmentType), typeof(View), VerticalAlignmentType.Top, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; string valueToString = ""; @@ -498,7 +498,7 @@ namespace Tizen.NUI.BaseComponents /// This needs to be hidden as inhouse API until all applications using it have been updated. Do not make public. /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty WeightProperty = BindableProperty.Create("Weight", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty WeightProperty = BindableProperty.Create(nameof(Weight), typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -585,7 +585,7 @@ namespace Tizen.NUI.BaseComponents /// FocusableProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty FocusableProperty = BindableProperty.Create("Focusable", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty FocusableProperty = BindableProperty.Create(nameof(Focusable), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) { view.SetKeyboardFocusable((bool)newValue); } @@ -600,7 +600,7 @@ namespace Tizen.NUI.BaseComponents /// Size2DProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty Size2DProperty = BindableProperty.Create("Size2D", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty Size2DProperty = BindableProperty.Create(nameof(Size2D), typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -621,7 +621,7 @@ namespace Tizen.NUI.BaseComponents /// OpacityProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty OpacityProperty = BindableProperty.Create("Opacity", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty OpacityProperty = BindableProperty.Create(nameof(Opacity), typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; @@ -642,7 +642,7 @@ namespace Tizen.NUI.BaseComponents /// Position2DProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty Position2DProperty = BindableProperty.Create("Position2D", typeof(Position2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty Position2DProperty = BindableProperty.Create(nameof(Position2D), typeof(Position2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -662,7 +662,7 @@ namespace Tizen.NUI.BaseComponents /// PositionUsesPivotPointProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PositionUsesPivotPointProperty = BindableProperty.Create("PositionUsesPivotPoint", typeof(bool), typeof(View), true, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty PositionUsesPivotPointProperty = BindableProperty.Create(nameof(PositionUsesPivotPoint), typeof(bool), typeof(View), true, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -682,7 +682,7 @@ namespace Tizen.NUI.BaseComponents /// SiblingOrderProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SiblingOrderProperty = BindableProperty.Create("SiblingOrder", typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty SiblingOrderProperty = BindableProperty.Create(nameof(SiblingOrder), typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; int value; @@ -731,7 +731,7 @@ namespace Tizen.NUI.BaseComponents /// ParentOriginProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ParentOriginProperty = BindableProperty.Create("ParentOrigin", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ParentOriginProperty = BindableProperty.Create(nameof(ParentOrigin), typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -752,7 +752,7 @@ namespace Tizen.NUI.BaseComponents /// PivotPointProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PivotPointProperty = BindableProperty.Create("PivotPoint", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty PivotPointProperty = BindableProperty.Create(nameof(PivotPoint), typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -772,7 +772,7 @@ namespace Tizen.NUI.BaseComponents /// SizeWidthProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SizeWidthProperty = BindableProperty.Create("SizeWidth", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty SizeWidthProperty = BindableProperty.Create(nameof(SizeWidth), typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -793,7 +793,7 @@ namespace Tizen.NUI.BaseComponents /// SizeHeightProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SizeHeightProperty = BindableProperty.Create("SizeHeight", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty SizeHeightProperty = BindableProperty.Create(nameof(SizeHeight), typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -814,7 +814,7 @@ namespace Tizen.NUI.BaseComponents /// PositionProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PositionProperty = BindableProperty.Create("Position", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty PositionProperty = BindableProperty.Create(nameof(Position), typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -834,7 +834,7 @@ namespace Tizen.NUI.BaseComponents /// PositionXProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PositionXProperty = BindableProperty.Create("PositionX", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty PositionXProperty = BindableProperty.Create(nameof(PositionX), typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -854,7 +854,7 @@ namespace Tizen.NUI.BaseComponents /// PositionYProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PositionYProperty = BindableProperty.Create("PositionY", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty PositionYProperty = BindableProperty.Create(nameof(PositionY), typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -874,7 +874,7 @@ namespace Tizen.NUI.BaseComponents /// PositionZProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PositionZProperty = BindableProperty.Create("PositionZ", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty PositionZProperty = BindableProperty.Create(nameof(PositionZ), typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -894,7 +894,7 @@ namespace Tizen.NUI.BaseComponents /// OrientationProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty OrientationProperty = BindableProperty.Create("Orientation", typeof(Rotation), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty OrientationProperty = BindableProperty.Create(nameof(Orientation), typeof(Rotation), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -914,7 +914,7 @@ namespace Tizen.NUI.BaseComponents /// ScaleProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScaleProperty = BindableProperty.Create("Scale", typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ScaleProperty = BindableProperty.Create(nameof(Scale), typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -934,7 +934,7 @@ namespace Tizen.NUI.BaseComponents /// ScaleXProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScaleXProperty = BindableProperty.Create("ScaleX", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ScaleXProperty = BindableProperty.Create(nameof(ScaleX), typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -954,7 +954,7 @@ namespace Tizen.NUI.BaseComponents /// ScaleYProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScaleYProperty = BindableProperty.Create("ScaleY", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ScaleYProperty = BindableProperty.Create(nameof(ScaleY), typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -974,7 +974,7 @@ namespace Tizen.NUI.BaseComponents /// ScaleZProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScaleZProperty = BindableProperty.Create("ScaleZ", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ScaleZProperty = BindableProperty.Create(nameof(ScaleZ), typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -994,7 +994,7 @@ namespace Tizen.NUI.BaseComponents /// NameProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty NameProperty = BindableProperty.Create("Name", typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty NameProperty = BindableProperty.Create(nameof(Name), typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -1014,7 +1014,7 @@ namespace Tizen.NUI.BaseComponents /// SensitiveProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SensitiveProperty = BindableProperty.Create("Sensitive", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty SensitiveProperty = BindableProperty.Create(nameof(Sensitive), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -1034,7 +1034,7 @@ namespace Tizen.NUI.BaseComponents /// LeaveRequiredProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LeaveRequiredProperty = BindableProperty.Create("LeaveRequired", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty LeaveRequiredProperty = BindableProperty.Create(nameof(LeaveRequired), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -1054,7 +1054,7 @@ namespace Tizen.NUI.BaseComponents /// InheritOrientationProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InheritOrientationProperty = BindableProperty.Create("InheritOrientation", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty InheritOrientationProperty = BindableProperty.Create(nameof(InheritOrientation), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -1074,7 +1074,7 @@ namespace Tizen.NUI.BaseComponents /// InheritScaleProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InheritScaleProperty = BindableProperty.Create("InheritScale", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty InheritScaleProperty = BindableProperty.Create(nameof(InheritScale), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -1094,7 +1094,7 @@ namespace Tizen.NUI.BaseComponents /// DrawModeProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty DrawModeProperty = BindableProperty.Create("DrawMode", typeof(DrawModeType), typeof(View), DrawModeType.Normal, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty DrawModeProperty = BindableProperty.Create(nameof(DrawMode), typeof(DrawModeType), typeof(View), DrawModeType.Normal, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -1117,7 +1117,7 @@ namespace Tizen.NUI.BaseComponents /// SizeModeFactorProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SizeModeFactorProperty = BindableProperty.Create("SizeModeFactor", typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty SizeModeFactorProperty = BindableProperty.Create(nameof(SizeModeFactor), typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -1137,7 +1137,7 @@ namespace Tizen.NUI.BaseComponents /// WidthResizePolicyProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty WidthResizePolicyProperty = BindableProperty.Create("WidthResizePolicy", typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty WidthResizePolicyProperty = BindableProperty.Create(nameof(WidthResizePolicy), typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -1182,7 +1182,7 @@ namespace Tizen.NUI.BaseComponents /// HeightResizePolicyProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty HeightResizePolicyProperty = BindableProperty.Create("HeightResizePolicy", typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty HeightResizePolicyProperty = BindableProperty.Create(nameof(HeightResizePolicy), typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -1227,7 +1227,7 @@ namespace Tizen.NUI.BaseComponents /// SizeScalePolicyProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SizeScalePolicyProperty = BindableProperty.Create("SizeScalePolicy", typeof(SizeScalePolicyType), typeof(View), SizeScalePolicyType.UseSizeSet, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty SizeScalePolicyProperty = BindableProperty.Create(nameof(SizeScalePolicy), typeof(SizeScalePolicyType), typeof(View), SizeScalePolicyType.UseSizeSet, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; string valueToString = ""; @@ -1252,7 +1252,7 @@ namespace Tizen.NUI.BaseComponents /// WidthForHeightProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty WidthForHeightProperty = BindableProperty.Create("WidthForHeight", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty WidthForHeightProperty = BindableProperty.Create(nameof(WidthForHeight), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -1272,7 +1272,7 @@ namespace Tizen.NUI.BaseComponents /// HeightForWidthProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty HeightForWidthProperty = BindableProperty.Create("HeightForWidth", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty HeightForWidthProperty = BindableProperty.Create(nameof(HeightForWidth), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -1292,7 +1292,7 @@ namespace Tizen.NUI.BaseComponents /// PaddingProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PaddingProperty = BindableProperty.Create("Padding", typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty PaddingProperty = BindableProperty.Create(nameof(Padding), typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -1312,7 +1312,7 @@ namespace Tizen.NUI.BaseComponents /// SizeProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SizeProperty = BindableProperty.Create("Size", typeof(Size), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty SizeProperty = BindableProperty.Create(nameof(Size), typeof(Size), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -1337,7 +1337,7 @@ namespace Tizen.NUI.BaseComponents /// MinimumSizeProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty MinimumSizeProperty = BindableProperty.Create("MinimumSize", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty MinimumSizeProperty = BindableProperty.Create(nameof(MinimumSize), typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; Size2D temp = newValue as Size2D; @@ -1362,7 +1362,7 @@ namespace Tizen.NUI.BaseComponents /// MaximumSizeProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty MaximumSizeProperty = BindableProperty.Create("MaximumSize", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty MaximumSizeProperty = BindableProperty.Create(nameof(MaximumSize), typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; Size2D temp = newValue as Size2D; @@ -1387,7 +1387,7 @@ namespace Tizen.NUI.BaseComponents /// InheritPositionProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InheritPositionProperty = BindableProperty.Create("InheritPosition", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty InheritPositionProperty = BindableProperty.Create(nameof(InheritPosition), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -1407,7 +1407,7 @@ namespace Tizen.NUI.BaseComponents /// ClippingModeProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ClippingModeProperty = BindableProperty.Create("ClippingMode", typeof(ClippingModeType), typeof(View), ClippingModeType.Disabled, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ClippingModeProperty = BindableProperty.Create(nameof(ClippingMode), typeof(ClippingModeType), typeof(View), ClippingModeType.Disabled, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -1430,7 +1430,7 @@ namespace Tizen.NUI.BaseComponents /// InheritLayoutDirectionProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InheritLayoutDirectionProperty = BindableProperty.Create("InheritLayoutDirection", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty InheritLayoutDirectionProperty = BindableProperty.Create(nameof(InheritLayoutDirection), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -1450,7 +1450,7 @@ namespace Tizen.NUI.BaseComponents /// LayoutDirectionProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LayoutDirectionProperty = BindableProperty.Create("LayoutDirection", typeof(ViewLayoutDirectionType), typeof(View), ViewLayoutDirectionType.LTR, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty LayoutDirectionProperty = BindableProperty.Create(nameof(LayoutDirection), typeof(ViewLayoutDirectionType), typeof(View), ViewLayoutDirectionType.LTR, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -1473,7 +1473,7 @@ namespace Tizen.NUI.BaseComponents /// MarginProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty MarginProperty = BindableProperty.Create("Margin", typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty MarginProperty = BindableProperty.Create(nameof(Margin), typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -1493,7 +1493,7 @@ namespace Tizen.NUI.BaseComponents /// UpdateSizeHintProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty UpdateSizeHintProperty = BindableProperty.Create("UpdateSizeHint", typeof(Vector2), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty UpdateSizeHintProperty = BindableProperty.Create(nameof(UpdateSizeHint), typeof(Vector2), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => { var view = (View)bindable; if (newValue != null) @@ -1571,7 +1571,7 @@ namespace Tizen.NUI.BaseComponents /// XamlStyleProperty /// [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty XamlStyleProperty = BindableProperty.Create("XamlStyle", typeof(Style), typeof(View), default(Style), propertyChanged: (bindable, oldvalue, newvalue) => ((View)bindable)._mergedStyle.Style = (Style)newvalue); + public static readonly BindableProperty XamlStyleProperty = BindableProperty.Create(nameof(XamlStyle), typeof(Style), typeof(View), default(Style), propertyChanged: (bindable, oldvalue, newvalue) => ((View)bindable)._mergedStyle.Style = (Style)newvalue); /// /// EnableControlState property diff --git a/src/Tizen.NUI/src/public/NUIComponentApplication.cs b/src/Tizen.NUI/src/public/NUIComponentApplication.cs index 602bb54..318acfb1 100755 --- a/src/Tizen.NUI/src/public/NUIComponentApplication.cs +++ b/src/Tizen.NUI/src/public/NUIComponentApplication.cs @@ -74,7 +74,7 @@ namespace Tizen.NUI } else { - throw new ArgumentException("compType must be sub type of FrameComponent or ServiceComponent", "compType"); + throw new ArgumentException("compType must be sub type of FrameComponent or ServiceComponent", nameof(compType)); } } diff --git a/src/Tizen.NUI/src/public/UIComponents/Button.cs b/src/Tizen.NUI/src/public/UIComponents/Button.cs index 5754956..1db87c5 100755 --- a/src/Tizen.NUI/src/public/UIComponents/Button.cs +++ b/src/Tizen.NUI/src/public/UIComponents/Button.cs @@ -44,7 +44,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty UnselectedVisualProperty = BindableProperty.Create("UnselectedVisual", typeof(PropertyMap), typeof(Button), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty UnselectedVisualProperty = BindableProperty.Create(nameof(UnselectedVisual), typeof(PropertyMap), typeof(Button), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var button = (Button)bindable; if (newValue != null) @@ -62,7 +62,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SelectedVisualProperty = BindableProperty.Create("SelectedVisual", typeof(PropertyMap), typeof(Button), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty SelectedVisualProperty = BindableProperty.Create(nameof(SelectedVisual), typeof(PropertyMap), typeof(Button), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var button = (Button)bindable; if (newValue != null) @@ -80,7 +80,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty DisabledSelectedVisualProperty = BindableProperty.Create("DisabledSelectedVisual", typeof(PropertyMap), typeof(Button), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty DisabledSelectedVisualProperty = BindableProperty.Create(nameof(DisabledSelectedVisual), typeof(PropertyMap), typeof(Button), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var button = (Button)bindable; if (newValue != null) @@ -98,7 +98,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty DisabledUnselectedVisualProperty = BindableProperty.Create("DisabledUnselectedVisual", typeof(PropertyMap), typeof(Button), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty DisabledUnselectedVisualProperty = BindableProperty.Create(nameof(DisabledUnselectedVisual), typeof(PropertyMap), typeof(Button), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var button = (Button)bindable; if (newValue != null) @@ -116,7 +116,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty UnselectedBackgroundVisualProperty = BindableProperty.Create("UnselectedBackgroundVisual", typeof(PropertyMap), typeof(Button), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty UnselectedBackgroundVisualProperty = BindableProperty.Create(nameof(UnselectedBackgroundVisual), typeof(PropertyMap), typeof(Button), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var button = (Button)bindable; if (newValue != null) @@ -134,7 +134,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SelectedBackgroundVisualProperty = BindableProperty.Create("SelectedBackgroundVisual", typeof(PropertyMap), typeof(Button), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty SelectedBackgroundVisualProperty = BindableProperty.Create(nameof(SelectedBackgroundVisual), typeof(PropertyMap), typeof(Button), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var button = (Button)bindable; if (newValue != null) @@ -152,7 +152,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [EditorBrowsable(EditorBrowsableState.Never)] [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] - public static readonly BindableProperty DisabledUnselectedBackgroundVisualProperty = BindableProperty.Create("DisabledUnselectedBackgroundVisual", typeof(PropertyMap), typeof(Button), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty DisabledUnselectedBackgroundVisualProperty = BindableProperty.Create(nameof(DisabledUnselectedBackgroundVisual), typeof(PropertyMap), typeof(Button), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var button = (Button)bindable; if (newValue != null) @@ -170,7 +170,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty DisabledSelectedBackgroundVisualProperty = BindableProperty.Create("DisabledSelectedBackgroundVisual", typeof(PropertyMap), typeof(Button), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty DisabledSelectedBackgroundVisualProperty = BindableProperty.Create(nameof(DisabledSelectedBackgroundVisual), typeof(PropertyMap), typeof(Button), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var button = (Button)bindable; if (newValue != null) @@ -188,7 +188,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LabelRelativeAlignmentProperty = BindableProperty.Create("LabelRelativeAlignment", typeof(Align), typeof(Button), Align.End, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty LabelRelativeAlignmentProperty = BindableProperty.Create(nameof(LabelRelativeAlignment), typeof(Align), typeof(Button), Align.End, propertyChanged: (bindable, oldValue, newValue) => { var button = (Button)bindable; string valueToString = ""; @@ -225,7 +225,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LabelPaddingProperty = BindableProperty.Create("LabelPadding", typeof(Vector4), typeof(Button), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty LabelPaddingProperty = BindableProperty.Create(nameof(LabelPadding), typeof(Vector4), typeof(Button), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) => { var button = (Button)bindable; if (newValue != null) @@ -243,7 +243,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ForegroundVisualPaddingProperty = BindableProperty.Create("ForegroundVisualPadding", typeof(Vector4), typeof(Button), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ForegroundVisualPaddingProperty = BindableProperty.Create(nameof(ForegroundVisualPadding), typeof(Vector4), typeof(Button), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) => { var button = (Button)bindable; if (newValue != null) @@ -261,7 +261,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty AutoRepeatingProperty = BindableProperty.Create("AutoRepeating", typeof(bool), typeof(Button), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty AutoRepeatingProperty = BindableProperty.Create(nameof(AutoRepeating), typeof(bool), typeof(Button), false, propertyChanged: (bindable, oldValue, newValue) => { var button = (Button)bindable; if (newValue != null) @@ -279,7 +279,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InitialAutoRepeatingDelayProperty = BindableProperty.Create("InitialAutoRepeatingDelay", typeof(float), typeof(Button), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty InitialAutoRepeatingDelayProperty = BindableProperty.Create(nameof(InitialAutoRepeatingDelay), typeof(float), typeof(Button), default(float), propertyChanged: (bindable, oldValue, newValue) => { var button = (Button)bindable; if (newValue != null) @@ -297,7 +297,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty NextAutoRepeatingDelayProperty = BindableProperty.Create("NextAutoRepeatingDelay", typeof(float), typeof(Button), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty NextAutoRepeatingDelayProperty = BindableProperty.Create(nameof(NextAutoRepeatingDelay), typeof(float), typeof(Button), default(float), propertyChanged: (bindable, oldValue, newValue) => { var button = (Button)bindable; if (newValue != null) @@ -315,7 +315,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TogglableProperty = BindableProperty.Create("Togglable", typeof(bool), typeof(Button), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty TogglableProperty = BindableProperty.Create(nameof(Togglable), typeof(bool), typeof(Button), false, propertyChanged: (bindable, oldValue, newValue) => { var button = (Button)bindable; if (newValue != null) @@ -333,7 +333,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SelectedProperty = BindableProperty.Create("Selected", typeof(bool), typeof(Button), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty SelectedProperty = BindableProperty.Create(nameof(Selected), typeof(bool), typeof(Button), false, propertyChanged: (bindable, oldValue, newValue) => { var button = (Button)bindable; if (newValue != null) @@ -351,7 +351,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty UnselectedColorProperty = BindableProperty.Create("UnselectedColor", typeof(Color), typeof(Button), Color.Transparent, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty UnselectedColorProperty = BindableProperty.Create(nameof(UnselectedColor), typeof(Color), typeof(Button), Color.Transparent, propertyChanged: (bindable, oldValue, newValue) => { var button = (Button)bindable; if (newValue != null) @@ -375,7 +375,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SelectedColorProperty = BindableProperty.Create("SelectedColor", typeof(Color), typeof(Button), Color.Transparent, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty SelectedColorProperty = BindableProperty.Create(nameof(SelectedColor), typeof(Color), typeof(Button), Color.Transparent, propertyChanged: (bindable, oldValue, newValue) => { var button = (Button)bindable; if (newValue != null) @@ -399,7 +399,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LabelProperty = BindableProperty.Create("Label", typeof(PropertyMap), typeof(Button), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty LabelProperty = BindableProperty.Create(nameof(Label), typeof(PropertyMap), typeof(Button), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var button = (Button)bindable; if (newValue != null) @@ -417,7 +417,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LabelTextProperty = BindableProperty.Create("LabelText", typeof(string), typeof(Button), string.Empty, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty LabelTextProperty = BindableProperty.Create(nameof(LabelText), typeof(string), typeof(Button), string.Empty, propertyChanged: (bindable, oldValue, newValue) => { var button = (Button)bindable; if (newValue != null) diff --git a/src/Tizen.NUI/src/public/UIComponents/PopupBindableProperty.cs b/src/Tizen.NUI/src/public/UIComponents/PopupBindableProperty.cs index a8fa8de..984bbd8 100755 --- a/src/Tizen.NUI/src/public/UIComponents/PopupBindableProperty.cs +++ b/src/Tizen.NUI/src/public/UIComponents/PopupBindableProperty.cs @@ -9,7 +9,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TitleProperty = BindableProperty.Create("Title", typeof(PropertyMap), typeof(Popup), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty TitleProperty = BindableProperty.Create(nameof(Title), typeof(PropertyMap), typeof(Popup), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) @@ -27,7 +27,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ContentProperty = BindableProperty.Create("Content", typeof(PropertyMap), typeof(Popup), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ContentProperty = BindableProperty.Create(nameof(Content), typeof(PropertyMap), typeof(Popup), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) @@ -45,7 +45,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty FooterProperty = BindableProperty.Create("Footer", typeof(PropertyMap), typeof(Popup), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty FooterProperty = BindableProperty.Create(nameof(Footer), typeof(PropertyMap), typeof(Popup), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) @@ -63,7 +63,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty DisplayStateProperty = BindableProperty.Create("DisplayState", typeof(DisplayStateType), typeof(Popup), DisplayStateType.Hidden, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty DisplayStateProperty = BindableProperty.Create(nameof(DisplayState), typeof(DisplayStateType), typeof(Popup), DisplayStateType.Hidden, propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; string valueToString = ""; @@ -125,7 +125,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TouchTransparentProperty = BindableProperty.Create("TouchTransparent", typeof(bool), typeof(Popup), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty TouchTransparentProperty = BindableProperty.Create(nameof(TouchTransparent), typeof(bool), typeof(Popup), false, propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) @@ -143,7 +143,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TailVisibilityProperty = BindableProperty.Create("TailVisibility", typeof(bool), typeof(Popup), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty TailVisibilityProperty = BindableProperty.Create(nameof(TailVisibility), typeof(bool), typeof(Popup), false, propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) @@ -161,7 +161,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TailPositionProperty = BindableProperty.Create("TailPosition", typeof(Vector3), typeof(Popup), Vector3.Zero, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty TailPositionProperty = BindableProperty.Create(nameof(TailPosition), typeof(Vector3), typeof(Popup), Vector3.Zero, propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) @@ -179,7 +179,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ContextualModeProperty = BindableProperty.Create("ContextualMode", typeof(ContextualModeType), typeof(Popup), ContextualModeType.Below, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ContextualModeProperty = BindableProperty.Create(nameof(ContextualMode), typeof(ContextualModeType), typeof(Popup), ContextualModeType.Below, propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; string valueToString = ""; @@ -248,7 +248,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty AnimationDurationProperty = BindableProperty.Create("AnimationDuration", typeof(float), typeof(Popup), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty AnimationDurationProperty = BindableProperty.Create(nameof(AnimationDuration), typeof(float), typeof(Popup), default(float), propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) @@ -266,7 +266,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty AnimationModeProperty = BindableProperty.Create("AnimationMode", typeof(AnimationModeType), typeof(Popup), AnimationModeType.Fade, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty AnimationModeProperty = BindableProperty.Create(nameof(AnimationMode), typeof(AnimationModeType), typeof(Popup), AnimationModeType.Fade, propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; string valueToString = ""; @@ -328,7 +328,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty EntryAnimationProperty = BindableProperty.Create("EntryAnimation", typeof(PropertyMap), typeof(Popup), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty EntryAnimationProperty = BindableProperty.Create(nameof(EntryAnimation), typeof(PropertyMap), typeof(Popup), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) @@ -346,7 +346,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ExitAnimationProperty = BindableProperty.Create("ExitAnimation", typeof(PropertyMap), typeof(Popup), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ExitAnimationProperty = BindableProperty.Create(nameof(ExitAnimation), typeof(PropertyMap), typeof(Popup), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) @@ -364,7 +364,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty AutoHideDelayProperty = BindableProperty.Create("AutoHideDelay", typeof(int), typeof(Popup), default(int), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty AutoHideDelayProperty = BindableProperty.Create(nameof(AutoHideDelay), typeof(int), typeof(Popup), default(int), propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) @@ -382,7 +382,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty BackingEnabledProperty = BindableProperty.Create("BackingEnabled", typeof(bool), typeof(Popup), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty BackingEnabledProperty = BindableProperty.Create(nameof(BackingEnabled), typeof(bool), typeof(Popup), false, propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) @@ -400,7 +400,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty BackingColorProperty = BindableProperty.Create("BackingColor", typeof(Vector4), typeof(Popup), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty BackingColorProperty = BindableProperty.Create(nameof(BackingColor), typeof(Vector4), typeof(Popup), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) @@ -418,7 +418,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PopupBackgroundImageProperty = BindableProperty.Create("PopupBackgroundImage", typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty PopupBackgroundImageProperty = BindableProperty.Create(nameof(PopupBackgroundImage), typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) @@ -436,7 +436,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PopupBackgroundBorderProperty = BindableProperty.Create("PopupBackgroundBorder", typeof(Rectangle), typeof(Popup), new Rectangle(0, 0, 0, 0), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty PopupBackgroundBorderProperty = BindableProperty.Create(nameof(PopupBackgroundBorder), typeof(Rectangle), typeof(Popup), new Rectangle(0, 0, 0, 0), propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) @@ -454,7 +454,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TailUpImageProperty = BindableProperty.Create("TailUpImage", typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty TailUpImageProperty = BindableProperty.Create(nameof(TailUpImage), typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) @@ -472,7 +472,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TailDownImageProperty = BindableProperty.Create("TailDownImage", typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty TailDownImageProperty = BindableProperty.Create(nameof(TailDownImage), typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) @@ -490,7 +490,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TailLeftImageProperty = BindableProperty.Create("TailLeftImage", typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty TailLeftImageProperty = BindableProperty.Create(nameof(TailLeftImage), typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) @@ -508,7 +508,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TailRightImageProperty = BindableProperty.Create("TailRightImage", typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty TailRightImageProperty = BindableProperty.Create(nameof(TailRightImage), typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) diff --git a/src/Tizen.NUI/src/public/UIComponents/ProgressBar.cs b/src/Tizen.NUI/src/public/UIComponents/ProgressBar.cs index 6463841..947cf80 100755 --- a/src/Tizen.NUI/src/public/UIComponents/ProgressBar.cs +++ b/src/Tizen.NUI/src/public/UIComponents/ProgressBar.cs @@ -34,7 +34,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ProgressValueProperty = BindableProperty.Create("ProgressValue", typeof(float), typeof(ProgressBar), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ProgressValueProperty = BindableProperty.Create(nameof(ProgressValue), typeof(float), typeof(ProgressBar), default(float), propertyChanged: (bindable, oldValue, newValue) => { var progressBar = (ProgressBar)bindable; if (newValue != null) @@ -52,7 +52,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SecondaryProgressValueProperty = BindableProperty.Create("SecondaryProgressValue", typeof(float), typeof(ProgressBar), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty SecondaryProgressValueProperty = BindableProperty.Create(nameof(SecondaryProgressValue), typeof(float), typeof(ProgressBar), default(float), propertyChanged: (bindable, oldValue, newValue) => { var progressBar = (ProgressBar)bindable; if (newValue != null) @@ -70,7 +70,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty IndeterminateProperty = BindableProperty.Create("Indeterminate", typeof(bool), typeof(ProgressBar), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty IndeterminateProperty = BindableProperty.Create(nameof(Indeterminate), typeof(bool), typeof(ProgressBar), false, propertyChanged: (bindable, oldValue, newValue) => { var progressBar = (ProgressBar)bindable; if (newValue != null) @@ -88,7 +88,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TrackVisualProperty = BindableProperty.Create("TrackVisual", typeof(PropertyMap), typeof(ProgressBar), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty TrackVisualProperty = BindableProperty.Create(nameof(TrackVisual), typeof(PropertyMap), typeof(ProgressBar), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var progressBar = (ProgressBar)bindable; if (newValue != null) @@ -106,7 +106,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ProgressVisualProperty = BindableProperty.Create("ProgressVisual", typeof(PropertyMap), typeof(ProgressBar), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ProgressVisualProperty = BindableProperty.Create(nameof(ProgressVisual), typeof(PropertyMap), typeof(ProgressBar), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var progressBar = (ProgressBar)bindable; if (newValue != null) @@ -124,7 +124,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SecondaryProgressVisualProperty = BindableProperty.Create("SecondaryProgressVisual", typeof(PropertyMap), typeof(ProgressBar), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty SecondaryProgressVisualProperty = BindableProperty.Create(nameof(SecondaryProgressVisual), typeof(PropertyMap), typeof(ProgressBar), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var progressBar = (ProgressBar)bindable; if (newValue != null) @@ -142,7 +142,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty IndeterminateVisualProperty = BindableProperty.Create("IndeterminateVisual", typeof(PropertyMap), typeof(ProgressBar), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty IndeterminateVisualProperty = BindableProperty.Create(nameof(IndeterminateVisual), typeof(PropertyMap), typeof(ProgressBar), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var progressBar = (ProgressBar)bindable; if (newValue != null) @@ -160,7 +160,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty IndeterminateVisualAnimationProperty = BindableProperty.Create("IndeterminateVisualAnimation", typeof(PropertyArray), typeof(ProgressBar), new PropertyArray(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty IndeterminateVisualAnimationProperty = BindableProperty.Create(nameof(IndeterminateVisualAnimation), typeof(PropertyArray), typeof(ProgressBar), new PropertyArray(), propertyChanged: (bindable, oldValue, newValue) => { var progressBar = (ProgressBar)bindable; if (newValue != null) @@ -178,7 +178,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LabelVisualProperty = BindableProperty.Create("LabelVisual", typeof(PropertyMap), typeof(ProgressBar), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty LabelVisualProperty = BindableProperty.Create(nameof(LabelVisual), typeof(PropertyMap), typeof(ProgressBar), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var progressBar = (ProgressBar)bindable; if (newValue != null) diff --git a/src/Tizen.NUI/src/public/UIComponents/PushButton.cs b/src/Tizen.NUI/src/public/UIComponents/PushButton.cs index 6edefc7..98deac2 100755 --- a/src/Tizen.NUI/src/public/UIComponents/PushButton.cs +++ b/src/Tizen.NUI/src/public/UIComponents/PushButton.cs @@ -36,12 +36,12 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty CommandProperty = BindableProperty.Create("Command", typeof(ICommand), typeof(PushButton), null, + public static readonly BindableProperty CommandProperty = BindableProperty.Create(nameof(Command), typeof(ICommand), typeof(PushButton), null, BindingMode.OneWay, null, null, null, null, null as BindableProperty.CreateDefaultValueDelegate); /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty CommandParameterProperty = BindableProperty.Create("CommandParameter", typeof(object), typeof(PushButton), null, + public static readonly BindableProperty CommandParameterProperty = BindableProperty.Create(nameof(CommandParameter), typeof(object), typeof(PushButton), null, BindingMode.OneWay, null, null, null, null, null as BindableProperty.CreateDefaultValueDelegate); diff --git a/src/Tizen.NUI/src/public/UIComponents/ScrollBar.cs b/src/Tizen.NUI/src/public/UIComponents/ScrollBar.cs index 5be8619..ba0cc78 100755 --- a/src/Tizen.NUI/src/public/UIComponents/ScrollBar.cs +++ b/src/Tizen.NUI/src/public/UIComponents/ScrollBar.cs @@ -35,7 +35,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollDirectionProperty = BindableProperty.Create("ScrollDirection", typeof(Direction), typeof(ScrollBar), Direction.Vertical, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ScrollDirectionProperty = BindableProperty.Create(nameof(ScrollDirection), typeof(Direction), typeof(ScrollBar), Direction.Vertical, propertyChanged: (bindable, oldValue, newValue) => { var scrollBar = (ScrollBar)bindable; string valueToString = ""; @@ -69,7 +69,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty IndicatorHeightPolicyProperty = BindableProperty.Create("IndicatorHeightPolicy", typeof(IndicatorHeightPolicyType), typeof(ScrollBar), IndicatorHeightPolicyType.Variable, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty IndicatorHeightPolicyProperty = BindableProperty.Create(nameof(IndicatorHeightPolicy), typeof(IndicatorHeightPolicyType), typeof(ScrollBar), IndicatorHeightPolicyType.Variable, propertyChanged: (bindable, oldValue, newValue) => { var scrollBar = (ScrollBar)bindable; string valueToString = ""; @@ -103,7 +103,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty IndicatorFixedHeightProperty = BindableProperty.Create("IndicatorFixedHeight", typeof(float), typeof(ScrollBar), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty IndicatorFixedHeightProperty = BindableProperty.Create(nameof(IndicatorFixedHeight), typeof(float), typeof(ScrollBar), default(float), propertyChanged: (bindable, oldValue, newValue) => { var scrollBar = (ScrollBar)bindable; if (newValue != null) @@ -121,7 +121,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty IndicatorShowDurationProperty = BindableProperty.Create("IndicatorShowDuration", typeof(float), typeof(ScrollBar), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty IndicatorShowDurationProperty = BindableProperty.Create(nameof(IndicatorShowDuration), typeof(float), typeof(ScrollBar), default(float), propertyChanged: (bindable, oldValue, newValue) => { var scrollBar = (ScrollBar)bindable; if (newValue != null) @@ -139,7 +139,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty IndicatorHideDurationProperty = BindableProperty.Create("IndicatorHideDuration", typeof(float), typeof(ScrollBar), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty IndicatorHideDurationProperty = BindableProperty.Create(nameof(IndicatorHideDuration), typeof(float), typeof(ScrollBar), default(float), propertyChanged: (bindable, oldValue, newValue) => { var scrollBar = (ScrollBar)bindable; if (newValue != null) @@ -157,7 +157,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollPositionIntervalsProperty = BindableProperty.Create("ScrollPositionIntervals", typeof(PropertyArray), typeof(ScrollBar), new PropertyArray(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ScrollPositionIntervalsProperty = BindableProperty.Create(nameof(ScrollPositionIntervals), typeof(PropertyArray), typeof(ScrollBar), new PropertyArray(), propertyChanged: (bindable, oldValue, newValue) => { var scrollBar = (ScrollBar)bindable; if (newValue != null) @@ -175,7 +175,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty IndicatorMinimumHeightProperty = BindableProperty.Create("IndicatorMinimumHeight", typeof(float), typeof(ScrollBar), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty IndicatorMinimumHeightProperty = BindableProperty.Create(nameof(IndicatorMinimumHeight), typeof(float), typeof(ScrollBar), default(float), propertyChanged: (bindable, oldValue, newValue) => { var scrollBar = (ScrollBar)bindable; if (newValue != null) @@ -193,7 +193,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty IndicatorStartPaddingProperty = BindableProperty.Create("IndicatorStartPadding", typeof(float), typeof(ScrollBar), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty IndicatorStartPaddingProperty = BindableProperty.Create(nameof(IndicatorStartPadding), typeof(float), typeof(ScrollBar), default(float), propertyChanged: (bindable, oldValue, newValue) => { var scrollBar = (ScrollBar)bindable; if (newValue != null) @@ -211,7 +211,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty IndicatorEndPaddingProperty = BindableProperty.Create("IndicatorEndPadding", typeof(float), typeof(ScrollBar), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty IndicatorEndPaddingProperty = BindableProperty.Create(nameof(IndicatorEndPadding), typeof(float), typeof(ScrollBar), default(float), propertyChanged: (bindable, oldValue, newValue) => { var scrollBar = (ScrollBar)bindable; if (newValue != null) diff --git a/src/Tizen.NUI/src/public/UIComponents/ScrollViewBindableProperty.cs b/src/Tizen.NUI/src/public/UIComponents/ScrollViewBindableProperty.cs index 2d2190b..2c28332 100755 --- a/src/Tizen.NUI/src/public/UIComponents/ScrollViewBindableProperty.cs +++ b/src/Tizen.NUI/src/public/UIComponents/ScrollViewBindableProperty.cs @@ -30,7 +30,7 @@ namespace Tizen.NUI /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty WrapEnabledProperty = BindableProperty.Create("WrapEnabled", typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty WrapEnabledProperty = BindableProperty.Create(nameof(WrapEnabled), typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) => { var scrollView = (ScrollView)bindable; if (newValue != null) @@ -48,7 +48,7 @@ namespace Tizen.NUI /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PanningEnabledProperty = BindableProperty.Create("PanningEnabled", typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty PanningEnabledProperty = BindableProperty.Create(nameof(PanningEnabled), typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) => { var scrollView = (ScrollView)bindable; if (newValue != null) @@ -66,7 +66,7 @@ namespace Tizen.NUI /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty AxisAutoLockEnabledProperty = BindableProperty.Create("AxisAutoLockEnabled", typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty AxisAutoLockEnabledProperty = BindableProperty.Create(nameof(AxisAutoLockEnabled), typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) => { var scrollView = (ScrollView)bindable; if (newValue != null) @@ -84,7 +84,7 @@ namespace Tizen.NUI /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty WheelScrollDistanceStepProperty = BindableProperty.Create("WheelScrollDistanceStep", typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty WheelScrollDistanceStepProperty = BindableProperty.Create(nameof(WheelScrollDistanceStep), typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) => { var scrollView = (ScrollView)bindable; if (newValue != null) @@ -102,7 +102,7 @@ namespace Tizen.NUI /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollPositionProperty = BindableProperty.Create("ScrollPosition", typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ScrollPositionProperty = BindableProperty.Create(nameof(ScrollPosition), typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) => { var scrollView = (ScrollView)bindable; if (newValue != null) @@ -120,7 +120,7 @@ namespace Tizen.NUI /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollPrePositionProperty = BindableProperty.Create("ScrollPrePosition", typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ScrollPrePositionProperty = BindableProperty.Create(nameof(ScrollPrePosition), typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) => { var scrollView = (ScrollView)bindable; if (newValue != null) @@ -138,7 +138,7 @@ namespace Tizen.NUI /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollPrePositionMaxProperty = BindableProperty.Create("ScrollPrePositionMax", typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ScrollPrePositionMaxProperty = BindableProperty.Create(nameof(ScrollPrePositionMax), typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) => { var scrollView = (ScrollView)bindable; if (newValue != null) @@ -156,7 +156,7 @@ namespace Tizen.NUI /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty OvershootXProperty = BindableProperty.Create("OvershootX", typeof(float), typeof(ScrollView), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty OvershootXProperty = BindableProperty.Create(nameof(OvershootX), typeof(float), typeof(ScrollView), default(float), propertyChanged: (bindable, oldValue, newValue) => { var scrollView = (ScrollView)bindable; if (newValue != null) @@ -174,7 +174,7 @@ namespace Tizen.NUI /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty OvershootYProperty = BindableProperty.Create("OvershootY", typeof(float), typeof(ScrollView), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty OvershootYProperty = BindableProperty.Create(nameof(OvershootY), typeof(float), typeof(ScrollView), default(float), propertyChanged: (bindable, oldValue, newValue) => { var scrollView = (ScrollView)bindable; if (newValue != null) @@ -192,7 +192,7 @@ namespace Tizen.NUI /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollFinalProperty = BindableProperty.Create("ScrollFinal", typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ScrollFinalProperty = BindableProperty.Create(nameof(ScrollFinal), typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) => { var scrollView = (ScrollView)bindable; if (newValue != null) @@ -210,7 +210,7 @@ namespace Tizen.NUI /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty WrapProperty = BindableProperty.Create("Wrap", typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty WrapProperty = BindableProperty.Create(nameof(Wrap), typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) => { var scrollView = (ScrollView)bindable; if (newValue != null) @@ -228,7 +228,7 @@ namespace Tizen.NUI /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PanningProperty = BindableProperty.Create("Panning", typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty PanningProperty = BindableProperty.Create(nameof(Panning), typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) => { var scrollView = (ScrollView)bindable; if (newValue != null) @@ -246,7 +246,7 @@ namespace Tizen.NUI /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollingProperty = BindableProperty.Create("Scrolling", typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ScrollingProperty = BindableProperty.Create(nameof(Scrolling), typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) => { var scrollView = (ScrollView)bindable; if (newValue != null) @@ -264,7 +264,7 @@ namespace Tizen.NUI /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollDomainSizeProperty = BindableProperty.Create("ScrollDomainSize", typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ScrollDomainSizeProperty = BindableProperty.Create(nameof(ScrollDomainSize), typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) => { var scrollView = (ScrollView)bindable; if (newValue != null) @@ -282,7 +282,7 @@ namespace Tizen.NUI /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollDomainOffsetProperty = BindableProperty.Create("ScrollDomainOffset", typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ScrollDomainOffsetProperty = BindableProperty.Create(nameof(ScrollDomainOffset), typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) => { var scrollView = (ScrollView)bindable; if (newValue != null) @@ -300,7 +300,7 @@ namespace Tizen.NUI /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollPositionDeltaProperty = BindableProperty.Create("ScrollPositionDelta", typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ScrollPositionDeltaProperty = BindableProperty.Create(nameof(ScrollPositionDelta), typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) => { var scrollView = (ScrollView)bindable; if (newValue != null) @@ -318,7 +318,7 @@ namespace Tizen.NUI /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty StartPagePositionProperty = BindableProperty.Create("StartPagePosition", typeof(Vector3), typeof(ScrollView), Vector3.Zero, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty StartPagePositionProperty = BindableProperty.Create(nameof(StartPagePosition), typeof(Vector3), typeof(ScrollView), Vector3.Zero, propertyChanged: (bindable, oldValue, newValue) => { var scrollView = (ScrollView)bindable; if (newValue != null) @@ -336,7 +336,7 @@ namespace Tizen.NUI /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollModeProperty = BindableProperty.Create("ScrollMode", typeof(PropertyMap), typeof(ScrollView), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ScrollModeProperty = BindableProperty.Create(nameof(ScrollMode), typeof(PropertyMap), typeof(ScrollView), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var scrollView = (ScrollView)bindable; if (newValue != null) diff --git a/src/Tizen.NUI/src/public/UIComponents/Slider.cs b/src/Tizen.NUI/src/public/UIComponents/Slider.cs index 480c798..901dd96 100755 --- a/src/Tizen.NUI/src/public/UIComponents/Slider.cs +++ b/src/Tizen.NUI/src/public/UIComponents/Slider.cs @@ -35,7 +35,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LowerBoundProperty = BindableProperty.Create("LowerBound", typeof(float), typeof(Slider), 0.0f, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty LowerBoundProperty = BindableProperty.Create(nameof(LowerBound), typeof(float), typeof(Slider), 0.0f, propertyChanged: (bindable, oldValue, newValue) => { var slider = (Slider)bindable; if (newValue != null) @@ -53,7 +53,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty UpperBoundProperty = BindableProperty.Create("UpperBound", typeof(float), typeof(Slider), 1.0f, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty UpperBoundProperty = BindableProperty.Create(nameof(UpperBound), typeof(float), typeof(Slider), 1.0f, propertyChanged: (bindable, oldValue, newValue) => { var slider = (Slider)bindable; if (newValue != null) @@ -71,7 +71,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ValueProperty = BindableProperty.Create("Value", typeof(float), typeof(Slider), default(float), BindingMode.TwoWay, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ValueProperty = BindableProperty.Create(nameof(Value), typeof(float), typeof(Slider), default(float), BindingMode.TwoWay, propertyChanged: (bindable, oldValue, newValue) => { var slider = (Slider)bindable; if (newValue != null) @@ -89,7 +89,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TrackVisualProperty = BindableProperty.Create("TrackVisual", typeof(PropertyMap), typeof(Slider), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty TrackVisualProperty = BindableProperty.Create(nameof(TrackVisual), typeof(PropertyMap), typeof(Slider), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var slider = (Slider)bindable; if (newValue != null) @@ -107,7 +107,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty HandleVisualProperty = BindableProperty.Create("HandleVisual", typeof(PropertyMap), typeof(Slider), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty HandleVisualProperty = BindableProperty.Create(nameof(HandleVisual), typeof(PropertyMap), typeof(Slider), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var slider = (Slider)bindable; if (newValue != null) @@ -125,7 +125,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ProgressVisualProperty = BindableProperty.Create("ProgressVisual", typeof(PropertyMap), typeof(Slider), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ProgressVisualProperty = BindableProperty.Create(nameof(ProgressVisual), typeof(PropertyMap), typeof(Slider), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var slider = (Slider)bindable; if (newValue != null) @@ -143,7 +143,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PopupVisualProperty = BindableProperty.Create("PopupVisual", typeof(PropertyMap), typeof(Slider), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty PopupVisualProperty = BindableProperty.Create(nameof(PopupVisual), typeof(PropertyMap), typeof(Slider), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var slider = (Slider)bindable; if (newValue != null) @@ -161,7 +161,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PopupArrowVisualProperty = BindableProperty.Create("PopupArrowVisual", typeof(PropertyMap), typeof(Slider), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty PopupArrowVisualProperty = BindableProperty.Create(nameof(PopupArrowVisual), typeof(PropertyMap), typeof(Slider), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var slider = (Slider)bindable; if (newValue != null) @@ -179,7 +179,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty DisabledColorProperty = BindableProperty.Create("DisabledColor", typeof(Vector4), typeof(Slider), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty DisabledColorProperty = BindableProperty.Create(nameof(DisabledColor), typeof(Vector4), typeof(Slider), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) => { var slider = (Slider)bindable; if (newValue != null) @@ -197,7 +197,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ValuePrecisionProperty = BindableProperty.Create("ValuePrecision", typeof(int), typeof(Slider), default(int), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ValuePrecisionProperty = BindableProperty.Create(nameof(ValuePrecision), typeof(int), typeof(Slider), default(int), propertyChanged: (bindable, oldValue, newValue) => { var slider = (Slider)bindable; if (newValue != null) @@ -215,7 +215,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ShowPopupProperty = BindableProperty.Create("ShowPopup", typeof(bool), typeof(Slider), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ShowPopupProperty = BindableProperty.Create(nameof(ShowPopup), typeof(bool), typeof(Slider), false, propertyChanged: (bindable, oldValue, newValue) => { var slider = (Slider)bindable; if (newValue != null) @@ -233,7 +233,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ShowValueProperty = BindableProperty.Create("ShowValue", typeof(bool), typeof(Slider), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty ShowValueProperty = BindableProperty.Create(nameof(ShowValue), typeof(bool), typeof(Slider), false, propertyChanged: (bindable, oldValue, newValue) => { var slider = (Slider)bindable; if (newValue != null) @@ -251,7 +251,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty MarksProperty = BindableProperty.Create("Marks", typeof(PropertyArray), typeof(Slider), new PropertyArray(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty MarksProperty = BindableProperty.Create(nameof(Marks), typeof(PropertyArray), typeof(Slider), new PropertyArray(), propertyChanged: (bindable, oldValue, newValue) => { var slider = (Slider)bindable; if (newValue != null) @@ -269,7 +269,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty MarkToleranceProperty = BindableProperty.Create("MarkTolerance", typeof(float), typeof(Slider), default(float), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty MarkToleranceProperty = BindableProperty.Create(nameof(MarkTolerance), typeof(float), typeof(Slider), default(float), propertyChanged: (bindable, oldValue, newValue) => { var slider = (Slider)bindable; if (newValue != null) @@ -287,7 +287,7 @@ namespace Tizen.NUI.UIComponents /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SnapToMarksProperty = BindableProperty.Create("SnapToMarks", typeof(bool), typeof(Slider), false, propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty SnapToMarksProperty = BindableProperty.Create(nameof(SnapToMarks), typeof(bool), typeof(Slider), false, propertyChanged: (bindable, oldValue, newValue) => { var slider = (Slider)bindable; if (newValue != null) diff --git a/src/Tizen.NUI/src/public/UIComponents/ToggleButton.cs b/src/Tizen.NUI/src/public/UIComponents/ToggleButton.cs index 5b09b39..e18792b 100755 --- a/src/Tizen.NUI/src/public/UIComponents/ToggleButton.cs +++ b/src/Tizen.NUI/src/public/UIComponents/ToggleButton.cs @@ -32,7 +32,7 @@ namespace Tizen.NUI /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty StateVisualsProperty = BindableProperty.Create("StateVisuals", typeof(PropertyArray), typeof(ToggleButton), new PropertyArray(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty StateVisualsProperty = BindableProperty.Create(nameof(StateVisuals), typeof(PropertyArray), typeof(ToggleButton), new PropertyArray(), propertyChanged: (bindable, oldValue, newValue) => { var toggleButton = (ToggleButton)bindable; if (newValue != null) @@ -52,7 +52,7 @@ namespace Tizen.NUI /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TooltipsProperty = BindableProperty.Create("Tooltips", typeof(PropertyArray), typeof(ToggleButton), new PropertyArray(), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty TooltipsProperty = BindableProperty.Create(nameof(Tooltips), typeof(PropertyArray), typeof(ToggleButton), new PropertyArray(), propertyChanged: (bindable, oldValue, newValue) => { var toggleButton = (ToggleButton)bindable; if (newValue != null) @@ -71,7 +71,7 @@ namespace Tizen.NUI /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty CurrentStateIndexProperty = BindableProperty.Create("CurrentStateIndex", typeof(int), typeof(ToggleButton), default(int), propertyChanged: (bindable, oldValue, newValue) => + public static readonly BindableProperty CurrentStateIndexProperty = BindableProperty.Create(nameof(CurrentStateIndex), typeof(int), typeof(ToggleButton), default(int), propertyChanged: (bindable, oldValue, newValue) => { var toggleButton = (ToggleButton)bindable; if (newValue != null) diff --git a/src/Tizen.NUI/src/public/XamlBinding/BindableObject.cs b/src/Tizen.NUI/src/public/XamlBinding/BindableObject.cs index ab8b317..26c66f7 100755 --- a/src/Tizen.NUI/src/public/XamlBinding/BindableObject.cs +++ b/src/Tizen.NUI/src/public/XamlBinding/BindableObject.cs @@ -19,7 +19,7 @@ namespace Tizen.NUI.Binding /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty BindingContextProperty = - BindableProperty.Create("BindingContext", typeof(object), typeof(BindableObject), default(object), + BindableProperty.Create(nameof(BindingContext), typeof(object), typeof(BindableObject), default(object), BindingMode.OneWay, null, BindingContextPropertyChanged, null, null, BindingContextPropertyBindingChanging); readonly List _properties = new List(4); @@ -113,7 +113,7 @@ namespace Tizen.NUI.Binding internal void ClearValue(BindablePropertyKey propertyKey) { if (propertyKey == null) - throw new ArgumentNullException("propertyKey"); + throw new ArgumentNullException(nameof(propertyKey)); ClearValue(propertyKey.BindableProperty, fromStyle:false, checkAccess: false); } @@ -143,7 +143,7 @@ namespace Tizen.NUI.Binding public object GetValue(BindableProperty property) { if (property == null) - throw new ArgumentNullException("property"); + throw new ArgumentNullException(nameof(property)); BindablePropertyContext context = property.DefaultValueCreator != null ? GetOrCreateContext(property) : GetContext(property); @@ -167,7 +167,7 @@ namespace Tizen.NUI.Binding internal void RemoveBinding(BindableProperty property) { if (property == null) - throw new ArgumentNullException("property"); + throw new ArgumentNullException(nameof(property)); BindablePropertyContext context = GetContext(property); if (context == null || context.Binding == null) @@ -227,7 +227,7 @@ namespace Tizen.NUI.Binding internal void SetValueAndForceSendChangeSignal(BindableProperty property, object value) { if (property == null) - throw new ArgumentNullException("property"); + throw new ArgumentNullException(nameof(property)); if (true == isCreateByXaml) { @@ -253,7 +253,7 @@ namespace Tizen.NUI.Binding public void SetValue(BindablePropertyKey propertyKey, object value) { if (propertyKey == null) - throw new ArgumentNullException("propertyKey"); + throw new ArgumentNullException(nameof(propertyKey)); SetValue(propertyKey.BindableProperty, value, false, false); } @@ -349,7 +349,7 @@ namespace Tizen.NUI.Binding internal bool GetIsBound(BindableProperty targetProperty) { if (targetProperty == null) - throw new ArgumentNullException("targetProperty"); + throw new ArgumentNullException(nameof(targetProperty)); BindablePropertyContext bpcontext = GetContext(targetProperty); return bpcontext != null && bpcontext.Binding != null; @@ -471,7 +471,7 @@ namespace Tizen.NUI.Binding internal void RemoveDynamicResource(BindableProperty property) { if (property == null) - throw new ArgumentNullException("property"); + throw new ArgumentNullException(nameof(property)); OnRemoveDynamicResource(property); BindablePropertyContext context = GetOrCreateContext(property); @@ -481,9 +481,9 @@ namespace Tizen.NUI.Binding internal void SetBinding(BindableProperty targetProperty, BindingBase binding, bool fromStyle) { if (targetProperty == null) - throw new ArgumentNullException("targetProperty"); + throw new ArgumentNullException(nameof(targetProperty)); if (binding == null) - throw new ArgumentNullException("binding"); + throw new ArgumentNullException(nameof(binding)); if (fromStyle && !CanBeSetFromStyle(targetProperty)) return; @@ -575,7 +575,7 @@ namespace Tizen.NUI.Binding bool converted = (privateAttributes & SetValuePrivateFlags.Converted) != 0; if (property == null) - throw new ArgumentNullException("property"); + throw new ArgumentNullException(nameof(property)); if (checkAccess && property.IsReadOnly) { Debug.WriteLine("Can not set the BindableProperty \"{0}\" because it is readonly.", property.PropertyName); @@ -589,7 +589,7 @@ namespace Tizen.NUI.Binding } if (property.ValidateValue != null && !property.ValidateValue(this, value)) - throw new ArgumentException("Value was an invalid value for " + property.PropertyName, "value"); + throw new ArgumentException("Value was an invalid value for " + property.PropertyName, nameof(value)); if (property.CoerceValue != null) value = property.CoerceValue(this, value); @@ -770,7 +770,7 @@ namespace Tizen.NUI.Binding void SetValue(BindableProperty property, object value, bool fromStyle, bool checkAccess) { if (property == null) - throw new ArgumentNullException("property"); + throw new ArgumentNullException(nameof(property)); if (checkAccess && property.IsReadOnly) throw new InvalidOperationException(string.Format("The BindableProperty \"{0}\" is readonly.", property.PropertyName)); diff --git a/src/Tizen.NUI/src/public/XamlBinding/BindableObjectExtensions.cs b/src/Tizen.NUI/src/public/XamlBinding/BindableObjectExtensions.cs index 3c9023d..53191c0 100755 --- a/src/Tizen.NUI/src/public/XamlBinding/BindableObjectExtensions.cs +++ b/src/Tizen.NUI/src/public/XamlBinding/BindableObjectExtensions.cs @@ -14,9 +14,9 @@ namespace Tizen.NUI.Binding string stringFormat = null) { if (self == null) - throw new ArgumentNullException("self"); + throw new ArgumentNullException(nameof(self)); if (targetProperty == null) - throw new ArgumentNullException("targetProperty"); + throw new ArgumentNullException(nameof(targetProperty)); var binding = new Binding(path, mode, converter, stringFormat: stringFormat); self.SetBinding(targetProperty, binding); @@ -29,11 +29,11 @@ namespace Tizen.NUI.Binding IValueConverter converter = null, string stringFormat = null) { if (self == null) - throw new ArgumentNullException("self"); + throw new ArgumentNullException(nameof(self)); if (targetProperty == null) - throw new ArgumentNullException("targetProperty"); + throw new ArgumentNullException(nameof(targetProperty)); if (sourceProperty == null) - throw new ArgumentNullException("sourceProperty"); + throw new ArgumentNullException(nameof(sourceProperty)); Binding binding = Binding.Create(sourceProperty, mode, converter, stringFormat: stringFormat); self.SetBinding(targetProperty, binding); diff --git a/src/Tizen.NUI/src/public/XamlBinding/BindableProperty.cs b/src/Tizen.NUI/src/public/XamlBinding/BindableProperty.cs index 3637fea..a58381c 100755 --- a/src/Tizen.NUI/src/public/XamlBinding/BindableProperty.cs +++ b/src/Tizen.NUI/src/public/XamlBinding/BindableProperty.cs @@ -150,19 +150,19 @@ namespace Tizen.NUI.Binding CoerceValueDelegate coerceValue = null, BindablePropertyBindingChanging bindingChanging = null, bool isReadOnly = false, CreateDefaultValueDelegate defaultValueCreator = null) { if (propertyName == null) - throw new ArgumentNullException("propertyName"); + throw new ArgumentNullException(nameof(propertyName)); if (ReferenceEquals(returnType, null)) - throw new ArgumentNullException("returnType"); + throw new ArgumentNullException(nameof(returnType)); if (ReferenceEquals(declaringType, null)) - throw new ArgumentNullException("declaringType"); + throw new ArgumentNullException(nameof(declaringType)); // don't use Enum.IsDefined as its redonkulously expensive for what it does if (defaultBindingMode != BindingMode.Default && defaultBindingMode != BindingMode.OneWay && defaultBindingMode != BindingMode.OneWayToSource && defaultBindingMode != BindingMode.TwoWay && defaultBindingMode != BindingMode.OneTime) - throw new ArgumentException("Not a valid type of BindingMode", "defaultBindingMode"); + throw new ArgumentException("Not a valid type of BindingMode", nameof(defaultBindingMode)); if (defaultValue == null && Nullable.GetUnderlyingType(returnType) == null && returnType.GetTypeInfo().IsValueType) - throw new ArgumentException("Not a valid default value", "defaultValue"); + throw new ArgumentException("Not a valid default value", nameof(defaultValue)); if (defaultValue != null && !returnType.IsInstanceOfType(defaultValue)) - throw new ArgumentException("Default value did not match return type", "defaultValue"); + throw new ArgumentException("Default value did not match return type", nameof(defaultValue)); if (defaultBindingMode == BindingMode.Default) defaultBindingMode = BindingMode.OneWay; @@ -492,7 +492,7 @@ namespace Tizen.NUI.Binding CreateDefaultValueDelegate defaultValueCreator = null) where TDeclarer : BindableObject { if (getter == null) - throw new ArgumentNullException("getter"); + throw new ArgumentNullException(nameof(getter)); Expression expr = getter.Body; @@ -502,7 +502,7 @@ namespace Tizen.NUI.Binding var member = expr as MemberExpression; if (member == null) - throw new ArgumentException("getter must be a MemberExpression", "getter"); + throw new ArgumentException("getter must be a MemberExpression", nameof(getter)); var property = (PropertyInfo)member.Member; @@ -541,7 +541,7 @@ namespace Tizen.NUI.Binding CreateDefaultValueDelegate defaultValueCreator = null) { if (staticgetter == null) - throw new ArgumentNullException("staticgetter"); + throw new ArgumentNullException(nameof(staticgetter)); Expression expr = staticgetter.Body; @@ -551,11 +551,11 @@ namespace Tizen.NUI.Binding var methodcall = expr as MethodCallExpression; if (methodcall == null) - throw new ArgumentException("staticgetter must be a MethodCallExpression", "staticgetter"); + throw new ArgumentException("staticgetter must be a MethodCallExpression", nameof(staticgetter)); MethodInfo method = methodcall.Method; if (!method.Name.StartsWith("Get", StringComparison.Ordinal)) - throw new ArgumentException("staticgetter name must start with Get", "staticgetter"); + throw new ArgumentException("staticgetter name must start with Get", nameof(staticgetter)); string propertyname = method.Name.Substring(3); diff --git a/src/Tizen.NUI/src/public/XamlBinding/BindablePropertyKey.cs b/src/Tizen.NUI/src/public/XamlBinding/BindablePropertyKey.cs index 4ab8e4a..3794fc6 100755 --- a/src/Tizen.NUI/src/public/XamlBinding/BindablePropertyKey.cs +++ b/src/Tizen.NUI/src/public/XamlBinding/BindablePropertyKey.cs @@ -12,7 +12,7 @@ namespace Tizen.NUI.Binding internal BindablePropertyKey(BindableProperty property) { if (property == null) - throw new ArgumentNullException("property"); + throw new ArgumentNullException(nameof(property)); BindableProperty = property; } diff --git a/src/Tizen.NUI/src/public/XamlBinding/Binding.cs b/src/Tizen.NUI/src/public/XamlBinding/Binding.cs index 1697c0f..08b567a 100755 --- a/src/Tizen.NUI/src/public/XamlBinding/Binding.cs +++ b/src/Tizen.NUI/src/public/XamlBinding/Binding.cs @@ -34,9 +34,9 @@ namespace Tizen.NUI.Binding public Binding(string path, BindingMode mode = BindingMode.Default, IValueConverter converter = null, object converterParameter = null, string stringFormat = null, object source = null) { if (path == null) - throw new ArgumentNullException("path"); + throw new ArgumentNullException(nameof(path)); if (string.IsNullOrWhiteSpace(path)) - throw new ArgumentException("path can not be an empty string", "path"); + throw new ArgumentException("path can not be an empty string", nameof(path)); Path = path; Converter = converter; @@ -115,7 +115,7 @@ namespace Tizen.NUI.Binding string stringFormat = null) { if (propertyGetter == null) - throw new ArgumentNullException("propertyGetter"); + throw new ArgumentNullException(nameof(propertyGetter)); return new Binding(GetBindingPath(propertyGetter), mode, converter, converterParameter, stringFormat); } diff --git a/src/Tizen.NUI/src/public/XamlBinding/Element.cs b/src/Tizen.NUI/src/public/XamlBinding/Element.cs index 5e868ee..7796d1d 100755 --- a/src/Tizen.NUI/src/public/XamlBinding/Element.cs +++ b/src/Tizen.NUI/src/public/XamlBinding/Element.cs @@ -20,7 +20,7 @@ namespace Tizen.NUI.Binding /// /// Identifies the ClassId bindable property. /// - internal static readonly BindableProperty ClassIdProperty = BindableProperty.Create("ClassId", typeof(string), typeof(Tizen.NUI.BaseComponents.View), null); + internal static readonly BindableProperty ClassIdProperty = BindableProperty.Create(nameof(ClassId), typeof(string), typeof(Tizen.NUI.BaseComponents.View), null); string _automationId; diff --git a/src/Tizen.NUI/src/public/XamlBinding/ElementEventArgs.cs b/src/Tizen.NUI/src/public/XamlBinding/ElementEventArgs.cs index 35af51c..48e46c1 100755 --- a/src/Tizen.NUI/src/public/XamlBinding/ElementEventArgs.cs +++ b/src/Tizen.NUI/src/public/XamlBinding/ElementEventArgs.cs @@ -12,7 +12,7 @@ namespace Tizen.NUI.Binding public ElementEventArgs(Element element) { if (element == null) - throw new ArgumentNullException("element"); + throw new ArgumentNullException(nameof(element)); Element = element; } diff --git a/src/Tizen.NUI/src/public/XamlBinding/Interactivity/Behavior.cs b/src/Tizen.NUI/src/public/XamlBinding/Interactivity/Behavior.cs index a1a44c3..f40893e 100755 --- a/src/Tizen.NUI/src/public/XamlBinding/Interactivity/Behavior.cs +++ b/src/Tizen.NUI/src/public/XamlBinding/Interactivity/Behavior.cs @@ -11,7 +11,7 @@ namespace Tizen.NUI.Binding internal Behavior(Type associatedType) { if (associatedType == null) - throw new ArgumentNullException("associatedType"); + throw new ArgumentNullException(nameof(associatedType)); AssociatedType = associatedType; } @@ -22,7 +22,7 @@ namespace Tizen.NUI.Binding void IAttachedObject.AttachTo(BindableObject bindable) { if (bindable == null) - throw new ArgumentNullException("bindable"); + throw new ArgumentNullException(nameof(bindable)); if (!AssociatedType.IsInstanceOfType(bindable)) throw new InvalidOperationException("bindable not an instance of AssociatedType"); OnAttachedTo(bindable); diff --git a/src/Tizen.NUI/src/public/XamlBinding/Internals/NameScope.cs b/src/Tizen.NUI/src/public/XamlBinding/Internals/NameScope.cs index f6d57b3..69ef3f3 100755 --- a/src/Tizen.NUI/src/public/XamlBinding/Internals/NameScope.cs +++ b/src/Tizen.NUI/src/public/XamlBinding/Internals/NameScope.cs @@ -27,7 +27,7 @@ namespace Tizen.NUI.Binding.Internals void INameScope.RegisterName(string name, object scopedElement) { if (_names.ContainsKey(name)) - throw new ArgumentException("An element with the same key already exists in NameScope", "name"); + throw new ArgumentException("An element with the same key already exists in NameScope", nameof(name)); _names[name] = scopedElement; } diff --git a/src/Tizen.NUI/src/public/XamlBinding/Page.cs b/src/Tizen.NUI/src/public/XamlBinding/Page.cs index 0682ed7..366427e 100755 --- a/src/Tizen.NUI/src/public/XamlBinding/Page.cs +++ b/src/Tizen.NUI/src/public/XamlBinding/Page.cs @@ -55,12 +55,12 @@ namespace Tizen.NUI [EditorBrowsable(EditorBrowsableState.Never)] public const string ActionSheetSignalName = "NUI.ShowActionSheet"; - internal static readonly BindableProperty IgnoresContainerAreaProperty = BindableProperty.Create("IgnoresContainerArea", typeof(bool), typeof(Page), false); + internal static readonly BindableProperty IgnoresContainerAreaProperty = BindableProperty.Create(nameof(IgnoresContainerArea), typeof(bool), typeof(Page), false); /// /// Identifies the IsBusy property. /// - internal static readonly BindableProperty IsBusyProperty = BindableProperty.Create("IsBusy", typeof(bool), typeof(Page), false, propertyChanged: (bo, o, n) => ((Page)bo).OnPageBusyChanged()); + internal static readonly BindableProperty IsBusyProperty = BindableProperty.Create(nameof(IsBusy), typeof(bool), typeof(Page), false, propertyChanged: (bo, o, n) => ((Page)bo).OnPageBusyChanged()); Rectangle _containerArea; @@ -184,7 +184,7 @@ namespace Tizen.NUI public Task DisplayAlert(string title, string message, string accept, string cancel) { if (string.IsNullOrEmpty(cancel)) - throw new ArgumentNullException("cancel"); + throw new ArgumentNullException(nameof(cancel)); var args = new AlertArguments(title, message, accept, cancel); MessagingCenter.Send(this, AlertSignalName, args); diff --git a/src/Tizen.NUI/src/public/XamlBinding/Setter.cs b/src/Tizen.NUI/src/public/XamlBinding/Setter.cs index 5692984..6cb2383 100755 --- a/src/Tizen.NUI/src/public/XamlBinding/Setter.cs +++ b/src/Tizen.NUI/src/public/XamlBinding/Setter.cs @@ -50,7 +50,7 @@ namespace Tizen.NUI.Binding internal void Apply(BindableObject target, bool fromStyle = false) { if (target == null) - throw new ArgumentNullException("target"); + throw new ArgumentNullException(nameof(target)); if (Property == null) return; diff --git a/src/Tizen.NUI/src/public/XamlBinding/Style.cs b/src/Tizen.NUI/src/public/XamlBinding/Style.cs index e5841cb..b62114e 100755 --- a/src/Tizen.NUI/src/public/XamlBinding/Style.cs +++ b/src/Tizen.NUI/src/public/XamlBinding/Style.cs @@ -33,7 +33,7 @@ namespace Tizen.NUI.Binding public Style([TypeConverter(typeof(TypeTypeConverter))] [Parameter("TargetType")] Type targetType) { if (targetType == null) - throw new ArgumentNullException("targetType"); + throw new ArgumentNullException(nameof(targetType)); TargetType = targetType; Setters = new List(); diff --git a/src/Tizen.NUI/src/public/XamlBinding/TriggerAction.cs b/src/Tizen.NUI/src/public/XamlBinding/TriggerAction.cs index 1b5c861..451eb0f 100755 --- a/src/Tizen.NUI/src/public/XamlBinding/TriggerAction.cs +++ b/src/Tizen.NUI/src/public/XamlBinding/TriggerAction.cs @@ -11,7 +11,7 @@ namespace Tizen.NUI.Binding internal TriggerAction(Type associatedType) { if (associatedType == null) - throw new ArgumentNullException("associatedType"); + throw new ArgumentNullException(nameof(associatedType)); AssociatedType = associatedType; } diff --git a/src/Tizen.NUI/src/public/XamlBinding/TriggerBase.cs b/src/Tizen.NUI/src/public/XamlBinding/TriggerBase.cs index de86ef7..ef7e56f 100755 --- a/src/Tizen.NUI/src/public/XamlBinding/TriggerBase.cs +++ b/src/Tizen.NUI/src/public/XamlBinding/TriggerBase.cs @@ -16,7 +16,7 @@ namespace Tizen.NUI.Binding internal TriggerBase(Type targetType) { if (targetType == null) - throw new ArgumentNullException("targetType"); + throw new ArgumentNullException(nameof(targetType)); TargetType = targetType; EnterActions = new SealedList(); @@ -72,7 +72,7 @@ namespace Tizen.NUI.Binding IsSealed = true; if (bindable == null) - throw new ArgumentNullException("bindable"); + throw new ArgumentNullException(nameof(bindable)); if (!TargetType.IsInstanceOfType(bindable)) throw new InvalidOperationException("bindable not an instance of AssociatedType"); OnAttachedTo(bindable); @@ -81,7 +81,7 @@ namespace Tizen.NUI.Binding void IAttachedObject.DetachFrom(BindableObject bindable) { if (bindable == null) - throw new ArgumentNullException("bindable"); + throw new ArgumentNullException(nameof(bindable)); OnDetachingFrom(bindable); } -- 2.7.4