[NUI] Add bindable properties to Components.
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI.Components / Controls / AlertDialog.cs
index 9e3a600..216acbe 100755 (executable)
@@ -26,7 +26,7 @@ namespace Tizen.NUI.Components
     /// AlertDialog class shows a dialog with title, message and action buttons.
     /// </summary>
     /// <since_tizen> 9 </since_tizen>
-    public class AlertDialog : Control
+    public partial class AlertDialog : Control
     {
         private string title = null;
         private string message = null;
@@ -163,6 +163,18 @@ namespace Tizen.NUI.Components
         {
             get
             {
+                return GetValue(TitleProperty) as string;
+            }
+            set
+            {
+                SetValue(TitleProperty, value);
+                NotifyPropertyChanged();
+            }
+        }
+        private string InternalTitle
+        {
+            get
+            {
                 return title;
             }
             set
@@ -192,6 +204,18 @@ namespace Tizen.NUI.Components
         {
             get
             {
+                return GetValue(TitleContentProperty) as View;
+            }
+            set
+            {
+                SetValue(TitleContentProperty, value);
+                NotifyPropertyChanged();
+            }
+        }
+        private View InternalTitleContent
+        {
+            get
+            {
                 return titleContent;
             }
             set
@@ -231,6 +255,18 @@ namespace Tizen.NUI.Components
         {
             get
             {
+                return GetValue(MessageProperty) as string;
+            }
+            set
+            {
+                SetValue(MessageProperty, value);
+                NotifyPropertyChanged();
+            }
+        }
+        private string InternalMessage
+        {
+            get
+            {
                 return message;
             }
             set
@@ -260,6 +296,18 @@ namespace Tizen.NUI.Components
         {
             get
             {
+                return GetValue(ContentProperty) as View;
+            }
+            set
+            {
+                SetValue(ContentProperty, value);
+                NotifyPropertyChanged();
+            }
+        }
+        private View InternalContent
+        {
+            get
+            {
                 return content;
             }
             set
@@ -342,6 +390,18 @@ namespace Tizen.NUI.Components
         /// <since_tizen> 9 </since_tizen>
         public View ActionContent
         {
+            get
+            {
+                return GetValue(ActionContentProperty) as View;
+            }
+            set
+            {
+                SetValue(ActionContentProperty, value);
+                NotifyPropertyChanged();
+            }
+        }
+        private View InternalActionContent
+        {
              get
              {
                 return actionContent;