[NUI] Add bindable properties to Components.
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI.Components / Controls / RecyclerView / Item / DefaultLinearItem.cs
index 37918b9..5ee1797 100755 (executable)
@@ -25,7 +25,7 @@ namespace Tizen.NUI.Components
     /// DefaultLinearItem may contain text or an icon.
     /// </summary>
     [EditorBrowsable(EditorBrowsableState.Never)]
-    public class DefaultLinearItem : RecyclerViewItem
+    public partial class DefaultLinearItem : RecyclerViewItem
     {
         private View itemIcon;
         private TextLabel itemLabel;
@@ -72,6 +72,18 @@ namespace Tizen.NUI.Components
         {
             get
             {
+                return GetValue(IconProperty) as View;
+            }
+            set
+            {
+                SetValue(IconProperty, value);
+                NotifyPropertyChanged();
+            }
+        }
+        private View InternalIcon
+        {
+            get
+            {
                 if (itemIcon == null)
                 {
                     itemIcon = CreateIcon(ItemStyle?.Icon);
@@ -156,6 +168,18 @@ namespace Tizen.NUI.Components
         {
             get
             {
+                return GetValue(TextProperty) as string;
+            }
+            set
+            {
+                SetValue(TextProperty, value);
+                NotifyPropertyChanged();
+            }
+        }
+        private string InternalText
+        {
+            get
+            {
                 return Label.Text;
             }
             set
@@ -198,6 +222,18 @@ namespace Tizen.NUI.Components
         {
             get
             {
+                return GetValue(SubTextProperty) as string;
+            }
+            set
+            {
+                SetValue(SubTextProperty, value);
+                NotifyPropertyChanged();
+            }
+        }
+        private string InternalSubText
+        {
+            get
+            {
                 return SubLabel.Text;
             }
             set
@@ -214,6 +250,18 @@ namespace Tizen.NUI.Components
         {
             get
             {
+                return GetValue(ExtraProperty) as View;
+            }
+            set
+            {
+                SetValue(ExtraProperty, value);
+                NotifyPropertyChanged();
+            }
+        }
+        private View InternalExtra
+        {
+            get
+            {
                 if (itemExtra == null)
                 {
                     itemExtra = CreateIcon(ItemStyle?.Extra);