[NUI] Introduce CollectionView and related classes. (#2525)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI.Wearable / src / public / RecyclerView / RecycleItem.cs
1 /* Copyright (c) 2020 Samsung Electronics Co., Ltd.
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  *
15  */
16 using System.ComponentModel;
17 using Tizen.NUI.Components;
18
19 namespace Tizen.NUI.Wearable
20 {
21     /// <summary>
22     /// [Draft] This class provides a basic item for RecyclerView.
23     /// </summary>
24     /// <since_tizen> 8 </since_tizen>
25     /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API
26     [EditorBrowsable(EditorBrowsableState.Never)]
27     public class RecycleItem : Control
28     {
29         /// <summary>
30         /// Data index which is binded to item by RecycleAdapter.
31         /// Can access to data of RecycleAdapter using this index.
32         /// </summary>
33         /// <since_tizen> 8 </since_tizen>
34         /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API
35         [EditorBrowsable(EditorBrowsableState.Never)]
36         public int DataIndex { get; set; } = 0;
37     }
38 }