[NUI] Apply IsEnabled feature on Pickers.
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI.Components / Controls / DatePicker.cs
index bfbe1e7..a113da2 100755 (executable)
@@ -50,7 +50,7 @@ namespace Tizen.NUI.Components
     }
 
     /// <summary>
-    /// DatePicker is a class which provides a function that allows the user to select 
+    /// DatePicker is a class which provides a function that allows the user to select
     /// a date through a scrolling motion by expressing the specified value as a list.
     /// DatePicker expresses the current date using the locale information of the system.
     /// Year range is 1970~2038 (glibc time_t struct min, max value)
@@ -110,6 +110,16 @@ namespace Tizen.NUI.Components
             SetKeyboardNavigationSupport(true);
         }
 
+        /// <inheritdoc/>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        protected override void OnEnabled(bool enabled)
+        {
+            base.OnEnabled(enabled);
+
+            dayPicker.IsEnabled = enabled;
+            monthPicker.IsEnabled = enabled;
+            yearPicker.IsEnabled = enabled;
+        }
 
         /// <summary>
         /// Dispose DatePicker and all children on it.
@@ -237,7 +247,7 @@ namespace Tizen.NUI.Components
         }
 
         /// <summary>
-        /// ToDo : only key navigation is enabled, and value editing is added as an very simple operation. by toggling enter key, it switches edit mode. 
+        /// ToDo : only key navigation is enabled, and value editing is added as an very simple operation. by toggling enter key, it switches edit mode.
         /// ToDo : this should be fixed and changed properly by owner. (And UX SPEC should be referenced also)
         /// </summary>
         /// <param name="currentFocusedView"></param>