Add Documents for DropdownList 46/118346/4
authorjh5.cho <jh5.cho@samsung.com>
Fri, 10 Mar 2017 05:35:15 +0000 (14:35 +0900)
committerjh5.cho <jh5.cho@samsung.com>
Fri, 17 Mar 2017 00:52:10 +0000 (09:52 +0900)
    - Also the encoding changed to unix style

Change-Id: I120ea243c1ae153a3977f201303a2e6000ec1861

Tizen.Xamarin.Forms.Extension/DropdownList.cs

index d902e38..ac771da 100755 (executable)
@@ -7,6 +7,25 @@ using Xamarin.Forms;
 
 namespace Tizen.Xamarin.Forms.Extension
 {
+    /// <summary>
+    /// The DropdownList class
+    /// </summary>
+    /// <example>
+    /// <code>
+    /// var dropdownList = new DropdownList()
+    /// dropdownList.ItemSelected += (s, e) =>
+    /// {
+    ///     Debug.WriteLine("e.Selected Item: " + e.SelectedItem);
+    /// };
+    ///
+    /// ObservableCollection<string> ItemsList = new ObservableCollection<string>()
+    /// {
+    ///     "item5", "item6", "item7", "item8"
+    /// };
+    ///
+    /// dropdownList.ItemsSource = ItemsList;
+    /// </code>
+    /// </example>
     public class DropdownList : View
     {
         public static readonly BindableProperty SelectedItemProperty = BindableProperty.Create("SelectedItem", typeof(object), typeof(DropdownList), default(object), BindingMode.TwoWay, coerceValue: OnCoerceSelectedItem, propertyChanged: OnSelectedItemChanged);
@@ -29,30 +48,46 @@ namespace Tizen.Xamarin.Forms.Extension
         {
         }
 
+        /// <summary>
+        /// Gets or sets the currently selected item from the DropdownList.ItemsSource.
+        /// </summary>
         public object SelectedItem
         {
             get { return (object)GetValue(SelectedItemProperty); }
             set { SetValue(SelectedItemProperty, value); }
         }
 
+        /// <summary>
+        /// Gets or sets the DropdownList to expand horizontally.
+        /// </summary>
         public bool IsHorizontal
         {
             get { return (bool)GetValue(IsHorizontalProperty); }
             set { SetValue(IsHorizontalProperty, value); }
         }
 
+        /// <summary>
+        /// Triggers or dismisses the DropdownList popup from code,
+        /// the same as if the user had clicked the button or clicked outside the DropdownList.
+        /// </summary>
         public bool IsExpanded
         {
             get { return (bool)GetValue(IsExpandedProperty); }
             set { SetValue(IsExpandedProperty, value); }
         }
 
+        /// <summary>
+        /// Gets or sets the source of items to template and display.
+        /// </summary>
         public IEnumerable ItemsSource
         {
             get { return (IEnumerable)GetValue(ItemsSourceProperty); }
             set { SetValue(ItemsSourceProperty, value); }
         }
 
+        /// <summary>
+        /// Gets or sets a member path to a value on the ItemsSource.
+        /// </summary>
         public string DisplayMemberPath
         {
             get { return (string)GetValue(DisplayMemberPathProperty); }