2 * Copyright(c) 2021 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 using System.ComponentModel;
19 using Tizen.NUI.BaseComponents;
20 using Tizen.NUI.Binding;
21 using Tizen.NUI.Components.Extension;
23 namespace Tizen.NUI.Components
26 /// DefaultTitleItemStyle is a class which saves DefaultLinearItem's ux data.
28 [EditorBrowsable(EditorBrowsableState.Never)]
29 public class DefaultTitleItemStyle : RecyclerViewItemStyle
31 static DefaultTitleItemStyle() { }
34 /// Creates a new instance of a DefaultTitleItemStyle.
36 /// <since_tizen> 8 </since_tizen>
37 public DefaultTitleItemStyle() : base()
42 /// Creates a new instance of a DefaultTitleItemStyle with style.
44 /// <param name="style">Create DefaultTitleItemStyle by style customized by user.</param>
45 [EditorBrowsable(EditorBrowsableState.Never)]
46 public DefaultTitleItemStyle(DefaultTitleItemStyle style) : base(style)
51 /// Label Text's style.
53 [EditorBrowsable(EditorBrowsableState.Never)]
54 public TextLabelStyle Label { get; set; } = new TextLabelStyle();
59 [EditorBrowsable(EditorBrowsableState.Never)]
60 public ViewStyle Icon { get; set; } = new ViewStyle();
63 /// Seperator's style.
65 [EditorBrowsable(EditorBrowsableState.Never)]
66 public ViewStyle Seperator { get; set; } = new ViewStyle();
69 [EditorBrowsable(EditorBrowsableState.Never)]
70 public override void CopyFrom(BindableObject bindableObject)
72 base.CopyFrom(bindableObject);
74 if (bindableObject is DefaultTitleItemStyle RecyclerViewItemStyle)
76 Label.CopyFrom(RecyclerViewItemStyle.Label);
77 Icon.CopyFrom(RecyclerViewItemStyle.Icon);
78 Seperator.CopyFrom(RecyclerViewItemStyle.Seperator);