set Internal SizingStrategy to hide MeasureAll option. (#2959)
authorSangHyeon Jade Lee <sh10233.lee@samsung.com>
Thu, 29 Apr 2021 12:08:12 +0000 (21:08 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Fri, 7 May 2021 05:58:58 +0000 (14:58 +0900)
Currently CollectionView only support MeasureFirst,
and MeasureAll need to be implemented.

before this feature is ready,
make setter internal to disallow unimplemented mode.

src/Tizen.NUI.Components/Controls/RecyclerView/CollectionView.cs
src/Tizen.NUI.Components/Controls/RecyclerView/ItemSizingStrategy.cs

index 961f19a..1eddf02 100755 (executable)
@@ -344,12 +344,6 @@ namespace Tizen.NUI.Components
         public object SelectionChangedCommandParameter { set; get; }
 
         /// <summary>
-        /// Size strategy of measuring scroll content. see details in ItemSizingStrategy.
-        /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        public ItemSizingStrategy SizingStrategy { get; set; }
-
-        /// <summary>
         /// Header item which placed in top-most position.
         /// note : internal index and count will be increased.
         /// </summary>
@@ -464,7 +458,6 @@ namespace Tizen.NUI.Components
             }
         }
 
-
         /// <summary>
         /// Internal encapsulated items data source.
         /// </summary>
@@ -479,6 +472,13 @@ namespace Tizen.NUI.Components
                 base.InternalItemSource = value;
             }
         }
+
+        /// <summary>
+        /// Size strategy of measuring scroll content. see details in ItemSizingStrategy.
+        /// </summary>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        internal ItemSizingStrategy SizingStrategy { get; set; }
+
         /// <inheritdoc/>
         [EditorBrowsable(EditorBrowsableState.Never)]
         public override void OnRelayout(Vector2 size, RelayoutContainer container)
index 006da23..a112da1 100644 (file)
@@ -24,7 +24,12 @@ namespace Tizen.NUI.Components
     [EditorBrowsable(EditorBrowsableState.Never)]
     public enum ItemSizingStrategy
     {
-
+        /// <summary>
+        /// Measure first item and deligate size for all items.
+        /// if template is selector, the size of first item from each template will be deligated.
+        /// </summary>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        MeasureFirst,
         /// <summary>
         /// Measure all items in advanced.
         /// Estimate first item size for all, and when scroll reached position,
@@ -32,11 +37,5 @@ namespace Tizen.NUI.Components
         /// </summary>
         [EditorBrowsable(EditorBrowsableState.Never)]
         MeasureAll,
-        /// <summary>
-        /// Measure first item and deligate size for all items.
-        /// if template is selector, the size of first item from each template will be deligated.
-        /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        MeasureFirst,
     }
 }