2 * Copyright(c) 2019 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.
17 using System.ComponentModel;
18 using Tizen.NUI.BaseComponents;
19 using Tizen.NUI.Binding;
21 namespace Tizen.NUI.Components
24 /// PaginationStyle used to config the pagination represent.
26 /// <since_tizen> 6 </since_tizen>
27 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
28 [EditorBrowsable(EditorBrowsableState.Never)]
29 public class PaginationStyle : ControlStyle
32 /// Creates a new instance of a PaginationStyle.
34 /// <since_tizen> 6 </since_tizen>
35 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
36 [EditorBrowsable(EditorBrowsableState.Never)]
37 public PaginationStyle() : base() { }
40 /// Creates a new instance of a PaginationStyle using style.
42 /// <since_tizen> 6 </since_tizen>
43 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
44 [EditorBrowsable(EditorBrowsableState.Never)]
45 public PaginationStyle(PaginationStyle style) : base(style)
47 if (null == style) return;
53 /// Gets or sets the size of the indicator.
55 /// <since_tizen> 6 </since_tizen>
56 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
57 [EditorBrowsable(EditorBrowsableState.Never)]
58 public Size IndicatorSize
65 /// Gets or sets the resource of indicator.
67 /// <since_tizen> 6 </since_tizen>
68 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
69 [EditorBrowsable(EditorBrowsableState.Never)]
70 public Selector<string> IndicatorImageURL
74 } = new Selector<string>();
77 /// Gets or sets the space of the indicator.
79 /// <since_tizen> 6 </since_tizen>
80 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
81 [EditorBrowsable(EditorBrowsableState.Never)]
82 public int IndicatorSpacing
89 /// Retrieves a copy of PaginationStyle.
91 /// <since_tizen> 6 </since_tizen>
92 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
93 [EditorBrowsable(EditorBrowsableState.Never)]
94 public override void CopyFrom(BindableObject bindableObject)
96 base.CopyFrom(bindableObject);
98 PaginationStyle paginationStyle = bindableObject as PaginationStyle;
99 if (null != paginationStyle)
101 if (null != paginationStyle.IndicatorSize)
103 IndicatorSize = new Size(paginationStyle.IndicatorSize.Width, paginationStyle.IndicatorSize.Height);
105 if (null != paginationStyle.IndicatorImageURL)
107 IndicatorImageURL.Clone(paginationStyle.IndicatorImageURL);
109 IndicatorSpacing = paginationStyle.IndicatorSpacing;