Fix build error
authorANZ1217 <chihun.jeong@samsung.com>
Fri, 10 May 2024 09:24:29 +0000 (18:24 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Fri, 10 May 2024 11:04:32 +0000 (20:04 +0900)
src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs
src/Tizen.NUI/src/public/BaseComponents/TextLabelBindableProperty.cs

index 26f02fdef837caf6fe6a1c523b5de6ecd44e2d70..cfd872fb5d0608f2e05dd605e474716a035e857d 100755 (executable)
@@ -2436,11 +2436,11 @@ namespace Tizen.NUI.BaseComponents
         {
             get
             {
-                return (bool)GetValue(Cutout);
+                return (bool)GetValue(CutoutProperty);
             }
             set
             {
-                SetValue(Cutout, value);
+                SetValue(CutoutProperty, value);
                 NotifyPropertyChanged();
             }
         }
index 65069d3200fd9579c59bc145d7b473c9d1d66227..1a0842e31126dee1a9f282e47e3485ed79603c4e 100755 (executable)
@@ -935,20 +935,20 @@ namespace Tizen.NUI.BaseComponents
         /// CutoutProperty
         /// </summary>
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public static readonly BindableProperty CutoutProperty = BindableProperty.Create(nameof(Cutout), typeof(bool), typeof(TextLabel), false, propertyChanged: (bindable, oldValue, newValue) =>
+        public static readonly BindableProperty CutoutProperty = BindableProperty.Create(nameof(Cutout), typeof(bool), typeof(TextLabel), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
         {
-            var instance = (Tizen.NUI.BaseComponents.TextLabel)bindable;
+            var textLabel = (TextLabel)bindable;
             if (newValue != null)
             {
                 Object.InternalSetPropertyBool(textLabel.SwigCPtr, TextLabel.Property.Cutout, (bool)newValue);
             }
-        },
-        defaultValueCreator: (bindable) =>
+        }),
+        defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
         {
             var textLabel = (TextLabel)bindable;
 
             return Object.InternalGetPropertyBool(textLabel.SwigCPtr, TextLabel.Property.Cutout);
-        });
+        }));
 
         internal Selector<string> TranslatableTextSelector
         {