[ACR-564] deprecate unused API
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI.Wearable / src / public / WearableStyle / PopupStyle.cs
1 /*
2  * Copyright(c) 2020 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 using System.ComponentModel;
18 using Tizen.NUI.Binding;
19 using Tizen.NUI.Components;
20 using System;
21
22 namespace Tizen.NUI.Wearable
23 {
24     /// <summary>
25     /// PopupStyle used to config the Popup represent.
26     /// </summary>
27     [Obsolete("This has been deprecated in API12")]
28     [EditorBrowsable(EditorBrowsableState.Never)]
29     public class PopupStyle : ControlStyle
30     {
31         /// <summary>Bindable property of WrapContent</summary>
32         [EditorBrowsable(EditorBrowsableState.Never)]
33         public static readonly BindableProperty WrapContentProperty = BindableProperty.Create(nameof(WrapContent), typeof(bool?), typeof(PopupStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
34         {
35             ((PopupStyle)bindable).wrapContent = (bool?)newValue;
36         },
37         defaultValueCreator: (bindable) =>
38         {
39             return ((PopupStyle)bindable).wrapContent;
40         });
41
42         private bool? wrapContent;
43
44         static PopupStyle() { }
45
46         /// <summary>
47         /// Creates a new instance of a PopupStyle.
48         /// </summary>
49         [Obsolete("This has been deprecated in API12")]
50         [EditorBrowsable(EditorBrowsableState.Never)]
51         public PopupStyle() : base()
52         {
53             initSubStyle();
54         }
55
56         /// <summary>
57         /// Creates a new instance of a PopupStyle using style.
58         /// </summary>
59         [Obsolete("This has been deprecated in API12")]
60         [EditorBrowsable(EditorBrowsableState.Never)]
61         public PopupStyle(PopupStyle style) : base(style)
62         {
63         }
64
65         /// <summary>
66         /// WrapContent
67         /// </summary>
68         [Obsolete("This has been deprecated in API12")]
69         [EditorBrowsable(EditorBrowsableState.Never)]
70         public bool? WrapContent
71         {
72             get => (bool?)GetValue(WrapContentProperty);
73             set => SetValue(WrapContentProperty, value);            
74         }
75
76         private void initSubStyle()
77         {
78             WrapContent = false;
79             //to do
80             Size = new Size(10, 10);
81         }
82
83     }
84 }