Replace duplicate documentation of CopyFrom with inheritdoc
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI.Components / Style / DefaultGridItemStyle.cs
1 /*
2  * Copyright(c) 2021 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 using System.ComponentModel;
19 using Tizen.NUI.BaseComponents;
20 using Tizen.NUI.Binding;
21 using Tizen.NUI.Components.Extension;
22
23 namespace Tizen.NUI.Components
24 {
25     /// <summary>
26     /// DefaultGridItemStyle is a class which saves DefaultLinearItem's ux data.
27     /// </summary>
28     [EditorBrowsable(EditorBrowsableState.Never)]
29     public class DefaultGridItemStyle : RecyclerViewItemStyle
30     {
31
32         static DefaultGridItemStyle() { }
33
34         /// <summary>
35         /// Creates a new instance of a DefaultGridItemStyle.
36         /// </summary>
37         /// <since_tizen> 8 </since_tizen>
38         public DefaultGridItemStyle() : base()
39         {
40         }
41
42         /// <summary>
43         /// Creates a new instance of a DefaultGridItemStyle with style.
44         /// </summary>
45         /// <param name="style">Create DefaultGridItemStyle by style customized by user.</param>
46         [EditorBrowsable(EditorBrowsableState.Never)]
47         public DefaultGridItemStyle(DefaultGridItemStyle style) : base(style)
48         {
49         }
50
51
52         /// <summary>
53         /// Label Text's style.
54         /// </summary>
55         [EditorBrowsable(EditorBrowsableState.Never)]
56         public TextLabelStyle Caption { get; set; } = new TextLabelStyle();
57
58         /// <summary>
59         /// Icon's style.
60         /// </summary>
61         [EditorBrowsable(EditorBrowsableState.Never)]
62         public ImageViewStyle Image { get; set; } = new ImageViewStyle();
63
64         /// <summary>
65         /// Extra's style.
66         /// </summary>
67         [EditorBrowsable(EditorBrowsableState.Never)]
68         public ViewStyle Badge { get; set; } = new ViewStyle();
69
70         /// <inheritdoc/>
71         [EditorBrowsable(EditorBrowsableState.Never)]
72         public override void CopyFrom(BindableObject bindableObject)
73         {
74             base.CopyFrom(bindableObject);
75
76             if (bindableObject is DefaultGridItemStyle RecyclerViewItemStyle)
77             {
78                 Caption.CopyFrom(RecyclerViewItemStyle.Caption);
79                 Image.CopyFrom(RecyclerViewItemStyle.Image);
80                 Badge.CopyFrom(RecyclerViewItemStyle.Badge);
81                 //Border.CopyFrom(RecyclerViewItemStyle.Border);
82             }
83         }
84     }
85 }