[NUI] Add IsEnabled binding property
authoreverLEEst(SangHyeon Lee) <sh10233.lee@samsung.com>
Tue, 13 May 2025 10:56:35 +0000 (19:56 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 14 May 2025 06:35:12 +0000 (15:35 +0900)
src/Tizen.NUI/src/devel/Binding/ViewBindings.cs

index d4bee36ef6b66bdcfdfef9e7dcd012943d5cfef7..8bec803cccac70841037c14b2ccc32476bbb17db 100644 (file)
@@ -14,7 +14,7 @@
  * limitations under the License.
  *
  */
+
 using System;
 using System.ComponentModel;
 using System.Collections.Generic;
@@ -51,6 +51,14 @@ namespace Tizen.NUI.Binding
         {
             Setter = (v, value) => v.SetBackgroundColor(value),
         };
+
+        /// <summary>
+        /// Gets the binding property for IsEnabled of a <see cref="View"/>.
+        /// </summary>
+        public static BindingProperty<View, bool> IsEnabledProperty { get; } = new BindingProperty<View, bool>
+        {
+            Setter = (v, value) => v.IsEnabled = value,
+        };
     }
 
     /// <summary>