Add comments for animation property
authorseungho <sbsh.baek@samsung.com>
Fri, 8 Jul 2022 07:27:37 +0000 (16:27 +0900)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Tue, 12 Jul 2022 02:41:27 +0000 (11:41 +0900)
Signed-off-by: seungho <sbsh.baek@samsung.com>
src/Tizen.NUI/src/public/Animation/Animation.cs

index a8cbbbd..dece1b7 100755 (executable)
@@ -208,7 +208,15 @@ namespace Tizen.NUI
 
         /// <summary>
         /// Gets or sets the duration in milliseconds of the animation.
+        /// This duration is applied to the animations are added after the Duration is set.
         /// </summary>
+        /// <example>
+        /// <code>
+        /// animation.AnimateTo(actor, "position", destination);
+        /// animation.Duration = 500; // This duration 500 is only applied to the size animation.
+        /// animation.AnimateTo(actor, "size", size);
+        /// </code>
+        /// </example>
         /// <since_tizen> 3 </since_tizen>
         public int Duration
         {
@@ -223,8 +231,16 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        ///  Gets or sets the default alpha function for the animation.
+        /// Gets or sets the default alpha function for the animation.
+        /// This DefaultAlphaFunction is only applied to the animations are added after the DefaultAlphaFunction is set.
         /// </summary>
+        /// <example>
+        /// <code>
+        /// animation.AnimateTo(actor, "position", destination);
+        /// animation.DefaultAlphaFunction = newAlphaFunction; // This newAlphaFunction is applied only for the size animation.
+        /// animation.AnimateTo(actor, "size", size);
+        /// </code>
+        /// </example>
         /// <since_tizen> 3 </since_tizen>
         public AlphaFunction DefaultAlphaFunction
         {