Release 4.0.0-preview1-00285
[platform/core/csapi/tizenfx.git] / src / ElmSharp.Wearable / ElmSharp.Wearable / MoreOption.cs
index 7f75cc1..7395c08 100644 (file)
@@ -5,14 +5,32 @@ using System.Linq;
 
 namespace ElmSharp.Wearable
 {
+    /// <summary>
+    /// The MoreOption is a widget composed of the toggle(cue button) and more option view, and MoreOption can change a visibility through the toggle.
+    /// Inherits Layout
+    /// </summary>
     public class MoreOption : Layout
     {
-
+        /// <summary>
+        /// Sets or gets the list of more option item
+        /// </summary>
         public IList<MoreOptionItem> Items { get; private set; }
 
+        /// <summary>
+        /// Selected will be triggered when the user selects an item.
+        /// </summary>
         public event EventHandler<MoreOptionItemEventArgs> Selected;
+        /// <summary>
+        /// Clicked will be triggered when the user selects the already selected item again or selects a selector.
+        /// </summary>
         public event EventHandler<MoreOptionItemEventArgs> Clicked;
+        /// <summary>
+        /// Opened will be triggered when more option view is shown.
+        /// </summary>
         public event EventHandler Opened;
+        /// <summary>
+        /// Closed will be triggered when more option view is hidden.
+        /// </summary>
         public event EventHandler Closed;
 
         SmartEvent<PointerEventArgs> _selectedEvent;
@@ -20,6 +38,10 @@ namespace ElmSharp.Wearable
         SmartEvent _openedEvent;
         SmartEvent _closedEvent;
 
+        /// <summary>
+        /// Creates and initializes a new instance of MoreOption class.
+        /// </summary>
+        /// <param name="parent">The parent is a given container which will be attached by MoreOption as a child. It's <see cref="EvasObject"/> type.</param>
         public MoreOption(EvasObject parent) : base(parent)
         {
             Items = new MoreOptionList(this);
@@ -46,11 +68,19 @@ namespace ElmSharp.Wearable
 
         }
 
+        /// <summary>
+        /// Creates a widget handle.
+        /// </summary>
+        /// <param name="parent">Parent EvasObject</param>
+        /// <returns>Handle IntPtr</returns>
         protected override IntPtr CreateHandle(EvasObject parent)
         {
             return Interop.Eext.eext_more_option_add(parent);
         }
 
+        /// <summary>
+        /// Sets or gets the direction of more option.
+        /// </summary>
         public MoreOptionDirection Direction
         {
             get
@@ -65,6 +95,9 @@ namespace ElmSharp.Wearable
             }
         }
 
+        /// <summary>
+        /// Sets or gets the visibility of more option view.
+        /// </summary>
         public bool IsOpened
         {
             get
@@ -79,11 +112,26 @@ namespace ElmSharp.Wearable
         }
     }
 
+    /// <summary>
+    /// Enumeration for More Option Direction type.
+    /// </summary>
     public enum MoreOptionDirection
     {
+        /// <summary>
+        /// Top direction
+        /// </summary>
         Top,
+        /// <summary>
+        /// Bottom direction
+        /// </summary>
         Bottom,
+        /// <summary>
+        /// Left direction
+        /// </summary>
         Left,
+        /// <summary>
+        /// Right direction
+        /// </summary>
         Right
     }
 }